aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2012-09-07 00:01:49 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2012-09-07 00:01:49 +0800
commit0621d1126be305ef18643394b2fcf32b541e0faa (patch)
treef940e0f7c4b22d5e08f8098f38e99e607a582137 /audio
parent5f75a8dece500bb8d5a4c7d766bc57b8bf342290 (diff)
downloadfreebsd-ports-gnome-0621d1126be305ef18643394b2fcf32b541e0faa.tar.gz
freebsd-ports-gnome-0621d1126be305ef18643394b2fcf32b541e0faa.tar.zst
freebsd-ports-gnome-0621d1126be305ef18643394b2fcf32b541e0faa.zip
- Add OPTIONS
Diffstat (limited to 'audio')
-rw-r--r--audio/dumb/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/audio/dumb/Makefile b/audio/dumb/Makefile
index 261e222c0d1a..e90b1931e961 100644
--- a/audio/dumb/Makefile
+++ b/audio/dumb/Makefile
@@ -16,9 +16,12 @@ COMMENT= IT, XM, S3M, and MOD player library
USE_GMAKE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= ALLEGRO
+ALLEGRO_DESC= Enable allegro support
-.if defined(WITH_ALLEGRO)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MALLEGRO}
LIB_DEPENDS+= alleg.42:${PORTSDIR}/devel/allegro
PLIST_SUB+= ALLEGRO=""
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`"
@@ -43,4 +46,4 @@ pre-configure:
@${REINPLACE_CMD} -e "s,@ALLEGRO@,#," ${WRKSRC}/make/config.txt
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>