summaryrefslogtreecommitdiff
path: root/audio/mhwaveedit/mhwaveedit.SlackBuild
diff options
context:
space:
mode:
authorDušan Stefanović <stefanovic.dusan@gmail.com>2010-05-13 00:21:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:21:31 +0200
commit9163d38f22507b38b0d3467ad08138a973f2d704 (patch)
treee0f0a7b9d90e131f054de67add5f14868808d9e8 /audio/mhwaveedit/mhwaveedit.SlackBuild
parent6a324ab028ac79cdfda62ee18af8ed4da367e80f (diff)
downloadslackbuilds-9163d38f22507b38b0d3467ad08138a973f2d704.tar.gz
audio/mhwaveedit: Updated for version 1.4.14
Diffstat (limited to 'audio/mhwaveedit/mhwaveedit.SlackBuild')
-rw-r--r--audio/mhwaveedit/mhwaveedit.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/audio/mhwaveedit/mhwaveedit.SlackBuild b/audio/mhwaveedit/mhwaveedit.SlackBuild
index f484225869..7a71076257 100644
--- a/audio/mhwaveedit/mhwaveedit.SlackBuild
+++ b/audio/mhwaveedit/mhwaveedit.SlackBuild
@@ -20,8 +20,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
rm -rf $PKG
@@ -36,6 +41,7 @@ chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir=/usr/doc/$PKGNAME-$VERSION \
@@ -48,8 +54,10 @@ make || exit 1
make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- 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
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION
@@ -68,4 +76,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}