diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2012-12-05 02:31:44 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2012-12-05 02:31:44 +0000 |
commit | ee5929773c4fc9be8ec9df1ee836af735609adab (patch) | |
tree | cf31a8551c147dd5787e3178d9b49c91dedbbf26 /games/apricots/Makefile | |
parent | 5231f89b5f5ae55e3933e57ecbd95109374e991b (diff) |
Notes
Diffstat (limited to 'games/apricots/Makefile')
-rw-r--r-- | games/apricots/Makefile | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/games/apricots/Makefile b/games/apricots/Makefile index f8cc4dd6619e..4b954895030b 100644 --- a/games/apricots/Makefile +++ b/games/apricots/Makefile @@ -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> |