e01d00e3c4
Fix make distcheck errors. Tiny modification to m4/boost.m4. Pass $CXXFLAGS to $ac_cpp to make cross-compilation of ibus-pinyin easy. Remove sqlite3 in create_db.py Remove duplicated EXTRA_DIST value in lua/Makefile.am Add PY prefix of all file names to avoid name conflict on some file system than is case insensitive. change the default fuzzy settings
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2010/09/06 07:56:24 obache Exp $
|
|
#
|
|
|
|
DISTNAME= ibus-pinyin-1.3.11
|
|
CATEGORIES= inputmethod chinese
|
|
MASTER_SITES= http://ibus.googlecode.com/files/
|
|
DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR}
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
HOMEPAGE= http://code.google.com/p/ibus/
|
|
COMMENT= Chinese Pinyin and Bopomofo engines for IBus input platform
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= pkg-config gmake intltool msgfmt
|
|
|
|
# taken from ${WRKSRC}/data/db/open-phrase/Makefile.in
|
|
DBVER= 1.2.99
|
|
DBTAR= pinyin-database-${DBVER}.tar.bz2
|
|
|
|
post-extract:
|
|
${RUN} cd ${WRKSRC}/data/db/open-phrase; \
|
|
mkdir -p db; \
|
|
mv ${WRKDIR}/db/main.db db/open-phrase.db; \
|
|
touch ${DBTAR} stamp-db
|
|
|
|
SUBST_CLASSES+= epython
|
|
SUBST_STAGE.epython= pre-configure
|
|
SUBST_FILES.epython= setup/ibus-setup-pinyin.in
|
|
SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g'
|
|
|
|
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
|
|
CONFIGURE_ARGS+= --disable-db-android
|
|
CONFIGURE_ARGS+= --enable-db-open-phrase
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../inputmethod/ibus/bad-env-usage.mk"
|
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
.include "../../devel/boost-headers/buildlink3.mk"
|
|
.include "../../inputmethod/ibus/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|