openbsd-ports/inputmethods/libkkc/Makefile
2022-11-05 17:29:18 +00:00

64 lines
1.6 KiB
Makefile

COMMENT = Japanese Kana Kanji conversion library
VERSION = 20210214
DISTNAME = libkkc
PKGNAME = libkkc-${VERSION}
REVISION = 0
GH_ACCOUNT = ueno
GH_PROJECT = libkkc
GH_COMMIT = 4583ab1753594b72592df5857106aedad98e533d
SHARED_LIBS = kkc 2.0 # 2.0
CATEGORIES = inputmethods
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB = ${COMPILER_LIBCXX} c ffi gee-0.8 gio-2.0 glib-2.0 \
gmodule-2.0 gobject-2.0 iconv intl json-glib-1.0 \
marisa pcre2-8 z
# clang and libc++abi required
COMPILER = base-clang
MODULES = lang/python
MODPY_RUNDEP = No
BUILD_DEPENDS = devel/gettext,-tools \
devel/gobject-introspection \
lang/vala \
textproc/libmarisa,-python
LIB_DEPENDS = devel/libffi \
devel/libgee \
devel/glib2 \
converters/libiconv \
devel/json-glib \
textproc/libmarisa
USE_GMAKE = Yes
CONFIGURE_STYLE = autoreconf
AUTORECONF = ./autogen.sh
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.15
CONFIGURE_ENV += LIBS="-lc++ -lc++abi -lpthread"
# suppress warnings (for C codes generated from Vala)
CONFIGURE_ENV += CFLAGS="-Wno-deprecated-declarations -Wno-int-conversion -Wno-unused-value -Wno-tautological-pointer-compare -Wno-incompatible-function-pointer-types -Wno-incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers"
MAKE_ENV += XDG_CACHE_HOME=${WRKBUILD}/.cache
# tests/encoding.vala and tests/system-dictionary.vala crashes with
# Abort trap, bogus pointer (double free?).
# Attempting invalid encoding to CharsetConverter() at init() in
# libkkc/encoding.vala makes this problem, maybe Gio issue.
# If gio has fixed in the future, please remove NO_TEST.
NO_TEST = Yes
.include <bsd.port.mk>