summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libmpeg2/libmpeg2.SlackBuild14
-rw-r--r--libraries/libmpeg2/libmpeg2.info2
2 files changed, 10 insertions, 6 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
diff --git a/libraries/libmpeg2/libmpeg2.info b/libraries/libmpeg2/libmpeg2.info
index 94ef3603f0..852b424bb2 100644
--- a/libraries/libmpeg2/libmpeg2.info
+++ b/libraries/libmpeg2/libmpeg2.info
@@ -5,4 +5,4 @@ DOWNLOAD="http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz"
MD5SUM="0f92c7454e58379b4a5a378485bbd8ef"
MAINTAINER="ppr:kut"
EMAIL="pprkut@liwjatan.at"
-APPROVED="dsomero"
+APPROVED="dsomero,rworkman"