summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/xmms-mp3cue/Makefile8
-rw-r--r--audio/xmms-mp3cue/files/patch-configure11
2 files changed, 18 insertions, 1 deletions
diff --git a/audio/xmms-mp3cue/Makefile b/audio/xmms-mp3cue/Makefile
index 9b1b74d..b1e3954 100644
--- a/audio/xmms-mp3cue/Makefile
+++ b/audio/xmms-mp3cue/Makefile
@@ -23,7 +23,13 @@ USE_X_PREFIX= yes
PLIST_SUB= PORTDOCS=${DISTNAME}
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CONFIGURE_ENV= CFLAGS="-fPIC"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/*.c
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/xmms-mp3cue/files/patch-configure b/audio/xmms-mp3cue/files/patch-configure
new file mode 100644
index 0000000..3bbc247
--- /dev/null
+++ b/audio/xmms-mp3cue/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Fri Feb 20 15:59:26 2004
++++ configure Fri Feb 20 15:59:57 2004
+@@ -882,7 +882,7 @@
+ echo $ac_n "checking "XMMS cflags"""... $ac_c" 1>&6
+ echo "configure:884: checking "XMMS cflags"" >&5
+ XMMS_CFLAGS=`xmms-config --cflags`
+-CFLAGS="$XMMS_CFLAGS"
++CFLAGS="$CFLAGS $XMMS_CFLAGS"
+ echo "$ac_t""yes" 1>&6
+
+ echo $ac_n "checking "XMMS installpath"""... $ac_c" 1>&6
OpenPOWER on IntegriCloud