aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gqmpeg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gqmpeg/Makefile')
-rw-r--r--audio/gqmpeg/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/audio/gqmpeg/Makefile b/audio/gqmpeg/Makefile
index 8ba42fb375f6..e2e58a383d38 100644
--- a/audio/gqmpeg/Makefile
+++ b/audio/gqmpeg/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gqmpeg
-PORTVERSION= 0.11.0
+PORTVERSION= 0.12.0
CATEGORIES+= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,7 +14,11 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER?= lyngbol@wheel.dk
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
+.if defined(WITH_MPG321)
+RUN_DEPENDS= mpg321:${PORTSDIR}/audio/mpg321
+.else
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
+.endif
USE_X_PREFIX= yes
USE_GTK= yes
@@ -34,8 +38,21 @@ MAN1= gqmpeg.1
USE_GNOME= yes
.endif
+.if !defined(WITH_MPG321)
+pre-everything::
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want to use mpg321 instead of mpg123,"
+ @${ECHO_MSG} "hit Ctrl-C right now and execute \"make WITH_MPG321=yes\""
+ @${ECHO_MSG}
+.endif
+
post-patch:
@find ${WRKSRC} -name 'Makefile.in*' | xargs ${PERL} -pi.orig -e \
's|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+.if defined(WITH_MPG321)
+ @${PERL} -pi.orig -e \
+ 's/^(#define MPG123_BINARY "mpg)123"/$${1}321"/' \
+ ${WRKSRC}/src/io_mpg123.c
+.endif
.include <bsd.port.post.mk>