#!/bin/bash # # lame.SlackBuild is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or any later version. # # lame.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # # default settings PACKAGE="lame" PACKAGE_EXT="gz" VERSION=${VERSION:=3.99.5} BUILD=${BUILD:=1} if [ -f ~/.slackbuildrc ]; then . ~/.slackbuildrc elif [ -f ../../runtime/slackbuildrc ]; then . ../../runtime/slackbuildrc fi check_required SRC="lame-$VERSION.tar.$PACKAGE_EXT" URL="http://downloads.sourceforge.net/lame/$SRC" get_source $SRC $URL unpack_source $SRC lame-$VERSION CFLAGS=$SLKCFLAGS ./configure \ --prefix=/usr \ --mandir=/usr/man \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PACKAGE-$VERSION \ --htmldir=/usr/doc/$PACKAGE-$VERSION \ --enable-nasm \ --enable-shared \ --enable-static \ --enable-decode-layer1 \ --enable-mp3x \ --enable-mp3rtp \ --libdir=$LIBDIR \ --build=$ARCH-slackware-linux || exit 1 make pkgdocdir=/usr/doc/$PACKAGE-$VERSION -j3 || exit 2 make install pkgdocdir=/usr/doc/$PACKAGE-$VERSION DESTDIR=$PKG rm -rf $PKG/usr/doc/lame mkdir -p $DOCS/html cp -a API COPYING ChangeLog DEFINES HACKING INSTALL* LICENSE README* STYLEGUIDE TODO USAGE $DOCS fixup_package $PKG # Clean up the extra stuff: set +u if [ "$1" = "--cleanup" ]; then rm -rf $TMP/lame-$VERSION rm -rf $PKG fi