|
|
@ -3,6 +3,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# |
|
|
|
# Filename: package/.../glide3/glide3.conf |
|
|
|
# Filename: package/.../glide3/glide3.conf |
|
|
|
|
|
|
|
# Copyright (C) 2008 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# |
|
|
|
# |
|
|
@ -14,23 +15,77 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
autoextract=0 |
|
|
|
makeinstopt= |
|
|
|
createdocs=0 |
|
|
|
libver="3.10.0" |
|
|
|
|
|
|
|
|
|
|
|
glide3_main() { |
|
|
|
pkgprefix -t libx11 |
|
|
|
cd $root/$prefix/include |
|
|
|
xlibdir=$root$( pkgprefix libdir libx11) |
|
|
|
tar $taropt `match_source_file -p glide3headers` |
|
|
|
glide_flags="$glide_flags XPATH=$xlibdir" |
|
|
|
cd ../lib |
|
|
|
|
|
|
|
# [ "$arch_target" == "alpha-unknown-linux-gnu" ] && \ |
|
|
|
if [ "$arch" = x86 ]; then |
|
|
|
# cp -f `match_source_file -p 'libglide3-.*.alpha'` ./ |
|
|
|
glide_flags="USE_X86=1 USE_3DNOW=1 USE_MMX=1 USE_SSE=1 USE_SSE2=1 TEXUS2=1" |
|
|
|
# [ "$arch_target" == "i386-pc-linux-gnu" ] && \ |
|
|
|
buildloops=4 |
|
|
|
# cp -f `match_source_file -p 'libglide3-.*.x86'` ./ |
|
|
|
else |
|
|
|
# mv -f libglide3-v3.so.alpha libglide3-v3.so |
|
|
|
glide_flags="TEXUS2=1" |
|
|
|
# mv -f libglide3-v5.so.alpha libglide3-v5.so |
|
|
|
buildloops=3 |
|
|
|
# mv -f libglide3-v3.so.x86 libglide3-v3.so |
|
|
|
fi |
|
|
|
# mv -f libglide3-v5.so.x86 libglide3-v5.so |
|
|
|
glide3_preconf() { |
|
|
|
cp -f `match_source_file -p libglide3-.*.so` ./ |
|
|
|
makeopt='-f makefile.linux $glide_flags' |
|
|
|
|
|
|
|
case "$buildloop" in |
|
|
|
|
|
|
|
1) |
|
|
|
|
|
|
|
hw=h5 |
|
|
|
|
|
|
|
var_append makeopt ' ' "DRI=1" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
2) |
|
|
|
|
|
|
|
hw=h3 |
|
|
|
|
|
|
|
var_append makeopt ' ' "DRI=1" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
3) |
|
|
|
|
|
|
|
hw=cvg |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
4) |
|
|
|
|
|
|
|
hw=sst1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
var_append makeopt ' ' "FX_GLIDE_HW=\$hw" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
glide3_install_libs() { |
|
|
|
|
|
|
|
case "$buildloop" in |
|
|
|
|
|
|
|
1) mv h5/lib/libglide3.so $xlibdir/libglide3-v5.so |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
2) mv h3/lib/libglide3.so $xlibdir/libglide3-v3.so |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
3) mv cvg/lib/libglide3x.so $xlibdir/libglide3-v2.so |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
4) mv sst1/lib/libglide3x.so $xlibdir/libglide3-v1.so |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
eval $MAKE -f makefile.linux FX_GLIDE_HW=$hw realclean |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
glide3_install_headers() { |
|
|
|
|
|
|
|
cp swlibs/fxmisc/3dfx.h $includedir |
|
|
|
|
|
|
|
cp h5/glide3/src/g3ext.h $includedir |
|
|
|
|
|
|
|
cp h5/glide3/src/glide.h $includedir |
|
|
|
|
|
|
|
cp h5/glide3/src/glidesys.h $includedir |
|
|
|
|
|
|
|
cp h5/glide3/src/glideutl.h $includedir |
|
|
|
|
|
|
|
cp swlibs/fxmisc/linutil.h $includedir |
|
|
|
|
|
|
|
cp h5/incsrc/sst1vid.h $includedir |
|
|
|
|
|
|
|
cp swlibs/texus2/lib/texus.h $includedir |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make the V2 glide default |
|
|
|
|
|
|
|
glide3_install_links() { |
|
|
|
|
|
|
|
ln -snf libglide3-v2.so $xlibdir/libglide3.so.$libver |
|
|
|
|
|
|
|
ln -snf libglide3.so.$libver $xlibdir/libglide3.so.3 |
|
|
|
|
|
|
|
ln -snf libglide3.so.$libver $xlibdir/libglide3.so |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
custmain=glide3_main |
|
|
|
hook_add preconf 3 "glide3_preconf" |
|
|
|
|
|
|
|
hook_add postmake 4 "glide3_install_headers" |
|
|
|
|
|
|
|
hook_add postmake 5 "glide3_install_libs" |
|
|
|
|
|
|
|
hook_add postmake 6 "glide3_install_links" |
|
|
|
|
|
|
|
|
|
|
|