libraries/aubio: Updated for version 0.4.2.

Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
Heinz Wiesinger 2016-03-13 17:58:03 +01:00 committed by Willy Sudiarto Raharjo
parent 374ccc48b6
commit d64a8bf6e8
3 changed files with 33 additions and 19 deletions

View File

@ -5,4 +5,7 @@ live audio. The name aubio comes from 'audio' with a typo:
several transcription errors are likely to be found in the
results too.
jack-audio-connection-kit is an optional dependency.
jack-audio-connection-kit and ffmpeg are optional dependencies.
To build the python bindings, pass BINDINGS=yes to the script.
This depends on numpy.

View File

@ -2,7 +2,7 @@
# Slackware build script for aubio
# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2008-2016 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=aubio
VERSION=0.3.2
BUILD=${BUILD:-3}
VERSION=0.4.2
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -69,29 +69,40 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
LDFLAGS="-lm" \
# Fix detecting ffmpeg
sed -i "s|'HAVE_' + i in ctx.env.define_key|'HAVE_' + i in ctx.env|" \
wscript
# Fix the build system...
sed -i "s|'\${PREFIX}' + '/share/doc/libaubio-doc'|'\${DOCDIR}'|" wscript
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
./waf configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--disable-static \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-fftw3f
make
make install-strip DESTDIR=$PKG
./waf build
mkdir -p $PKG/usr/man/man1
cp -f doc/*.1 $PKG/usr/man/man1/
./waf install \
--destdir=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
if ! [ "${BINDINGS:-no}" = "no" ]; then
cd python
python setup.py install --root=$PKG
cd ..
fi
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO VERSION \
cp -a AUTHORS ChangeLog COPYING README.md VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -1,8 +1,8 @@
PRGNAM="aubio"
VERSION="0.3.2"
VERSION="0.4.2"
HOMEPAGE="http://aubio.org/"
DOWNLOAD="http://aubio.org/pub/aubio-0.3.2.tar.gz"
MD5SUM="ffc3e5e4880fec67064f043252263a44"
DOWNLOAD="http://aubio.org/pub/aubio-0.4.2.tar.bz2"
MD5SUM="c0f6d8355e92669722501c3a762ba548"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""