]>
Commit | Line | Data |
---|---|---|
cf05b513 | 1 | Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards |
2 | Name: Glide_VG | |
3 | Version: 2.46 | |
4 | Release: 4 | |
edf0eec0 | 5 | Group: Libraries |
cf05b513 | 6 | Copyright: 3DFX GLIDE Source Code General Public License |
edf0eec0 JR |
7 | URL: http://www.3dfx.com |
8 | Source: Glide2.46.tar.gz | |
9 | Patch: Glide_VG-asm.patch | |
cf05b513 | 10 | Vendor: 3Dfx Interactive Inc. |
edf0eec0 | 11 | Icon: 3dfx.gif |
e5c076fb | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53af08fa | 13 | |
14 | %description | |
edf0eec0 JR |
15 | This library allows the user to use a 3dfx Interactive Voodoo Graphics |
16 | card under Linux. | |
3d6c707d | 17 | |
53af08fa | 18 | %package -n Glide2x_SDK |
cf05b513 | 19 | Summary: Development libraries for Glide 2.x |
20 | Version: 2.1 | |
21 | Group: Development/Libraries | |
53af08fa | 22 | |
23 | %description -n Glide2x_SDK | |
24 | This package includes the headers files, documentation, and test files | |
25 | necessary for developing applications that use the 3Dfx Interactive | |
26 | Voodoo Graphics, Voodoo Rush, or Voodoo2 card. | |
27 | ||
28 | %prep | |
cf05b513 | 29 | %setup -q -c |
edf0eec0 | 30 | %patch -p1 |
53af08fa | 31 | chmod +x swlibs/include/make/ostype |
32 | ||
33 | %build | |
edf0eec0 JR |
34 | make -f makefile.unix CNODEBUG="$RPM_OPT_FLAGS -fomit-frame-pointer \ |
35 | -funroll-loops -fexpensive-optimizations -ffast-math" | |
53af08fa | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
edf0eec0 JR |
39 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir}/glide} |
40 | install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/{tests,texus/{lib,cmd,examples}} | |
53af08fa | 41 | |
42 | # Install the glibc 2.1 libraries normally | |
edf0eec0 JR |
43 | install -s sst1/lib/libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x_VG.so |
44 | install -s swlibs/lib/libtexus.so $RPM_BUILD_ROOT%{_libdir} | |
cf05b513 | 45 | ln -s libglide2x_VG.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so |
53af08fa | 46 | |
47 | # Install the executables | |
edf0eec0 JR |
48 | install -s swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir} |
49 | install -s sst1/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/test3Dfx | |
53af08fa | 50 | |
51 | # Install the headers | |
cf05b513 | 52 | install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide |
53 | install sst1/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide | |
54 | install sst1/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide | |
55 | install sst1/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide | |
56 | install sst1/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide | |
57 | install sst1/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide | |
58 | install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide | |
59 | install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide | |
53af08fa | 60 | |
61 | # Install the examples and their source | |
edf0eec0 JR |
62 | install sst1/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/tests/makefile |
63 | install sst1/glide/tests/*.3df $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/tests | |
64 | install sst1/glide/tests/test??.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/tests | |
65 | install sst1/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/tests | |
66 | install sst1/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/tests | |
53af08fa | 67 | |
68 | # Install the texture tools source | |
edf0eec0 JR |
69 | install swlibs/texus/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/makefile |
70 | install swlibs/texus/lib/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/lib/makefile | |
71 | install swlibs/texus/cmd/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/cmd/makefile | |
72 | install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/examples/makefile | |
73 | install swlibs/texus/lib/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/lib | |
74 | install swlibs/texus/lib/texusint.h $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/lib | |
75 | install swlibs/texus/cmd/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/cmd | |
76 | install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_prefix}/src/examples/glide/texus/examples | |
77 | ||
78 | gzip -9nf glide_license.txt | |
53af08fa | 79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
edf0eec0 JR |
83 | %post -p /sbin/ldconfig |
84 | %postun -p /sbin/ldconfig | |
53af08fa | 85 | |
86 | %files | |
cf05b513 | 87 | %defattr(644,root,root,755) |
edf0eec0 | 88 | %doc glide_license.txt.gz |
cf05b513 | 89 | %attr(755,root,root) %{_bindir}/texus |
edf0eec0 JR |
90 | %attr(755,root,root) %{_bindir}/test3Dfx |
91 | %attr(755,root,root) %{_libdir}/libglide2x.so | |
92 | %attr(755,root,root) %{_libdir}/libglide2x_VG.so | |
93 | %attr(755,root,root) %{_libdir}/libtexus.so | |
53af08fa | 94 | |
95 | %files -n Glide2x_SDK | |
cf05b513 | 96 | %defattr(644,root,root,755) |
edf0eec0 JR |
97 | %doc docs/*.pdf |
98 | %{_prefix}/src/examples/glide | |
cf05b513 | 99 | %{_includedir}/glide |