Date: Wed, 5 Dec 2012 02:31:44 +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: r308302 - head/games/apricots Message-ID: <201212050231.qB52VibR038400@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Wed Dec 5 02:31:44 2012 New Revision: 308302 URL: http://svnweb.freebsd.org/changeset/ports/308302 Log: - OptionsNG - Trim header Feature safe: yes Modified: head/games/apricots/Makefile Modified: head/games/apricots/Makefile ============================================================================== --- head/games/apricots/Makefile Wed Dec 5 02:31:03 2012 (r308301) +++ head/games/apricots/Makefile Wed Dec 5 02:31:44 2012 (r308302) @@ -1,9 +1,5 @@ -# New ports collection makefile for: apricots -# Date created: 07 Jan 2008 -# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> -# +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> # $FreeBSD$ -# PORTNAME= apricots PORTVERSION= 0.2.6 @@ -33,24 +29,25 @@ DESKTOP_ENTRIES="Apricots" \ "Game;ArcadeGame;" \ false -OPTIONS= OPENAL "Enable OpenAL audio" on +OPTIONS_DEFINE= OPENAL +OPTIONS_DEFAULT=OPENAL -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_OPENAL) +.if ${PORT_OPTIONS:MOPENAL} USE_OPENAL= al alut .endif post-patch: -.if defined(WITHOUT_OPENAL) - @${REINPLACE_CMD} -e 's|-DAP_AUDIO_OPENAL||' ${WRKSRC}/configure -.else +.if ${PORT_OPTIONS:MOPENAL} @${REINPLACE_CMD} -e '/^LIBS = / s|$$| -lopenal -lalut|' \ ${WRKSRC}/apricots/Makefile.in +.else + @${REINPLACE_CMD} -e 's|-DAP_AUDIO_OPENAL||' ${WRKSRC}/configure .endif @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} post-install: ${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} @@ -58,4 +55,4 @@ post-install: .endfor .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?201212050231.qB52VibR038400>