IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=1.1
PROGNAME="libogg $VERSION"
DESC="\
libogg (Ogg Bitstream library)                                         \n\
                                                                       \n\
Libogg is a library for manipulating ogg bitstreams.  It handles       \n\
both making ogg bitstreams and getting packets from ogg bitstreams.    \n\
                                                                       \n\
libogg is needed to use the Ogg Vorbis audio format."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.gnu.org/pub/gnu/libogg
PKGNAME=libogg-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -zxvf $CWD/libogg-$VERSION.tar.gz
   cd libogg-$VERSION/
   chown -R root.root .
   find . -perm 777 -exec chmod 755 {} \;
   find . -perm 664 -exec chmod 644 {} \;
   ./configure --prefix=/usr \
               --build=s390-slackware-linux \
               --host=s390-slackware-linux \
               --target=s390-slackware-linux
   make
}

install() {
   make install DESTDIR=/package-libogg

   mv /package-libogg/usr/share/doc /package-libogg/usr/
   cp -a AUTHORS CHANGES COPYING README \
       /package-libogg/usr/doc/libogg-$VERSION
}

special() {
   cd $PKG
   mv package-libogg/* ./
   rmdir package-libogg

   cd $CTL
   cat $CWD/slack-desc > slack-desc
   sed -e 's%package-libogg/%%g' doinst.sh > doinst.sh.new
   cat doinst.sh.new > doinst.sh
   rm doinst.sh.new
}

