IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.0 PROGNAME="Ogg Vorbis Utilities $VERSION" LIBAO=0.8.3 DESC="\ oggutils (Ogg Vorbis libraries and tools) \n\ \n\ Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free, \n\ general-purpose compressed audio format for high quality \n\ (44.1-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and \n\ variable bitrates from 16 to 128 kbps/channel. This places Vorbis in \n\ the same class as audio representations including MPEG-1 audio layer \n\ 3, MPEG-4 audio (AAC and TwinVQ), and PAC. This package includes \n\ an encoder and player, as well as programming libraries for developing \n\ programs that use the Ogg Vorbis CODEC." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www.vorbis.com/download_unix.psp PKGNAME=oggutils-$VERSION-s390-$BUILD TAG=OPT compile() { # # compile libao # cd $TMP tar -xvzf $CWD/libao-$LIBAO.tar.gz cd libao-$LIBAO/ ./configure --prefix=/usr \ s390-slackware-linux make make install # # compile libogg # cd $TMP tar -xvzf $CWD/libogg-$VERSION.tar.gz cd libogg-$VERSION/ ./configure --prefix=/usr s390-slackware-linux make make install # # compile libvorbis # cd $TMP tar -xvzf $CWD/libvorbis-$VERSION.tar.gz cd libvorbis-$VERSION/ ./configure --prefix=/usr s390-slackware-linux make make install # # compile vorbis tools # cd $TMP tar -xvzf $CWD/vorbis-tools-$VERSION.tar.gz cd vorbis-tools-$VERSION ./configure --prefix=/usr \ s390-slackware-linux make # now to remove things so protopkg will pick them up... ( cd $TMP/libao-$LIBAO ; make uninstall ) ( cd $TMP/libogg-$VERSION ; make uninstall ) ( cd $TMP/libvorbis-$VERSION ; make uninstall ) } install() { # # install libao # cd $TMP/libao-$LIBAO/ make install DESTDIR=/package-oggutils mkdir -p /package-oggutils/usr/doc/libao-$LIBAO cp -a AUTHORS CHANGES COPYING README TODO \ /package-oggutils/usr/doc/libao-$LIBAO # # install libogg # cd $TMP/libogg-$VERSION/ make install DESTDIR=/package-oggutils mkdir -p /package-oggutils/usr/doc/libogg-$VERSION cp -a AUTHORS CHANGES COPYING README doc /package-oggutils/usr/doc/libogg-$VERSION # # install libvorbis # cd $TMP/libvorbis-$VERSION/ make install DESTDIR=/package-oggutils mkdir -p /package-oggutils/usr/doc/libvorbis-$VERSION cp -a AUTHORS COPYING README doc /package-oggutils/usr/doc/libvorbis-$VERSION # # install vorbis tools # cd $TMP/vorbis-tools-$VERSION/ make install DESTDIR=/package-oggutils mkdir -p /package-oggutils/usr/doc/vorbis-tools-$VERSION cp -a AUTHORS COPYING README /package-oggutils/usr/doc/vorbis-tools-$VERSION ( cd /package-oggutils/usr/share/doc for dir in *;do mv $dir/* /package-oggutils/usr/doc/$dir/ rmdir $dir done ) rmdir /package-oggutils/usr/share/doc ( cd /package-oggutils/usr/share/man for dir in *;do mkdir -p /package-oggutils/usr/man/$dir/ mv $dir/* /package-oggutils/usr/man/$dir/ rmdir $dir done ) ( cd /package-oggutils/usr/man for dir in 1 5; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) rmdir /package-oggutils/usr/share/man } attributes() { chown -R root.bin $PKG/package-oggutils/usr/bin/ } special() { cd $PKG mv package-oggutils/* ./ rmdir package-oggutils/ chown -R root.bin usr/bin cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-oggutils/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }