summaryrefslogtreecommitdiff
path: root/audio/id3v2/id3v2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/id3v2/id3v2.SlackBuild')
-rw-r--r--audio/id3v2/id3v2.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/audio/id3v2/id3v2.SlackBuild b/audio/id3v2/id3v2.SlackBuild
index d7dd15c879..e02929d1c0 100644
--- a/audio/id3v2/id3v2.SlackBuild
+++ b/audio/id3v2/id3v2.SlackBuild
@@ -17,8 +17,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
@@ -29,7 +34,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-patch -p1 < $CWD/id3v2-track_no-segfault.patch
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -37,12 +41,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+patch -p1 < $CWD/id3v2-0.1.11-fixup_Makefile.patch
+patch -p1 < $CWD/id3v2-0.1.11-track_no-segfault.patch
+
# The Makefile doesnt use DESTDIR, but the program is just an
# executable and a man page (there's no apparent path-info compiled
# into the binary). So we can fake it be using PREFIX and manually
# creating the direcories needed in $PKG
mkdir -p $PKG/usr/{bin,man/man1}
-make
+make OPT="$SLKCFLAGS"
make install PREFIX=$PKG/usr
strip --strip-unneeded $PKG/usr/bin/id3v2
@@ -60,4 +67,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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}