aboutsummaryrefslogtreecommitdiff
path: root/audio/mp3blaster/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-12-05 20:59:22 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-12-05 20:59:22 +0000
commite5a9a72f660e0402da873a0d5cc19be984c940b1 (patch)
treedd76b4c45b3d1cde4085200c7b797c34f3e2b1d8 /audio/mp3blaster/Makefile
parent56ff16ada7d196d2194dbbff22eabbfb28df6677 (diff)
downloadports-e5a9a72f660e0402da873a0d5cc19be984c940b1.tar.gz
ports-e5a9a72f660e0402da873a0d5cc19be984c940b1.zip
- Update to version 3.2.0
* Fix playing Vorbis files on big-endian archs. * Add optional sidplay support (enabled by default). PR: 59841 59880 Submitted by: Ports Fury, naddy
Notes
Notes: svn path=/head/; revision=95156
Diffstat (limited to 'audio/mp3blaster/Makefile')
-rw-r--r--audio/mp3blaster/Makefile57
1 files changed, 39 insertions, 18 deletions
diff --git a/audio/mp3blaster/Makefile b/audio/mp3blaster/Makefile
index d236659ea21d..d0fc53e3312d 100644
--- a/audio/mp3blaster/Makefile
+++ b/audio/mp3blaster/Makefile
@@ -6,40 +6,61 @@
#
PORTNAME= mp3blaster
-PORTVERSION= 3.1.3
+PORTVERSION= 3.2.0
CATEGORIES= audio
MASTER_SITES= http://www.stack.nl/~brama/mp3blaster/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= MP3 console ncurses-based player
+USE_GETOPT_LONG= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --with-cxxflags="${CXXFLAGS}"
+
+MAN1= mp3blaster.1 nmixer.1 splay.1
+
+CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400010
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-cxxflags="${CXXFLAGS}" \
- --without-sidplay
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib" \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
-
-.if !defined(WITHOUT_VORBIS)
-LIB_DEPENDS+= vorbisfile.3:${PORTSDIR}/audio/libvorbis
+.if defined(WITH_LIRC)
+LIB_DEPENDS+= lirc_client.0:${PORTSDIR}/comms/lirc
+CONFIGURE_ARGS+= --with-lirc
+.endif
+
+.if !defined(WITHOUT_SIDPLAY)
+LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay
.else
-CONFIGURE_ARGS+= --without-oggvorbis
+CONFIGURE_ARGS+= --without-sidplay
.endif
-MAN1= mp3blaster.1 nmixer.1 splay.1
+.if defined(WITHOUT_VORBIS)
+CONFIGURE_ARGS+= --without-oggvorbis
+.else
+LIB_DEPENDS+= vorbisfile.3:${PORTSDIR}/audio/libvorbis
+.endif
-.if !defined(WITHOUT_VORBIS)
pre-everything::
- @${ECHO_MSG}
- @${ECHO_MSG} "You can disable support for Ogg Vorbis by defining WITHOUT_VORBIS."
- @${ECHO_MSG}
-.endif
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "MP3Blaster has the following tunable option(s):"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " WITH_LIRC=yes Turns on LIRC support"
+ @${ECHO_MSG} " WITHOUT_SIDPLAY=yes Turns on Sidplayer support"
+ @${ECHO_MSG} " WITHOUT_VORBIS=yes Turns off Ogg Vorbis support"
+ @${ECHO_MSG} ""
+
+post-extract:
+ @${FIND} ${WRKSRC} -name "getopt*" -delete
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
.include <bsd.port.post.mk>