Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2012 16:01:50 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303781 - head/audio/dumb
Message-ID:  <201209061601.q86G1oII046953@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,@ALLEGRO@,#," ${WRKSRC}/make/config.txt
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209061601.q86G1oII046953>