libraries/libebml: Updated for version 0.7.8

This commit is contained in:
Andrew Strong 2010-05-12 17:41:08 +02:00 committed by David Somero
parent 7f41e7b6d2
commit 80ecb950b1
3 changed files with 13 additions and 7 deletions

View file

@ -36,10 +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
@ -48,7 +51,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -59,17 +62,20 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make prefix=/usr sharedlib -C make/linux
make prefix=$PKG/usr install -C make/linux
make prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX} sharedlib -C make/linux
make prefix=$PKG/usr libdir=$PKG/usr/lib${LIBDIRSUFFIX} install -C make/linux
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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 || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LICENSE.LGPL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -5,4 +5,4 @@ DOWNLOAD="http://dl.matroska.org/downloads/libebml/libebml-0.7.8.tar.bz2"
MD5SUM="6278109f52e4f9d2c8a8dfc0d668b587"
MAINTAINER="Andrew Strong"
EMAIL="andrew.david.45@gmail.com"
APPROVED="David Somero"
APPROVED="dsomero,rworkman"

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':'.
|-----handy-ruler-------------------------------------------------------|
libebml: libebml
libebml: libebml (a C++ library for parsing EBML files)
libebml:
libebml: libebml is a C++ libary to parse EBML files. EBML (Extensible Binary
libebml: Meta-Language library) is a simple XML like binary language for