Changeset View
Changeset View
Standalone View
Standalone View
chinese/fcitx-libpinyin/Makefile
Show All 13 Lines | |||||
MAINTAINER= lichray@gmail.com | MAINTAINER= lichray@gmail.com | ||||
COMMENT= Libpinyin support for Fcitx | COMMENT= Libpinyin support for Fcitx | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LIB_DEPENDS= libfcitx-config.so:chinese/fcitx \ | LIB_DEPENDS= libfcitx-config.so:chinese/fcitx \ | ||||
libpinyin.so:chinese/libpinyin | libpinyin.so:chinese/libpinyin | ||||
USES= tar:xz cmake gettext pkgconfig | USES= tar:xz cmake gettext pkgconfig qt:4 | ||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
_MODEL_VER= 20130308 | _MODEL_VER= 20130308 | ||||
OPTIONS_DEFINE= QT4 | OPTIONS_DEFINE= QT4 | ||||
OPTIONS_DEFAULT=QT4 | OPTIONS_DEFAULT=QT4 | ||||
QT4_DESC= Enable Qt4 for dictmanager | QT4_DESC= Enable Qt4 for dictmanager | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MQT4} | .if ${PORT_OPTIONS:MQT4} | ||||
USE_QT4= qmake_build moc_build rcc_build uic_build gui webkit | USE_QT= qmake_build moc_build rcc_build uic_build gui webkit | ||||
USE_LDCONFIG= ${PREFIX}/lib/fcitx/qt | USE_LDCONFIG= ${PREFIX}/lib/fcitx/qt | ||||
PLIST_SUB+= QT4="" | PLIST_SUB+= QT4="" | ||||
.else | .else | ||||
CMAKE_ARGS+= -DENABLE_QT=OFF | CMAKE_ARGS+= -DENABLE_QT=OFF | ||||
PLIST_SUB+= QT4="@comment " | PLIST_SUB+= QT4="@comment " | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${CP} ${_DISTDIR}/model.text.${_MODEL_VER}.tar.gz ${WRKSRC}/data/. | @${CP} ${_DISTDIR}/model.text.${_MODEL_VER}.tar.gz ${WRKSRC}/data/. | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |