VERSION=3.4 BUILD=1 ARCH=i386 PKGNAME=mesa_glide-$VERSION-$ARCH-$BUILD MAINTAINER="David Cantrell " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/a STRIPLIB=y STRIPBIN=y PROGNAME="Mesa $VERSION with Glide support" DESC="\ Mesa $VERSION with Glide support\n\ \n\ This package installs the Mesa $VERSION libraries and example\n\ programs. This particular build is linked with Glide 2.x\n\ so you can use it in conjunction with your 3Dfx card." compile() { # Build Mesa against Glide cd $TMP tar xvyf $CWD/MesaLib-$VERSION.tar.bz2 tar xvyf $CWD/MesaDemos-$VERSION.tar.bz2 cd Mesa-$VERSION ./configure --prefix=/usr/X11R6 \ --enable-static \ --enable-shared \ --disable-3dnow \ --disable-mmx \ --with-glide=/usr make } install() { make install # Make documentation directory: mkdir -p /usr/doc/Mesa-$VERSION cp -r docs/* /usr/doc/Mesa-$VERSION # Install the Mesa demos: mkdir -p /usr/X11R6/lib/Mesa cp -r demos xdemos book samples 3Dfx/demos mtdemos ggi/demos \ /usr/X11R6/lib/Mesa # Widget demos, docs symlink: mkdir -p /usr/X11R6/lib/Mesa/widgets-mesa ( cd widgets-mesa cp -r ChangeLog INSTALL README TODO demos \ /usr/X11R6/lib/Mesa/widgets-mesa ) ( cd /usr/doc/Mesa-$VERSION ; ln -sf /usr/X11R6/lib/Mesa demos ) ( cd /usr/X11R6/lib rm -f libMesaGL.so libMesaGLU.so ln -sf libGL.so libMesaGL.so ln -sf libGLU.so libMesaGLU.so rm -rf libGLU.so.1 ; ln -sf libGLU.so.1.1.030400 libGLU.so.1 ) } special() { find $PKG -type d -name CVS -exec rm -rf {} \; }