summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0015.obj
blob: aad15f25865c101480b9c25bc1a96b054ffa7a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%define oname VirtualGL
%define libname %mklibname %{name}

Name:           virtualgl
Summary:        A toolkit for displaying OpenGL applications to thin clients
Group:          Networking/Other
Version:        2.3
Release:        %mkrel 1
URL:            http://www.virtualgl.org
License:        wxWindows Library License v3.1
Source0:	http://prdownloads.sourceforge.net/virtualgl/%{oname}-%{version}.tar.gz
Patch0:		vgl_2.3_patch0
BuildRequires:	X11-devel
BuildRequires:	jpeg-devel
BuildRequires:	cmake


%description
VirtualGL is a library which allows most Linux OpenGL applications to be
remotely displayed to a thin client without the need to alter the
applications in any way.  VGL inserts itself into an application at run time
and intercepts a handful of GLX calls, which it reroutes to the server's
display (which presumably has a 3D accelerator attached.)  This causes all
3D rendering to occur on the server's display.  As each frame is rendered
by the server, VirtualGL reads back the pixels from the server's framebuffer
and sends them to the client for re-compositing into the appropriate X
Window.  VirtualGL can be used to give hardware-accelerated 3D capabilities to
VNC or other remote display environments that lack GLX support.  In a LAN
environment, it can also be used with its built-in motion-JPEG video delivery
system to remotely display full-screen 3D applications at 20+ frames/second.

VirtualGL is based upon ideas presented in various academic papers on
this topic, including "A Generic Solution for Hardware-Accelerated Remote
Visualization" (Stegmaier, Magallon, Ertl 2002) and "A Framework for
Interactive Hardware Accelerated Remote 3D-Visualization" (Engel, Sommer,
Ertl 2000.)

%files
%{_bindir}/*
%{_defaultdocdir}/%{name}/

#--------------------------------------------------------------------
%package -n %libname
Summary: Libraries injected by VirtualGL into applications that are ran through it
Group: System/Libraries

%description -n %libname
Libraries injected by VirtualGL into applications that are ran throught it. 
Lib package allow installing 32 and 64 bits libraries at the same time.

%files -n %libname
%dir %{_libdir}/fakelib/
%{_libdir}/fakelib/libGL.so
%{_libdir}/librrfaker.so
%{_libdir}/libdlfaker.so
%{_libdir}/libgefaker.so

#--------------------------------------------------------------------
%package devel
Summary:	A toolkit for displaying OpenGL applications to thin clients
Group:		Networking/Other
Requires:	%{libname} >= %{version}

%description devel
VirtualGL is a library which allows most Linux OpenGL applications to be
remotely displayed to a thin client without the need to alter the
applications in any way.  VGL inserts itself into an application at run
time and intercepts a handful of GLX calls, which it reroutes to the
server's display (which presumably has a 3D accelerator attached). This
causes all 3D rendering to occur on the server's display.  As each frame
is rendered by the server, VirtualGL reads back the pixels from the
server's framebuffer and sends them to the client for re-compositing into
the appropriate X Window. VirtualGL can be used to give hardware-
-accelerated 3D capabilities to VNC or other remote display environments
that lack GLX support.  In a LAN environment, it can also be used with
its built-in motion-JPEG video delivery system to remotely display
full-screen 3D applications at 20+ frames/second. 
VirtualGL is based upon ideas presented in various academic papers on
this topic, including "A Generic Solution for Hardware-Accelerated Remote
Visualization" (Stegmaier, Magallon, Ertl 2002) and "A Framework for
Interactive Hardware Accelerated Remote 3D-Visualization" (Engel, Sommer,
Ertl 2000.)

%files devel
%{_includedir}/rrtransport.h
%{_includedir}/rr.h

#--------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
cmake -G "Unix Makefiles" \
    -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DVGL_DOCDIR=%{_defaultdocdir}/%{name} \
    -DVGL_LIBDIR=%{_libdir} \
    -DTJPEG_INCLUDE_DIR=%{_includedir} \
    -DTJPEG_LIBRARY=%{_libdir}/libturbojpeg.so

%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -rf %{buildroot}%{_prefix}/fakelib
mkdir -p %{buildroot}%{_libdir}/fakelib
ln -sf ../librrfaker.so %{buildroot}%{_libdir}/fakelib/libGL.so
mv -f %{buildroot}%{_bindir}/glxinfo %{buildroot}%{_bindir}/glxinfo2


%changelog
* Mon Mar 19 2012 Simple <simplew8@gmail.com> 2.3-1
- first package