summaryrefslogtreecommitdiff
path: root/libraries/libmpeg2/libmpeg2.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:41:32 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:41:32 +0200
commitf912a2fd081f2f8c65686b5a6ce549b26aede8ed (patch)
tree3bb4a619e50112c9b668bc4f05767c1039fb405c /libraries/libmpeg2/libmpeg2.SlackBuild
parentabb6a9712763a9d4425087526d8eeca76b2bb2c3 (diff)
downloadslackbuilds-f912a2fd081f2f8c65686b5a6ce549b26aede8ed.tar.gz
libraries/libmpeg2: Updated for version 0.5.1
Diffstat (limited to 'libraries/libmpeg2/libmpeg2.SlackBuild')
-rw-r--r--libraries/libmpeg2/libmpeg2.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/libraries/libmpeg2/libmpeg2.SlackBuild b/libraries/libmpeg2/libmpeg2.SlackBuild
index 8b806beaf7..1bfa54c0b6 100644
--- a/libraries/libmpeg2/libmpeg2.SlackBuild
+++ b/libraries/libmpeg2/libmpeg2.SlackBuild
@@ -37,10 +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
@@ -49,7 +52,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -62,11 +65,11 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-shared \
--disable-static \
- --build=$ARCH-slackware-linux \
- --host=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -80,8 +83,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog CodingStyle COPYING INSTALL NEWS \
- README TODO doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog CodingStyle COPYING INSTALL NEWS README TODO doc/*.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install