Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 00:00:08 +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: r311526 - head/games/chroma
Message-ID:  <201302040000.r140085Z095006@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Feb  4 00:00:08 2013
New Revision: 311526
URL: http://svnweb.freebsd.org/changeset/ports/311526

Log:
  - Trim header
  - OptionsNG

Modified:
  head/games/chroma/Makefile

Modified: head/games/chroma/Makefile
==============================================================================
--- head/games/chroma/Makefile	Sun Feb  3 23:53:48 2013	(r311525)
+++ head/games/chroma/Makefile	Mon Feb  4 00:00:08 2013	(r311526)
@@ -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}/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302040000.r140085Z095006>