mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
libraries/soundtouch: Updated for version 1.3.1
This commit is contained in:
parent
30368cbce7
commit
6d56d892cf
3 changed files with 28 additions and 9 deletions
11
libraries/soundtouch/soundtouch-1.3.1-gcc43.patch
Normal file
11
libraries/soundtouch/soundtouch-1.3.1-gcc43.patch
Normal file
|
@ -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>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for soundtouch 1.3.1
|
# 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.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
PRGNAM=soundtouch
|
PRGNAM=soundtouch
|
||||||
VERSION=1.3.1
|
VERSION=1.3.1
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-3}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
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
|
ln -s /usr/share/automake-1.$am/$i config/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
patch -p1 -i $CWD/$PRGNAM-1.3.1-gcc43.patch
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||||
--enable-shared \
|
--sysconfdir=/etc \
|
||||||
--disable-static \
|
--enable-shared \
|
||||||
--localstatedir=/var \
|
--disable-static \
|
||||||
|
--localstatedir=/var \
|
||||||
--build=$ARCH-slackware-linux \
|
--build=$ARCH-slackware-linux \
|
||||||
--host=$ARCH-slackware-linux
|
--host=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
@ -91,4 +97,4 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
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}
|
||||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="soundtouch"
|
||||||
VERSION="1.3.1"
|
VERSION="1.3.1"
|
||||||
HOMEPAGE="http://www.surina.net/soundtouch"
|
HOMEPAGE="http://www.surina.net/soundtouch"
|
||||||
DOWNLOAD="http://www.surina.net/soundtouch/soundtouch-1.3.1.tar.gz"
|
DOWNLOAD="http://www.surina.net/soundtouch/soundtouch-1.3.1.tar.gz"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM="5e0185e81dbba2f2eed8581b7664ab04"
|
MD5SUM="5e0185e81dbba2f2eed8581b7664ab04"
|
||||||
MAINTAINER="ppr:kut"
|
MD5SUM_x86_64=""
|
||||||
|
MAINTAINER="pprkut"
|
||||||
EMAIL="pprkut@liwjatan.at"
|
EMAIL="pprkut@liwjatan.at"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue