From bc62127a69294fd3340ea793685953d98ff835dc Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 26 Apr 2013 16:39:14 +0000 Subject: Convert from USE_GETTEXT to USES= gettext While here: - Trim some headers - Convert to new options framework --- games/vdrift/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'games/vdrift') diff --git a/games/vdrift/Makefile b/games/vdrift/Makefile index 40f9a00ebdb9..5e3a36bc9cf7 100644 --- a/games/vdrift/Makefile +++ b/games/vdrift/Makefile @@ -33,19 +33,18 @@ DATE_VERSION= 2010-06-30 SUB_FILES= pkg-message -OPTIONS= DEBUG "Additional debug information" off \ - NLS "Internationalization support " on +OPTIONS_DEFINE= DEBUG NLS DOCS -.include +.include -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} SCONS_ARGS+= release=0 .else SCONS_ARGS+= release=1 .endif -.if !defined(WITHOUT_NLS) -USE_GETTEXT= yes +.if ${PORT_OPTIONS:MNLS} +USES+= gettext PLIST_SUB+= NLS="" FLAG_NLS= true .else @@ -74,7 +73,7 @@ do-install: ${FIND} * -type f -name "*.po" -exec ${INSTALL_DATA} "{}" "${DATADIR}/po/{}" \; .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for FILE in docs/AUTHORS docs/README ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} @@ -84,4 +83,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include -- cgit v1.2.3