diff options
author | mat <mat@FreeBSD.org> | 2015-08-19 21:29:59 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-08-19 21:29:59 +0800 |
commit | 9d30f78a00bed11384c7259f662e9352754275db (patch) | |
tree | ac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /chinese/ibus-libpinyin | |
parent | 996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff) | |
download | freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip |
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'chinese/ibus-libpinyin')
-rw-r--r-- | chinese/ibus-libpinyin/Makefile | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/chinese/ibus-libpinyin/Makefile b/chinese/ibus-libpinyin/Makefile index f46bbfc1743c..ffdc60f786f2 100644 --- a/chinese/ibus-libpinyin/Makefile +++ b/chinese/ibus-libpinyin/Makefile @@ -26,46 +26,23 @@ CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost \ OPTIONS_DEFINE= ENGLISH STROKE OPENCC NLS OPTIONS_DEFAULT= ENGLISH STROKE NLS +OPTIONS_SUB= yes ENGLISH_DESC= Enable English input mode STROKE_DESC= Enable stroke input mode OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion -.include <bsd.port.pre.mk> +ENGLISH_CONFIGURE_ENABLE= english-input-mode +STROKE_CONFIGURE_ENABLE= stroke-input-mode -.if ${PORT_OPTIONS:MENGLISH} -CONFIGURE_ARGS+= --enable-english-input-mode -PLIST_SUB+= ENGLISH="" -.else -CONFIGURE_ARGS+= --disable-english-input-mode -PLIST_SUB+= ENGLISH="@comment " -.endif +OPENCC_BROKEN= Requires newer OpenCC +OPENCC_CONFIGURE_ENABLE= opencc +OPENCC_LIB_DEPENDS= libopencc.so:${PORTSDIR}/chinese/opencc -.if ${PORT_OPTIONS:MSTROKE} -CONFIGURE_ARGS+= --enable-stroke-input-mode -PLIST_SUB+= STROKE="" -.else -CONFIGURE_ARGS+= --disable-stroke-input-mode -PLIST_SUB+= STROKE="@comment " -.endif - -.if ${PORT_OPTIONS:MOPENCC} -BROKEN= Requires newer OpenCC -CONFIGURE_ARGS+= --enable-opencc -LIB_DEPENDS+= libopencc.so:${PORTSDIR}/chinese/opencc -.else -CONFIGURE_ARGS+= --disable-opencc -.endif - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -USE_GNOME+= intltool -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif +NLS_USES= gettext +NLS_USE= GNOME=intltool +NLS_CONFIGURE_ENABLE= nls post-configure: @${REINPLACE_CMD} -e 's|DATADIRNAME = lib|DATADIRNAME = share|' ${WRKSRC}/po/Makefile -.include <bsd.port.post.mk> +.include <bsd.port.mk> |