1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/chinese/sunpinyin/Makefile
Sunpoet Po-Chuan Hsieh dfe005ee44 Update USES=scons to specify scons of Python 2
- While I'm here, convert emulators/gem5 and games/marsnomercy to USES=scons
2020-05-25 18:33:44 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= sunpinyin
DISTVERSION= 2.0.4rc3
PORTREVISION= 1
CATEGORIES= chinese devel
MASTER_SITES= SF/open-gram:2
DISTFILES= lm_sc.3gm.arpa-20140820.tar.bz2:2 dict.utf8-20131214.tar.bz2:2
MAINTAINER= lichray@gmail.com
COMMENT= Statistical language model based input method engine
LICENSE= LGPL21 CDDL
LICENSE_COMB= dual
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
USE_GITHUB= yes
GH_TAGNAME= a8bd811
MAKE_ARGS+= --prefix=${PREFIX}
USE_LDCONFIG= yes
USES= gmake iconv perl5 pkgconfig python:2.7 scons:python2 shebangfix
USE_PERL5= build
SHEBANG_FILES= python/*.py
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
INSTALL_TARGET= install-lib install-headers --install-sandbox=${STAGEDIR}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsunpinyin.so.3.0
${SETENV} PATH=${WRKSRC}/src:$${PATH} ${GMAKE} -C ${WRKDIR} \
-f ${WRKSRC}/src/sunpinyin-dictgen.mk STAGEDIR=${STAGEDIR}
${INSTALL} -d ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/lm_sc.t3g ${WRKDIR}/pydict_sc.bin \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>