summaryrefslogtreecommitdiff
path: root/japanese/skk-tools/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-29 12:42:04 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-29 12:42:04 +0000
commit222461c302e52a3848555e999ecc7a10f98b278e (patch)
tree4fad0f8d9c328a570a49371daf5f0078d7075272 /japanese/skk-tools/Makefile
parentAdd a shared OSD description (diff)
Convert to new option framework
Notes
Notes: svn path=/head/; revision=300215
Diffstat (limited to 'japanese/skk-tools/Makefile')
-rw-r--r--japanese/skk-tools/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/japanese/skk-tools/Makefile b/japanese/skk-tools/Makefile
index 87336a42d080..904c414cd9f0 100644
--- a/japanese/skk-tools/Makefile
+++ b/japanese/skk-tools/Makefile
@@ -18,7 +18,9 @@ COMMENT= Jisyo-tools for the SKK Japanese-input software
LICENSE= GPLv2
-OPTIONS= EXPR2 "Build skkdic-expr2 (needs glib-2.x)" on
+OPTIONS_DEFINE= EXPR2
+OPTIONS_DEFAULT= EXPR2
+EXPR2_DESC= Build skkdic-expr2 (needs glib-2.x)
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
@@ -30,19 +32,19 @@ PLIST_FILES= bin/skkdic-count bin/skkdic-expr bin/skkdic-sort
.include <bsd.port.options.mk>
-.if defined(WITHOUT_EXPR2)
-CONFIGURE_ARGS= --without-skkdic-expr2
-.else
+.if ${PORT_OPTIONS:MEXPR2}
USE_GNOME= glib20
PORTDOCS+= README.skkdic-expr2
PLIST_FILES+= bin/skkdic-expr2
+.else
+CONFIGURE_ARGS= --without-skkdic-expr2
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/READMEs/README.C ${DOCSDIR}/README.skktools
-.if !defined(WITHOUT_EXPR2)
+.if ${PORT_OPTIONS:MEXPR2}
${INSTALL_DATA} ${WRKSRC}/READMEs/README.skkdic-expr2 ${DOCSDIR}
.endif
.endif