- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-18 14:01:14 +00:00
parent 3c481e8a82
commit e3d2a69680
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397243

View file

@ -27,23 +27,15 @@ LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= ABOUT-NLS AUTHORS README TODO PORTDOCS= ABOUT-NLS AUTHORS README TODO
OPTIONS_DEFINE= DOCS NLS OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
.include <bsd.port.options.mk> NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
.if ${PORT_OPTIONS:MNLS} post-install-DOCS-on:
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS} .for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
.endif
.include <bsd.port.mk> .include <bsd.port.mk>