- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2015-08-21 16:00:10 +00:00
parent 5ea3b82850
commit 467b62000c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394971

View File

@ -25,20 +25,15 @@ OPTIONS_SUB= yes
WORDVIEW_DESC= Build Tcl/Tk document viewer
WORDVIEW_USES= tk
WORDVIEW_CONFIGURE_ON= --with-wish=${WISH}
WORDVIEW_CONFIGURE_OFF= --disable-wordview
.if !defined(LANG) || ${LANG} != ru_RU.KOI8-R
# Remove the below line to get Cyrillic code page support instead
CFLAGS+= -DLATIN1=1
.endif
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWORDVIEW}
USES+= tk
CONFIGURE_ARGS+= --with-wish=${WISH}
.else
CONFIGURE_ARGS+= --disable-wordview
.endif
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in