|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
|
|
|
|
|
# Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015 Eric Hameleers, Eindhoven, Netherlands
|
|
|
|
|
# Copyright 2015-2016 Thorn Inurcide thorninurcide@gmail.com
|
|
|
|
|
# Copyright 2015-2016 Thorn Inurcide
|
|
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
# Permission to use, copy, modify, and distribute this software for
|
|
|
|
@ -29,7 +29,6 @@
|
|
|
|
|
# All rights reserved.
|
|
|
|
|
|
|
|
|
|
PRGNAM=speex
|
|
|
|
|
PRGNAME=speexdsp
|
|
|
|
|
VERSION=${VERSION:-1.2rc2}
|
|
|
|
|
VER=${VER:-1.2rc3}
|
|
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
@ -48,9 +47,6 @@ OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
# Input URL: http://downloads.xiph.org/releases/speex/speex-1.2rc2.tar.gz
|
|
|
|
|
SOURCE[0]="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"
|
|
|
|
|
SRCURL[0]="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz"
|
|
|
|
|
# Input URL: http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz
|
|
|
|
|
SOURCE[1]="$SRCDIR/${PRGNAME}-${VER}.tar.gz"
|
|
|
|
|
SRCURL[1]="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAME}-${VER}.tar.gz"
|
|
|
|
|
|
|
|
|
|
# You can use your own private machine.conf file to overrule machine defaults:
|
|
|
|
|
if [ -e $SRCDIR/machine.conf ]; then
|
|
|
|
@ -142,47 +138,8 @@ if [ "$P1" == "--download" ]; then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd $TMP/tmp-$PRGNAM
|
|
|
|
|
echo "Extracting the source archive(s) for $PRGNAM..."
|
|
|
|
|
for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do
|
|
|
|
|
if $(file ${SOURCE[$i]} | grep -qi ": 7-zip"); then
|
|
|
|
|
7za x ${SOURCE[$i]}
|
|
|
|
|
elif $(file ${SOURCE[$i]} | grep -qi ": zip"); then
|
|
|
|
|
unzip ${SOURCE[$i]}
|
|
|
|
|
else
|
|
|
|
|
tar -xvf ${SOURCE[$i]}
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
cd ${PRGNAME}-${VER}
|
|
|
|
|
chown -R root:root .
|
|
|
|
|
chmod -R u+w,go+r-w,a+rX-st .
|
|
|
|
|
|
|
|
|
|
# Thanks to SBo script for patch
|
|
|
|
|
patch -p1 < $SRCDIR/speexdsp-fixbuilds-774c87d.patch
|
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
|
|
LDFLAGS="$SLKLDFLAGS" \
|
|
|
|
|
CXXFLAGS="$SLKCFLAGS" \
|
|
|
|
|
CFLAGS="$SLKCFLAGS" \
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--docdir=/usr/doc/$PRGNAM-$VERSION/dsp \
|
|
|
|
|
--enable-static=no \
|
|
|
|
|
--enable-sse \
|
|
|
|
|
--build=$ARCH-slackware-linux
|
|
|
|
|
|
|
|
|
|
make || exit 1
|
|
|
|
|
make DESTDIR=$PKG install || exit 1
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
|
|
|
|
|
cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
|
|
|
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
|
find $PKG/usr/doc -type f -exec chmod 644 {} \;
|
|
|
|
|
bsdtar -xvf ${SOURCE[$i]}
|
|
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
cd ${PRGNAM}-${VERSION}
|
|
|
|
|
chown -R root:root .
|
|
|
|
|
chmod -R u+w,go+r-w,a+rX-st .
|
|
|
|
|