summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:33:36 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:33:36 +0200
commit6d56d892cfc99c9ddd2a351047a7fbcbd859a1f6 (patch)
treea4e2b3eedc4f5e9e9e8c3f76a9c81a0d577407eb
parent30368cbce79897c781f09e9574e1977917b6e04a (diff)
downloadslackbuilds-6d56d892cfc99c9ddd2a351047a7fbcbd859a1f6.tar.gz
libraries/soundtouch: Updated for version 1.3.1
-rw-r--r--libraries/soundtouch/soundtouch-1.3.1-gcc43.patch11
-rw-r--r--libraries/soundtouch/soundtouch.SlackBuild22
-rw-r--r--libraries/soundtouch/soundtouch.info4
3 files changed, 28 insertions, 9 deletions
diff --git a/libraries/soundtouch/soundtouch-1.3.1-gcc43.patch b/libraries/soundtouch/soundtouch-1.3.1-gcc43.patch
new file mode 100644
index 0000000000..0560c15202
--- /dev/null
+++ b/libraries/soundtouch/soundtouch-1.3.1-gcc43.patch
@@ -0,0 +1,11 @@
+diff -up soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp~ soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp
+--- soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp~ 2008-01-11 22:21:43.000000000 +0100
++++ soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp 2008-01-11 22:21:43.000000000 +0100
+@@ -48,6 +48,7 @@
+ #include <stdio.h>
+ #include <stdexcept>
+ #include <string>
++#include <cstring>
+ #include <assert.h>
+ #include <limits.h>
+
diff --git a/libraries/soundtouch/soundtouch.SlackBuild b/libraries/soundtouch/soundtouch.SlackBuild
index dd599b5fb9..c45b5d183c 100644
--- a/libraries/soundtouch/soundtouch.SlackBuild
+++ b/libraries/soundtouch/soundtouch.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for soundtouch 1.3.1
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=soundtouch
VERSION=1.3.1
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,10 +35,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
@@ -63,14 +66,17 @@ for i in config.guess config.sub depcomp install-sh missing; do
ln -s /usr/share/automake-1.$am/$i config/$i
done
+patch -p1 -i $CWD/$PRGNAM-1.3.1-gcc43.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --enable-shared \
- --disable-static \
- --localstatedir=/var \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --disable-static \
+ --localstatedir=/var \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
@@ -91,4 +97,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/soundtouch/soundtouch.info b/libraries/soundtouch/soundtouch.info
index 5e450c3b18..56712008e9 100644
--- a/libraries/soundtouch/soundtouch.info
+++ b/libraries/soundtouch/soundtouch.info
@@ -2,7 +2,9 @@ PRGNAM="soundtouch"
VERSION="1.3.1"
HOMEPAGE="http://www.surina.net/soundtouch"
DOWNLOAD="http://www.surina.net/soundtouch/soundtouch-1.3.1.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="5e0185e81dbba2f2eed8581b7664ab04"
-MAINTAINER="ppr:kut"
+MD5SUM_x86_64=""
+MAINTAINER="pprkut"
EMAIL="pprkut@liwjatan.at"
APPROVED="dsomero"