aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-02-04 08:00:08 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-02-04 08:00:08 +0800
commit29f2fd881ab35d590c276428d6652b0b2d556a38 (patch)
treedc1d8a2783bf1d671301b0c02f7a51bb3bcbd92c /games
parent691c4a8281f94dd02f4fc896018b964ea74b20a1 (diff)
downloadfreebsd-ports-gnome-29f2fd881ab35d590c276428d6652b0b2d556a38.tar.gz
freebsd-ports-gnome-29f2fd881ab35d590c276428d6652b0b2d556a38.tar.zst
freebsd-ports-gnome-29f2fd881ab35d590c276428d6652b0b2d556a38.zip
- Trim header
- OptionsNG
Diffstat (limited to 'games')
-rw-r--r--games/chroma/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/games/chroma/Makefile b/games/chroma/Makefile
index fc4439246daa..7047a7e8c3e6 100644
--- a/games/chroma/Makefile
+++ b/games/chroma/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: chroma
-# Date created: 28 Jan 2010
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= chroma
PORTVERSION= 1.08
@@ -25,28 +21,30 @@ LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= README
-OPTIONS= SDL "Enable SDL interface" on \
- CURSES "Enable curses interface" on
+OPTIONS_DEFINE= SDL CURSES DOCS
+OPTIONS_DEFAULT=SDL CURSES
+SDL_DESC= Enable SDL interface
+CURSES_DESC= Enable curses interface
.include <bsd.port.options.mk>
-.if defined(WITHOUT_CURSES)
+.if ${PORT_OPTIONS:MCURSES}
+PLIST_SUB+= CURSES=""
+.else
CONFIGURE_ARGS+=--disable-curses
PLIST_SUB+= CURSES="@comment "
-.else
-PLIST_SUB+= CURSES=""
.endif
-.if defined(WITHOUT_SDL)
-CONFIGURE_ARGS+=--disable-sdl
-PLIST_SUB+= SDL="@comment "
-.else
+.if ${PORT_OPTIONS:MSDL}
USE_SDL= sdl image
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
PLIST_SUB+= SDL=""
+.else
+CONFIGURE_ARGS+=--disable-sdl
+PLIST_SUB+= SDL="@comment "
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/