aboutsummaryrefslogtreecommitdiff
path: root/audio/muse
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-12-29 04:39:22 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-12-29 04:39:22 +0000
commit8fe607b62853157af1e9acbfba69abb92d36fa54 (patch)
tree6e5d3b48cd78b083a4d30f36ce567653e4808493 /audio/muse
parent41247af72b55fe2c3763a218e9e7dd6002830393 (diff)
downloadports-8fe607b62853157af1e9acbfba69abb92d36fa54.tar.gz
ports-8fe607b62853157af1e9acbfba69abb92d36fa54.zip
Notes
Diffstat (limited to 'audio/muse')
-rw-r--r--audio/muse/Makefile20
-rw-r--r--audio/muse/files/patch-jmixer.cpp11
2 files changed, 24 insertions, 7 deletions
diff --git a/audio/muse/Makefile b/audio/muse/Makefile
index f3851875c4b0..2df08483c45f 100644
--- a/audio/muse/Makefile
+++ b/audio/muse/Makefile
@@ -16,8 +16,7 @@ DISTNAME= MuSE-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
- vorbis.2:${PORTSDIR}/audio/libvorbis \
- gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+ vorbis.2:${PORTSDIR}/audio/libvorbis
USE_REINPLACE= yes
USE_GNOMENG= yes
@@ -25,14 +24,21 @@ USE_GNOME= gtk12
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-debug
+CPPFLAGS= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT
+LDFLAGS= -L${LOCALBASE}/lib
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+= -lgnugetopt
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e 's|-O3|\$$CFLAGS|g ; \
- s|[\$$]GTK_LIBS -lgthread|\$$GTK_LIBS \$$GLIB_LIBS|g ; \
- s|[\$$]GTK_FLAGS|\$$GTK_CFLAGS \$$GLIB_CFLAGS|g' \
+ @${REINPLACE_CMD} -e 's|^CFLAGS=.*$$|CFLAGS="\$$CFLAGS"|g ; \
+ s|[$$]GTK_LIBS -lgthread|\$$GTK_LIBS \$$GLIB_LIBS|g ; \
+ s|[$$]GTK_FLAGS|\$$GTK_CFLAGS \$$GLIB_CFLAGS|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lpthread||g' ${WRKSRC}/Makefile.in
diff --git a/audio/muse/files/patch-jmixer.cpp b/audio/muse/files/patch-jmixer.cpp
new file mode 100644
index 000000000000..e5190231d46e
--- /dev/null
+++ b/audio/muse/files/patch-jmixer.cpp
@@ -0,0 +1,11 @@
+--- jmixer.cpp.orig Tue Jul 23 04:48:56 2002
++++ jmixer.cpp Sat Dec 28 09:41:10 2002
+@@ -808,7 +808,7 @@
+ }
+
+ /* this is the function selecting files for the scandir */
+-int selector(const struct dirent *dir) {
++int selector(struct dirent *dir) {
+ if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0
+ #ifdef HAVE_VORBIS
+ || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0