summaryrefslogtreecommitdiff
path: root/games/luola
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-05-31 14:40:56 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-05-31 14:40:56 +0000
commit8199e9dc487a0e6b99c306fa637033bf11374c41 (patch)
treefd7ac6263851705bfeae2fb7d9dce6af494453c8 /games/luola
parent- Trim Makefile header (diff)
- adopt optionsNG for games
- trim historical headers and trim comments - some Makefile cleanup Approved by: portmgr (bapt)
Notes
Notes: svn path=/head/; revision=319495
Diffstat (limited to 'games/luola')
-rw-r--r--games/luola/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/games/luola/Makefile b/games/luola/Makefile
index 05e7600d0288..fb9acd55f704 100644
--- a/games/luola/Makefile
+++ b/games/luola/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: luola
-# Date created: 20 Jan 2006
-# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
-#
PORTNAME= luola
PORTVERSION= 1.3.0
@@ -25,18 +21,20 @@ USE_SDL= sdl image ttf
CONFIGURE_ARGS= --program-prefix=''
-OPTIONS= SDL_GFX "Enable sdl_gfx for nicer graphics" on \
- SOUND "Enable sound" on
+OPTIONS_DEFINE= SDL_GFX SOUND
+SDL_GFX_DESC= Nicer graphics
-.include <bsd.port.pre.mk>
+OPTIONS_DEFAULT= SDL_GFX SOUND
-.if defined(WITHOUT_SDL_GFX)
-CONFIGURE_ARGS+= --disable-sdl-gfx
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSDL_GFX}
USE_SDL+= gfx
+.else
+CONFIGURE_ARGS+= --disable-sdl-gfx
.endif
-.if !defined(WITHOUT_SOUND)
+.if ${PORT_OPTIONS:MSOUND}
CONFIGURE_ARGS+= --enable-sound
USE_SDL+= mixer
.endif
@@ -46,11 +44,11 @@ post-patch:
post-install:
@${INSTALL_DATA} ${WRKDIR}/*.lev ${WRKDIR}/*.png ${DATADIR}/levels
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in README FAQ
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>