svn commit: r394967 - head/games/neverball

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Aug 21 15:59:23 UTC 2015


Author: amdmi3
Date: Fri Aug 21 15:59:22 2015
New Revision: 394967
URL: https://svnweb.freebsd.org/changeset/ports/394967

Log:
  - Switch to options helpers

Modified:
  head/games/neverball/Makefile

Modified: head/games/neverball/Makefile
==============================================================================
--- head/games/neverball/Makefile	Fri Aug 21 15:38:09 2015	(r394966)
+++ head/games/neverball/Makefile	Fri Aug 21 15:59:22 2015	(r394967)
@@ -27,15 +27,9 @@ PORTDATA=	*
 
 OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-MAKE_ENV+=	ENABLE_NLS=1
-.else
-MAKE_ENV+=	ENABLE_NLS=0
-.endif
+NLS_USES=		gettext
+NLS_MAKE_ENV_ON=	ENABLE_NLS=1
+NLS_MAKE_ENV_OFF=	ENABLE_NLS=0
 
 do-install:
 	cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
@@ -47,9 +41,11 @@ do-install:
 		${STAGEDIR}${PREFIX}/share/pixmaps/${f}.png
 	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/
 .endfor
-.if ${PORT_OPTIONS:MNLS}
+
+do-install-NLS-on:
 	cd ${WRKSRC}/locale && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/locale/
-.endif
+
+do-install-DOCS-on:
 	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list