diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2012-12-05 10:31:44 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2012-12-05 10:31:44 +0800 |
commit | b2d8578bf0f15ae1ae57021e3ca131b19f9e2519 (patch) | |
tree | cf31a8551c147dd5787e3178d9b49c91dedbbf26 /games | |
parent | 25d1e89219ddaa907481085f63ad1d0f424684e4 (diff) | |
download | freebsd-ports-gnome-b2d8578bf0f15ae1ae57021e3ca131b19f9e2519.tar.gz freebsd-ports-gnome-b2d8578bf0f15ae1ae57021e3ca131b19f9e2519.tar.zst freebsd-ports-gnome-b2d8578bf0f15ae1ae57021e3ca131b19f9e2519.zip |
- OptionsNG
- Trim header
Feature safe: yes
Diffstat (limited to 'games')
-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> |