Lines 1-24
Link Here
|
1 |
# Created by: Henry Hu <henry.hu.sh@gmail.com> |
1 |
# Created by: Henry Hu <henry.hu.sh@gmail.com> |
2 |
# $FreeBSD: head/chinese/pyzy/Makefile 424427 2016-10-21 15:21:13Z mat $ |
2 |
# $FreeBSD: head/chinese/pyzy/Makefile 422140 2016-09-14 15:59:34Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= pyzy |
4 |
PORTNAME= pyzy |
5 |
PORTVERSION= 0.1.0 |
5 |
PORTVERSION= 0.1.0 |
6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= chinese |
7 |
CATEGORIES= chinese |
8 |
MASTER_SITES= GOOGLE_CODE |
8 |
MASTER_SITES= GH |
9 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
|
|
10 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
11 |
|
9 |
|
12 |
MAINTAINER= henry.hu.sh@gmail.com |
10 |
MAINTAINER= henry.hu.sh@gmail.com |
13 |
COMMENT= The Chinese PinYin and Bopomofo conversion library |
11 |
COMMENT= Chinese PinYin and Bopomofo conversion library |
14 |
|
12 |
|
15 |
LICENSE= LGPL21 |
13 |
LICENSE= LGPL21 |
16 |
|
14 |
|
17 |
BROKEN= Unfetchable (google code has gone away) |
|
|
18 |
|
19 |
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 |
15 |
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 |
20 |
|
16 |
|
21 |
USES= compiler:c++11-lib gettext-runtime gmake libtool pathfix pkgconfig python:build shebangfix |
17 |
USE_GITHUB= yes |
|
|
18 |
GH_TAGNAME= 6d9c3cd |
19 |
|
20 |
USES= compiler:c++11-lib gmake libtool pkgconfig python:build shebangfix autoreconf gettext-runtime |
22 |
SHEBANG_FILES= data/db/android/create_db.py |
21 |
SHEBANG_FILES= data/db/android/create_db.py |
23 |
USE_GNOME= glib20 |
22 |
USE_GNOME= glib20 |
24 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
Lines 26-51
Link Here
|
26 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
27 |
CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost |
26 |
CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost |
28 |
|
27 |
|
29 |
OPTIONS_DEFINE= ANDROID_DB OPENPHRASE_DB OPENCC |
28 |
OPTIONS_DEFINE= OPENCC |
30 |
OPTIONS_DEFAULT= ANDROID_DB |
29 |
OPTIONS_DEFAULT= |
31 |
OPTIONS_SUB= yes |
30 |
OPTIONS_SUB= yes |
32 |
ANDROID_DB_DESC= Build Android DB |
|
|
33 |
OPENPHRASE_DB_DESC= Build Open Phrase DB |
34 |
OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion |
31 |
OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion |
35 |
|
32 |
|
36 |
ANDROID_DB_CONFIGURE_ENABLE= db-android |
|
|
37 |
|
38 |
OPENPHRASE_DBVER= 1.0.0 |
39 |
OPENPHRASE_DBFILE= pyzy-database-${OPENPHRASE_DBVER}.tar.bz2 |
40 |
|
41 |
OPENPHRASE_DB_CONFIGURE_ENABLE= db-open-phrase |
42 |
OPENPHRASE_DB_DISTFILES= ${OPENPHRASE_DBFILE} |
43 |
|
44 |
OPENCC_CONFIGURE_ENABLE= opencc |
33 |
OPENCC_CONFIGURE_ENABLE= opencc |
45 |
OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc |
34 |
OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc |
46 |
|
35 |
|
47 |
post-extract-OPENPHRASE_DB-on: |
36 |
post-patch: |
48 |
@${CP} ${DISTDIR}/${OPENPHRASE_DBFILE} ${WRKSRC}/data/db/open-phrase |
37 |
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/Makefile.am |
49 |
|
38 |
|
50 |
post-install: |
39 |
post-install: |
51 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so |
40 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so |