diff options
Diffstat (limited to 'libraries/libmpeg2/libmpeg2.SlackBuild')
-rw-r--r-- | libraries/libmpeg2/libmpeg2.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libraries/libmpeg2/libmpeg2.SlackBuild b/libraries/libmpeg2/libmpeg2.SlackBuild index 8b806beaf744..1bfa54c0b657 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 |