| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.8 2011/11/13 04:42:08 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2011/12/06 19:53:27 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= ibus-pinyin-1.3.11 | | 4 | DISTNAME= ibus-pinyin-1.3.11 |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= inputmethod chinese | | 6 | CATEGORIES= inputmethod chinese |
7 | MASTER_SITES= http://ibus.googlecode.com/files/ | | 7 | MASTER_SITES= http://ibus.googlecode.com/files/ |
8 | DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR} | | 8 | DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR} |
9 | | | 9 | |
10 | MAINTAINER= obache@NetBSD.org | | 10 | MAINTAINER= obache@NetBSD.org |
11 | HOMEPAGE= http://code.google.com/p/ibus/ | | 11 | HOMEPAGE= http://code.google.com/p/ibus/ |
12 | COMMENT= Chinese Pinyin and Bopomofo engines for IBus input platform | | 12 | COMMENT= Chinese Pinyin and Bopomofo engines for IBus input platform |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
| @@ -33,25 +33,30 @@ post-extract: | | | @@ -33,25 +33,30 @@ post-extract: |
33 | SUBST_CLASSES+= epython | | 33 | SUBST_CLASSES+= epython |
34 | SUBST_STAGE.epython= pre-configure | | 34 | SUBST_STAGE.epython= pre-configure |
35 | SUBST_FILES.epython= setup/ibus-setup-pinyin.in | | 35 | SUBST_FILES.epython= setup/ibus-setup-pinyin.in |
36 | SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g' | | 36 | SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g' |
37 | | | 37 | |
38 | CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale | | 38 | CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale |
39 | CONFIGURE_ARGS+= --disable-db-android | | 39 | CONFIGURE_ARGS+= --disable-db-android |
40 | CONFIGURE_ARGS+= --enable-db-open-phrase | | 40 | CONFIGURE_ARGS+= --enable-db-open-phrase |
41 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-headers} | | 41 | CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-headers} |
42 | | | 42 | |
43 | .include "options.mk" | | 43 | .include "options.mk" |
44 | | | 44 | |
45 | .include "../../mk/bsd.prefs.mk" | | 45 | .include "../../mk/bsd.prefs.mk" |
| | | 46 | .include "../../mk/compiler.mk" |
46 | | | 47 | |
47 | .if ${OPSYS} == "Linux" | | 48 | .if ${OPSYS} == "Linux" |
48 | . include "../../devel/libuuid/buildlink3.mk" | | 49 | . include "../../devel/libuuid/buildlink3.mk" |
49 | .endif | | 50 | .endif |
50 | | | 51 | |
| | | 52 | .if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)) || !empty(PKGSRC_COMPILER:Mclang) |
| | | 53 | CXXFLAGS+= -std=c++0x |
| | | 54 | .endif |
| | | 55 | |
51 | .include "../../inputmethod/ibus/bad-env-usage.mk" | | 56 | .include "../../inputmethod/ibus/bad-env-usage.mk" |
52 | | | 57 | |
53 | .include "../../databases/sqlite3/buildlink3.mk" | | 58 | .include "../../databases/sqlite3/buildlink3.mk" |
54 | .include "../../devel/boost-headers/buildlink3.mk" | | 59 | .include "../../devel/boost-headers/buildlink3.mk" |
55 | .include "../../inputmethod/ibus/buildlink3.mk" | | 60 | .include "../../inputmethod/ibus/buildlink3.mk" |
56 | .include "../../lang/python/application.mk" | | 61 | .include "../../lang/python/application.mk" |
57 | .include "../../mk/bsd.pkg.mk" | | 62 | .include "../../mk/bsd.pkg.mk" |