blob: 4a8b456e449046f3ef350ceee1d33b9fe00b1e60 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# $NetBSD: Makefile,v 1.7 2022/12/13 12:42:23 jperkin Exp $
DISTNAME= fcitx5-5.0.5
PKGREVISION= 3
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
CMAKE_ARGS+= -DLibIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
CMAKE_ARGS+= -DLIBUUID_INCLUDE_DIR=${BUILDLINK_PREFIX.libuuid}/include
CXXFLAGS.NetBSD+= -DLIBKVM_FOUND
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--as-needed
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
SUBST_CLASSES+= xdg
SUBST_STAGE.xdg= pre-configure
SUBST_MESSAGE.xdg= Fix desktop autostart file installation
SUBST_FILES.xdg= data/CMakeLists.txt
SUBST_SED.xdg= -e 's,{CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart,{CMAKE_INSTALL_PREFIX}/share/examples/fcitx5,'
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/autostart
CONF_FILES+= ${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop \
${PKG_SYSCONFDIR}/xdg/autostart/org.fcitx.Fcitx5.desktop
pre-configure:
${LN} -s ${DISTDIR}/en_dict-20121020.tar.gz \
${WRKSRC}/src/modules/spell/dict
.include "../../devel/gettext-lib/buildlink3.mk"
.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 "../../sysutils/desktop-file-utils/desktopdb.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"
|