summaryrefslogtreecommitdiff
path: root/libraries/libmpcdec
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-13 00:31:11 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:31:11 +0200
commitafb8d3c02eaf22b680645e787f476ea934afa2b2 (patch)
tree5178bf7e3df65ad4148555140e51e7f822a25724 /libraries/libmpcdec
parentbfce3816de726e879bfdbd34e8c8cfad18536276 (diff)
downloadslackbuilds-afb8d3c02eaf22b680645e787f476ea934afa2b2.tar.gz
libraries/libmpcdec: Updated for version 1.2.6
Diffstat (limited to 'libraries/libmpcdec')
-rw-r--r--libraries/libmpcdec/libmpcdec.SlackBuild17
-rw-r--r--libraries/libmpcdec/libmpcdec.info2
2 files changed, 14 insertions, 5 deletions
diff --git a/libraries/libmpcdec/libmpcdec.SlackBuild b/libraries/libmpcdec/libmpcdec.SlackBuild
index 905d0755e0..d981696152 100644
--- a/libraries/libmpcdec/libmpcdec.SlackBuild
+++ b/libraries/libmpcdec/libmpcdec.SlackBuild
@@ -28,6 +28,7 @@ VERSION=1.2.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -35,8 +36,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
@@ -53,10 +59,11 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --disable-static
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static
make
make install-strip DESTDIR=$PKG
@@ -69,4 +76,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/libmpcdec/libmpcdec.info b/libraries/libmpcdec/libmpcdec.info
index 3ff1825749..05432b5b8d 100644
--- a/libraries/libmpcdec/libmpcdec.info
+++ b/libraries/libmpcdec/libmpcdec.info
@@ -2,7 +2,9 @@ PRGNAM="libmpcdec"
VERSION="1.2.6"
HOMEPAGE="http://www.musepack.net"
DOWNLOAD="http://files.musepack.net/source/libmpcdec-1.2.6.tar.bz2"
+DOWNLOAD_x86_64=""
MD5SUM="7f7a060e83b4278acf4b77d7a7b9d2c0"
+MD5SUM_x86_64=""
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
APPROVED="rworkman"