1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2015-08-21 15:59:22 +00:00
parent 5ceb751f47
commit f7d81adc4c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394967

View File

@ -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>