Lines 6-33
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ibus-pinyin |
8 |
PORTNAME= ibus-pinyin |
9 |
PORTVERSION= 1.3.11 |
9 |
PORTVERSION= 1.4.0 |
10 |
CATEGORIES= chinese |
10 |
CATEGORIES= chinese |
11 |
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} |
11 |
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} |
12 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DBTAR} |
12 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
|
|
13 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
13 |
|
14 |
|
14 |
MAINTAINER= henry.hu.sh@gmail.com |
15 |
MAINTAINER= henry.hu.sh@gmail.com |
15 |
COMMENT= PinYin engine for IBus |
16 |
COMMENT= PinYin engine for IBus |
16 |
|
17 |
|
17 |
BUILD_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ |
18 |
BUILD_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ |
18 |
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \ |
19 |
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 |
19 |
${LOCALBASE}/include/boost/accumulators/accumulators.hpp:${PORTSDIR}/devel/boost-libs |
20 |
RUN_DEPENDS= ibus-daemon:${PORTSDIR}/textproc/ibus \ |
20 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
21 |
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 |
21 |
|
22 |
|
22 |
USE_PYTHON= yes |
23 |
USE_PYTHON= yes |
23 |
USE_GNOME= pygtk2 |
24 |
USE_GNOME= pygtk2 |
24 |
|
25 |
|
|
|
26 |
USE_GCC= 4.4+ |
25 |
USE_GMAKE= yes |
27 |
USE_GMAKE= yes |
26 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
27 |
CONFIGURE_ARGS= --disable-dependency-tracking |
29 |
CONFIGURE_ARGS= --disable-dependency-tracking --disable-lua-extension |
28 |
|
30 |
|
29 |
PROJECTHOST= ibus |
31 |
PROJECTHOST= ibus |
30 |
|
32 |
|
|
|
33 |
OPTIONS= ANDROID_DB "Build Android DB" on \ |
34 |
OPENPHRASE_DB "Build Open Phrase DB" off \ |
35 |
OPENCC "Use opencc" off |
36 |
|
37 |
.include <bsd.port.pre.mk> |
38 |
|
39 |
.if defined(WITH_ANDROID_DB) |
40 |
CONFIGURE_ARGS+= --enable-db-android |
41 |
PLIST_SUB+= ANDROID_DB="" |
42 |
.else |
43 |
CONFIGURE_ARGS+= --disable-db-android |
44 |
PLIST_SUB+= ANDROID_DB="@comment " |
45 |
.endif |
46 |
|
47 |
OPENPHRASE_DBVER= 1.2.99 |
48 |
OPENPHRASE_DBFILE= pinyin-database-${OPENPHRASE_DBVER}.tar.bz2 |
49 |
|
50 |
.if defined(WITH_OPENPHRASE_DB) |
51 |
CONFIGURE_ARGS+= --enable-db-open-phrase |
52 |
DISTFILES+= ${OPENPHRASE_DBFILE} |
53 |
PLIST_SUB+= OPENPHRASE_DB="" |
54 |
.else |
55 |
CONFIGURE_ARGS+= --disable-db-open-phrase |
56 |
PLIST_SUB+= OPENPHRASE_DB="@comment " |
57 |
.endif |
58 |
|
59 |
.if defined(WITH_OPENCC) |
60 |
CONFIGURE_ARGS+= --enable-opencc |
61 |
LIB_DEPENDS+= opencc.1:${PORTSDIR}/chinese/opencc |
62 |
.else |
63 |
CONFIGURE_ARGS+= --disable-opencc |
64 |
.endif |
65 |
|
31 |
.if !defined(WITHOUT_NLS) |
66 |
.if !defined(WITHOUT_NLS) |
32 |
USE_GETTEXT= yes |
67 |
USE_GETTEXT= yes |
33 |
PLIST_SUB+= NLS="" |
68 |
PLIST_SUB+= NLS="" |
Lines 36-42
Link Here
|
36 |
PLIST_SUB+= NLS="@comment " |
71 |
PLIST_SUB+= NLS="@comment " |
37 |
.endif |
72 |
.endif |
38 |
|
73 |
|
|
|
74 |
post-extract: |
75 |
.if defined(WITH_OPENPHRASE_DB) |
76 |
@${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase |
77 |
.endif |
78 |
|
39 |
post-patch: |
79 |
post-patch: |
40 |
@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure |
80 |
@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' ${WRKSRC}/configure |
41 |
|
81 |
|
42 |
.include <bsd.port.mk> |
82 |
.include <bsd.port.post.mk> |