diff options
author | alkos333 <me@alkos333.net> | 2010-05-12 17:37:24 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:37:24 +0200 |
commit | 3e89c71b0701660bab4d017668536fcb4b19d06b (patch) | |
tree | 9c324720d551a139fc6158cca1bc6a1167de692e /audio/speex/speex.SlackBuild | |
parent | bd7491493c4d234247654b6fac444928dec2073d (diff) | |
download | slackbuilds-3e89c71b0701660bab4d017668536fcb4b19d06b.tar.gz |
audio/speex: Updated for version 1.2rc1
Diffstat (limited to 'audio/speex/speex.SlackBuild')
-rw-r--r-- | audio/speex/speex.SlackBuild | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/audio/speex/speex.SlackBuild b/audio/speex/speex.SlackBuild index 8e17451547..301b25e500 100644 --- a/audio/speex/speex.SlackBuild +++ b/audio/speex/speex.SlackBuild @@ -1,6 +1,7 @@ #!/bin/sh # Slackware build script for speex + # Copyright (c) 2007 Alex Lysenka <me@alkos333.net> # All rights reserved. # @@ -10,13 +11,6 @@ # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. -# * Neither the name of the {company} nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT @@ -34,7 +28,7 @@ PRGNAM=speex VERSION=1.2rc1 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$( pwd ) @@ -44,10 +38,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -56,7 +53,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -65,17 +62,30 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static=no \ - --docdir=/usr/doc/$PRGNAM-$VERSION + --build=$ARCH-slackware-linux make -make install-strip DESTDIR=$PKG +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) -mv $PKG/usr/share/man $PKG/usr -gzip -9 $PKG/usr/man/man?/* +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chown root:root {} \; -exec chmod 644 {} \; |