svn commit: r303781 - head/audio/dumb

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Sep 6 16:01:50 UTC 2012


Author: amdmi3
Date: Thu Sep  6 16:01:49 2012
New Revision: 303781
URL: http://svn.freebsd.org/changeset/ports/303781

Log:
  - Add OPTIONS

Modified:
  head/audio/dumb/Makefile

Modified: head/audio/dumb/Makefile
==============================================================================
--- head/audio/dumb/Makefile	Thu Sep  6 16:00:56 2012	(r303780)
+++ head/audio/dumb/Makefile	Thu Sep  6 16:01:49 2012	(r303781)
@@ -16,9 +16,12 @@ COMMENT=	IT, XM, S3M, and MOD player lib
 
 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, at ALLEGRO@,#," ${WRKSRC}/make/config.txt
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



More information about the svn-ports-all mailing list