libraries/libdca: Updated for version 0.0.5

This commit is contained in:
Niklas Nille Åkerström 2010-05-13 00:30:17 +02:00 committed by Robby Workman
parent 365db10731
commit 8ee45d19da
3 changed files with 16 additions and 6 deletions

View File

@ -37,8 +37,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
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -56,6 +61,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--program-prefix="" \ --program-prefix="" \
--program-suffix="" \ --program-suffix="" \
@ -66,8 +72,10 @@ make install DESTDIR=$PKG
cp -a libdca/dca_internal.h $PKG/usr/include cp -a libdca/dca_internal.h $PKG/usr/include
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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 ( cd $PKG/usr/man
@ -84,8 +92,8 @@ 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 -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 if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$VERSION rm -rf $PKG $TMP/$PRGNAM-$VERSION
fi fi

View File

@ -2,7 +2,9 @@ PRGNAM="libdca"
VERSION="0.0.5" VERSION="0.0.5"
HOMEPAGE="http://www.videolan.org/developers/libdca.html" 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="http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="dab6b2795c66a82a6fcd4f8343343021" MD5SUM="dab6b2795c66a82a6fcd4f8343343021"
MD5SUM_x86_64=""
MAINTAINER="Niklas 'Nille' Åkerström" MAINTAINER="Niklas 'Nille' Åkerström"
EMAIL="nille_kungen[AT]hotmail.com" EMAIL="nille_kungen[AT]hotmail.com"
APPROVED="rworkman" APPROVED="rworkman"

View File

@ -6,7 +6,7 @@
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
libdca: libdca - a free DTS Coherent Acoustics decoder (previously libdts) libdca: libdca (free DTS Coherent Acoustics decoder)
libdca: libdca:
libdca: libdca is a free library for decoding DTS Coherent Acoustics streams. 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 libdca: The code is written by Gildas Bazin and was based on the a52dec