IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=0.60pre1 PROGNAME="MPlayer" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ mplayer: MPlayer-$VERSION\n\ mplayer:\n\ mplayer: MPlayer is a movie player for LINUX. It plays most MPEG, VOB, AVI,\n\ mplayer: VIVO, ASF/WMV, QT/MOV, FLI files, supported by many native, XAnim,\n\ mplayer: and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, and\n\ mplayer: even DivX movies too. MPlayer supports 9 types of subtitles with\n\ mplayer: antialiasing and shading.\n\ mplayer: \n\ mplayer: \n\ mplayer: \n\ mplayer:" # maintainer ARCH=i686 BUILD=1 MAINTAINER="Robert Stan " SOURCE=http://www.mplayerhq.hu LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/mplayer-$VERSION # package name PKGNAME="mplayer-${VERSION}-${ARCH}-${BUILD}" compile() { tar xvyf $CWD/MPlayer-$VERSION.tar.bz2 cd MPlayer-$VERSION ./configure --prefix=/opt/gnome --sysconfdir=/etc/opt/gnome \ --with-extralibdir=/usr/lib --with-extraincdir=/opt/gnome/include \ --enable-largefiles --enable-gui --disable-mga --disable-xmga || exit 1 make || exit 1 } install() { make install mkdir -p /usr/doc/MPlayer-$VERSION ( cd DOCS ; cp -a * /usr/doc/MPlayer-$VERSION ) cp -a etc/*.conf /usr/doc/MPlayer-$VERSION rm -f /usr/doc/MPlayer-$VERSION/*.1 mkdir -p /opt/gnome/share/mplayer/Skin ( cd /opt/gnome/share/mplayer/Skin ; tar xvyf $CWD/default.tar.bz2 ) ( cd /opt/gnome/share/mplayer ; tar xvyf $CWD/font.tar.bz2 ) } attributes() { echo "No special attributes..." } special() { mv $PKG/usr/doc/MPlayer-$VERSION/codecs.conf $PKG/opt/gnome/share/mplayer/codecs.conf echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }