aboutsummaryrefslogtreecommitdiff
path: root/audio/ogmtools/ogmtools.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2010-05-13 00:21:56 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:21:56 +0200
commiteb4d93173943de4eb57d50d94fc32e9423daa81c (patch)
treedcb833a66c5ebc657069a728903efb2fa8382e33 /audio/ogmtools/ogmtools.SlackBuild
parent9c88b2f6c752ed4fcce5c7eb7200bd963c84aff9 (diff)
audio/ogmtools: Updated for version 1.5
Diffstat (limited to 'audio/ogmtools/ogmtools.SlackBuild')
-rw-r--r--audio/ogmtools/ogmtools.SlackBuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/audio/ogmtools/ogmtools.SlackBuild b/audio/ogmtools/ogmtools.SlackBuild
index 0a238cbd3b8d0..4fc3c691512bf 100644
--- a/audio/ogmtools/ogmtools.SlackBuild
+++ b/audio/ogmtools/ogmtools.SlackBuild
@@ -38,20 +38,23 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
CWD=$(pwd)
-set -e
-
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
+
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $TMP/$PRGNAM-$VERSION
chown -R root.root .
@@ -63,13 +66,15 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure --prefix=/usr \
---exec-prefix=/usr \
---sysconfdir=/etc \
---localstatedir=/var \
---mandir=/usr/man \
---infodir=/usr/info \
---build=$ARCH-slackware-linux
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --exec-prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -92,4 +97,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
### building package
chown -R root.root $PKG
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}