DOCS="README README-SDL.txt COPYING CREDITS BUGS TODO WhatsNew docs.html \ docs/index.html docs/html" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=1.2.4 PROGNAME="Simple DirectMedia Layer" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ sdl: SDL-$VERSION\n\ sdl:\n\ sdl: This is the Simple DirectMedia Layer, a generic API that provides\n\ sdl: low level access to audio, keyboard, mouse, and display framebuffer\n\ sdl: across multiple platforms.\n\ sdl:\n\ sdl:\n\ sdl:\n\ sdl:\n\ sdl:\n\ sdl:" # maintainer ARCH=i586 BUILD=2rob MAINTAINER="Robert Stan " SOURCE=http://www.libsdl.org/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/l/ # package name PKGNAME="sdl-${VERSION}-${ARCH}-${BUILD}" # compiler flags PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH" compile() { tar xvzf $CWD/SDL-$VERSION.tar.gz ; cd SDL-$VERSION CFLAGS=$PKGOPT ./configure --prefix=/usr \ --disable-debug \ --disable-alsa \ --enable-dlopen \ --enable-esd-shared \ --enable-arts-shared || exit 1 CFLAGS=$PKGOPT make -j2 || exit 1 } install() { make install mkdir -p /usr/doc/SDL-$VERSION cp -a $DOCS /usr/doc/SDL-$VERSION rm -f /usr/doc/SDL-$VERSION/html/Makefil* } attributes() { echo "No special attributes..." } special() { # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }