From afb8d3c02eaf22b680645e787f476ea934afa2b2 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 13 May 2010 00:31:11 +0200 Subject: libraries/libmpcdec: Updated for version 1.2.6 --- libraries/libmpcdec/libmpcdec.SlackBuild | 17 ++++++++++++----- libraries/libmpcdec/libmpcdec.info | 2 ++ 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'libraries/libmpcdec') diff --git a/libraries/libmpcdec/libmpcdec.SlackBuild b/libraries/libmpcdec/libmpcdec.SlackBuild index 905d0755e0578..d9816961529af 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 3ff1825749a71..05432b5b8de06 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" -- cgit v1.2.3