summaryrefslogtreecommitdiff
path: root/libraries/libdca
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libdca')
-rw-r--r--libraries/libdca/libdca.SlackBuild18
-rw-r--r--libraries/libdca/libdca.info2
-rw-r--r--libraries/libdca/slack-desc2
3 files changed, 16 insertions, 6 deletions
diff --git a/libraries/libdca/libdca.SlackBuild b/libraries/libdca/libdca.SlackBuild
index 86643069fc..40e3abd40f 100644
--- a/libraries/libdca/libdca.SlackBuild
+++ b/libraries/libdca/libdca.SlackBuild
@@ -37,8 +37,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
@@ -56,6 +61,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--program-prefix="" \
--program-suffix="" \
@@ -66,8 +72,10 @@ make install DESTDIR=$PKG
cp -a libdca/dca_internal.h $PKG/usr/include
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -84,8 +92,8 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
if [ "$1" = "--cleanup" ]; then
- rm -rf $PKG $TMP/$PRGNAM-$VERSION
- fi
+ rm -rf $PKG $TMP/$PRGNAM-$VERSION
+fi
diff --git a/libraries/libdca/libdca.info b/libraries/libdca/libdca.info
index e6af315c7c..bfafb42fbc 100644
--- a/libraries/libdca/libdca.info
+++ b/libraries/libdca/libdca.info
@@ -2,7 +2,9 @@ PRGNAM="libdca"
VERSION="0.0.5"
HOMEPAGE="http://www.videolan.org/developers/libdca.html"
DOWNLOAD="http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2"
+DOWNLOAD_x86_64=""
MD5SUM="dab6b2795c66a82a6fcd4f8343343021"
+MD5SUM_x86_64=""
MAINTAINER="Niklas 'Nille' Åkerström"
EMAIL="nille_kungen[AT]hotmail.com"
APPROVED="rworkman"
diff --git a/libraries/libdca/slack-desc b/libraries/libdca/slack-desc
index e7bb6f8095..d1235a8f07 100644
--- a/libraries/libdca/slack-desc
+++ b/libraries/libdca/slack-desc
@@ -6,7 +6,7 @@
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
-libdca: libdca - a free DTS Coherent Acoustics decoder (previously libdts)
+libdca: libdca (free DTS Coherent Acoustics decoder)
libdca:
libdca: libdca is a free library for decoding DTS Coherent Acoustics streams.
libdca: The code is written by Gildas Bazin and was based on the a52dec