blob: d5d9a2a946257be70c102b3db65fc59e0c80f60e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# $NetBSD: Makefile,v 1.4 2021/12/08 16:05:12 adam Exp $
DISTNAME= fcitx5-5.0.5
PKGREVISION= 2
CATEGORIES= inputmethod
MASTER_SITES= https://download.fcitx-im.org/fcitx5/fcitx5/
EXTRACT_SUFX= .tar.xz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://download.fcitx-im.org/fcitx5/fcitx5/
COMMENT= Input method framework with extension support
LICENSE= gnu-lgpl-v2.1
DATAFILES+= en_dict-20121020.tar.gz
EXTRACT_ONLY= ${DEFAULT_DISTFILES}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}
.for f in ${DATAFILES}
SITES.${f}= https://download.fcitx-im.org/data/
DISTFILES+= ${f}
.endfor
SUBST_CLASSES+= fix-machine-id
SUBST_STAGE.fix-machine-id= pre-configure
SUBST_MESSAGE.fix-machine-id= Fixing machine-id path
SUBST_FILES.fix-machine-id+= src/lib/fcitx/misc_p.h
SUBST_SED.fix-machine-id+= -e 's,/var/lib/dbus/machine-id,${VARBASE}/lib/dbus/machine-id,g'
CONFLICTS+= fcitx-[0-9]*
USE_CMAKE= yes
USE_TOOLS+= bash:run pkg-config
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++
REPLACE_BASH+= data/fcitx5-diagnose.sh
BUILD_DEPENDS+= extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules
CMAKE_ARGS+= -DENABLE_WAYLAND=off # cairo-egl is required.
CMAKE_ARGS+= -DUSE_SYSTEMD=off
CXXFLAGS.NetBSD+= -DLIBKVM_FOUND
PKGCONFIG_OVERRIDE+= src/lib/fcitx-config/Fcitx5Config.pc.in
PKGCONFIG_OVERRIDE+= src/lib/fcitx-utils/Fcitx5Utils.pc.in
PKGCONFIG_OVERRIDE+= src/lib/fcitx/Fcitx5Core.pc.in
PKGCONFIG_OVERRIDE+= src/modules/Fcitx5Module.pc.in
pre-configure:
${LN} -s ${DISTDIR}/en_dict-20121020.tar.gz \
${WRKSRC}/src/modules/spell/dict
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../textproc/cldr-emoji-annotation/buildlink3.mk"
.include "../../textproc/enchant2/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/fmtlib/buildlink3.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../textproc/json-c/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"
.include "../../x11/xcb-imdkit/buildlink3.mk"
.include "../../x11/xcb-util/buildlink3.mk"
.include "../../x11/xcb-util-keysyms/buildlink3.mk"
.include "../../x11/xcb-util-wm/buildlink3.mk"
.include "../../x11/xkeyboard-config/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|