aboutsummaryrefslogtreecommitdiff
path: root/audio/id3v2
diff options
context:
space:
mode:
authorPaul Wisehart <wise@lupulin.net>2010-05-13 00:21:19 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:21:19 +0200
commita4e196804b255462af7c3034762ac0f0bac11e6a (patch)
treef3f3853b10079421c7dc8ddb45577d0f48481a5e /audio/id3v2
parent2ff64854a8e440e032c642ccdf44c7e24e86dc1b (diff)
audio/id3v2: Updated for version 0.1.11
Diffstat (limited to 'audio/id3v2')
-rw-r--r--audio/id3v2/README2
-rw-r--r--audio/id3v2/id3v2-0.1.11-fixup_Makefile.patch15
-rw-r--r--audio/id3v2/id3v2-0.1.11-track_no-segfault.patch (renamed from audio/id3v2/id3v2-track_no-segfault.patch)0
-rw-r--r--audio/id3v2/id3v2.SlackBuild13
-rw-r--r--audio/id3v2/id3v2.info4
5 files changed, 29 insertions, 5 deletions
diff --git a/audio/id3v2/README b/audio/id3v2/README
index f284a85d0309..902648dd5af1 100644
--- a/audio/id3v2/README
+++ b/audio/id3v2/README
@@ -1,3 +1,3 @@
id3v2 is a command line editor for id3v2 tags.
-This requires id3lib, which is also available from SlackBuilds.org.
+This requires id3lib.
diff --git a/audio/id3v2/id3v2-0.1.11-fixup_Makefile.patch b/audio/id3v2/id3v2-0.1.11-fixup_Makefile.patch
new file mode 100644
index 000000000000..d5534e7867db
--- /dev/null
+++ b/audio/id3v2/id3v2-0.1.11-fixup_Makefile.patch
@@ -0,0 +1,15 @@
+diff -Nur id3v2-0.1.11.orig/Makefile id3v2-0.1.11/Makefile
+--- id3v2-0.1.11.orig/Makefile 2004-05-04 13:33:53.000000000 -0500
++++ id3v2-0.1.11/Makefile 2009-07-29 00:36:39.438041437 -0500
+@@ -2,8 +2,10 @@
+
+ VERSION=0.1.11
+
++OPT= -O2
++
+ PREFIX= /usr/local
+-CXXFLAGS+= -I${PREFIX}/include/ -DVERSION="\"${VERSION}\"" #-DSORT_RUNTIME
++CXXFLAGS+= $(OPT) -I${PREFIX}/include/ -DVERSION="\"${VERSION}\"" #-DSORT_RUNTIME
+ LDFLAGS+= -L${PREFIX}/lib/
+
+ id3v2: convert.o list.o id3v2.o genre.o
diff --git a/audio/id3v2/id3v2-track_no-segfault.patch b/audio/id3v2/id3v2-0.1.11-track_no-segfault.patch
index 6a6a61e17a66..6a6a61e17a66 100644
--- a/audio/id3v2/id3v2-track_no-segfault.patch
+++ b/audio/id3v2/id3v2-0.1.11-track_no-segfault.patch
diff --git a/audio/id3v2/id3v2.SlackBuild b/audio/id3v2/id3v2.SlackBuild
index d7dd15c8793d..e02929d1c06f 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}
diff --git a/audio/id3v2/id3v2.info b/audio/id3v2/id3v2.info
index 909e9f2451ba..6df1af04ba1f 100644
--- a/audio/id3v2/id3v2.info
+++ b/audio/id3v2/id3v2.info
@@ -3,6 +3,8 @@ VERSION="0.1.11"
HOMEPAGE="http://id3v2.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/id3v2/id3v2-0.1.11.tar.gz"
MD5SUM="68afc3827cf01501dfb22949f901f1d8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="paul wisehart"
EMAIL="wise@lupulin.net"
-APPROVED="David Somero" \ No newline at end of file
+APPROVED="dsomero"