aboutsummaryrefslogtreecommitdiff
path: root/audio/umodplayer
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-04-03 08:52:50 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-04-03 08:52:50 +0000
commitabb277f9b72a1f339043d92fcd4ac6b30a7e8ad1 (patch)
treed64df7c825cc8a2d003c77109e6484174fd00195 /audio/umodplayer
parent5e0cb5c7c33f829eb51052bcb32ba6f11e1bba48 (diff)
downloadports-abb277f9b72a1f339043d92fcd4ac6b30a7e8ad1.tar.gz
ports-abb277f9b72a1f339043d92fcd4ac6b30a7e8ad1.zip
Notes
Diffstat (limited to 'audio/umodplayer')
-rw-r--r--audio/umodplayer/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/audio/umodplayer/Makefile b/audio/umodplayer/Makefile
index b3b7e889bb1f..7ad81176fe1c 100644
--- a/audio/umodplayer/Makefile
+++ b/audio/umodplayer/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= umodplayer
-PORTVERSION= 0.b5.1
+PORTVERSION= 0.${DISTVERSION:L}
DISTVERSION= B5.1
CATEGORIES= audio
MASTER_SITES= SF
@@ -19,14 +19,21 @@ LIB_DEPENDS= modplug.0:${PORTSDIR}/audio/libmodplug \
ao.3:${PORTSDIR}/audio/libao
BUILD_DEPENDS= ${LOCALBASE}/lib/libaiff.a:${PORTSDIR}/audio/libaiff
-BROKEN= Does not compile with audio/libaiff
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX}
+MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-GNU_CONFIGURE= yes
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
+
post-patch:
- @${REINPLACE_CMD} -e 's/CFLAGS =/CFLAGS +=/' ${WRKSRC}/${MAKEFILE}.in
+ @${REINPLACE_CMD} -e \
+ '/CFLAGS/s| =| +=| ; \
+ /CFLAGS/s| -O2| $$(CPPFLAGS)|g ; \
+ /^@/d' ${WRKSRC}/${MAKEFILE}.in
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/