aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/zhcon
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-29 20:42:04 +0800
committerbapt <bapt@FreeBSD.org>2012-06-29 20:42:04 +0800
commit42034a997e9bbb7dd2e66f6719377aebbe4c7abd (patch)
tree44dc0e86776cb3ba9a994d27c2ee2b7a934bcdd2 /chinese/zhcon
parentff094d05cd8d446e528963491389242e738416e1 (diff)
downloadfreebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.gz
freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.zst
freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.zip
Convert to new option framework
Diffstat (limited to 'chinese/zhcon')
-rw-r--r--chinese/zhcon/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chinese/zhcon/Makefile b/chinese/zhcon/Makefile
index 6bec8a322a09..62c655c2bace 100644
--- a/chinese/zhcon/Makefile
+++ b/chinese/zhcon/Makefile
@@ -34,7 +34,8 @@ SUB_FILES= pkg-message
MAN1= zhcon.1
PORTDOCS= *
-OPTIONS= BIG5 "Use Big5 by default (Taiwan, Hong Kong, Macau)" off
+OPTIONS_DEFINE= BIG5 DOCS
+BIG5_DESC= Use Big5 by default (Taiwan, Hong Kong, Macau)
.include <bsd.port.options.mk>
@@ -49,13 +50,13 @@ post-patch:
${WRKSRC}/src/zhcon.conf
@${REINPLACE_CMD} -e 's,$$enable_debug = ,x&x,' \
${WRKSRC}/configure
-.if defined(WITH_BIG5)
+.if ${PORT_OPTIONS:MBIG5}
@${REINPLACE_CMD} -e '/defaultencode =/s,gb2312,big5,' \
${WRKSRC}/src/zhcon.conf
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/README.html ${WRKSRC}/doc/bpsf.txt \
${WRKSRC}/doc/poem.* ${WRKSRC}/ChangeLog ${WRKSRC}/NEWS \