aboutsummaryrefslogtreecommitdiffstats
path: root/audio/madplay
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2011-12-21 20:15:18 +0800
committerdinoex <dinoex@FreeBSD.org>2011-12-21 20:15:18 +0800
commit7a946e1af6411bf3158c3da42201767a8d98b163 (patch)
tree57e63a72830c58349f456f3e808eecf41b9c2402 /audio/madplay
parent2468e41d8028d5f3378cd46286baf0134c525bbb (diff)
downloadfreebsd-ports-gnome-7a946e1af6411bf3158c3da42201767a8d98b163.tar.gz
freebsd-ports-gnome-7a946e1af6411bf3158c3da42201767a8d98b163.tar.zst
freebsd-ports-gnome-7a946e1af6411bf3158c3da42201767a8d98b163.zip
- remove PKGNAMESUFFIX
- add OPTIONS
Diffstat (limited to 'audio/madplay')
-rw-r--r--audio/madplay/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/audio/madplay/Makefile b/audio/madplay/Makefile
index 61a905dc9bb3..f349a50f3162 100644
--- a/audio/madplay/Makefile
+++ b/audio/madplay/Makefile
@@ -7,7 +7,7 @@
PORTNAME= madplay
PORTVERSION= 0.15.2b
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \
ftp://ftp.mars.org/pub/mpeg/
@@ -24,11 +24,17 @@ LICENSE= GPLv2
WANT_GNOME= yes
GNU_CONFIGURE= yes
+CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ALL_TARGET= all madtime
MAN1= abxtest.1 madplay.1
+OPTIONS= NLS "NLS support" on \
+ ESOUND "with esound" on
+
+.include <bsd.port.pre.mk>
+
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
@@ -37,15 +43,10 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-.include <bsd.port.pre.mk>
-
-CFLAGS+= -I${LOCALBASE}/include
-
-.if ${HAVE_GNOME:Mesound} != ""
-USE_GNOME+= esound
-PKGNAMESUFFIX= -esound
-.else
+.if !defined(WITHOUT_ESOUND)
CONFIGURE_ARGS+= --without-esd
+.else
+USE_GNOME+= esound
.endif
post-install: