aboutsummaryrefslogtreecommitdiff
path: root/textproc/catdoc
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-21 16:00:10 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-21 16:00:10 +0000
commit467b62000c7f633d86c4770e354cbe4aa6049429 (patch)
treebf0fb1d3c60153b035325c341764623e34e79cd0 /textproc/catdoc
parent5ea3b828508c809777d544236978886812b463e4 (diff)
downloadports-467b62000c7f633d86c4770e354cbe4aa6049429.tar.gz
ports-467b62000c7f633d86c4770e354cbe4aa6049429.zip
- Switch to options helpers
Notes
Notes: svn path=/head/; revision=394971
Diffstat (limited to 'textproc/catdoc')
-rw-r--r--textproc/catdoc/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/textproc/catdoc/Makefile b/textproc/catdoc/Makefile
index 109ed41708d4..12a7116d2355 100644
--- a/textproc/catdoc/Makefile
+++ b/textproc/catdoc/Makefile
@@ -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