1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/chinese/libime/Makefile
2021-04-06 16:31:07 +02:00

46 lines
1.2 KiB
Makefile

# Created by: Ka Ho Ng <khng300@gmail.com>
PORTNAME= libime
DISTVERSION= 1.0.3
CATEGORIES= chinese textproc
MASTER_SITES= https://download.fcitx-im.org/data/:opengram_lm,opengram_dict,table_dict
DISTFILES= ${OPENGRAM_LM_TAR}:opengram_lm \
${OPENGRAM_DICT_TAR}:opengram_dict \
${TABLE_DICT_TAR}:table_dict
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= khng300@gmail.com
COMMENT= Library to support generic input method implementation
LICENSE= LGPL21
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libFcitx5Utils.so:textproc/fcitx5
USES= compiler:c++17-lang cmake kde:5
PLIST_SUB= VER=${PORTVERSION} VER_MAJOR=${PORTVERSION:R:R}
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= fcitx
GH_TUPLE= kpu:kenlm:01c49fe:kenlm/src/libime/core/kenlm
USE_KDE= ecm
CMAKE_OFF= ENABLE_TEST
MAKE_ENV= FCITX5_DOWNLOAD_DISALLOWED=TRUE
# These must follow data/CMakeLists.txt
OPENGRAM_LM_TAR= lm_sc.3gm.arpa-20140820.tar.bz2
OPENGRAM_DICT_TAR= dict.utf8-20200715.tar.xz
TABLE_DICT_TAR= table.tar.gz
post-extract:
${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_LM_TAR} ${WRKSRC}/data
${CP} ${DISTDIR}/${DIST_SUBDIR}/${OPENGRAM_DICT_TAR} ${WRKSRC}/data
${CP} ${DISTDIR}/${DIST_SUBDIR}/${TABLE_DICT_TAR} ${WRKSRC}/data
.include <bsd.port.mk>