| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.5 2022/03/27 13:17:34 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.6 2022/11/28 19:20:21 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= fcitx5-5.0.5 | | 3 | DISTNAME= fcitx5-5.0.5 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= inputmethod | | 5 | CATEGORIES= inputmethod |
6 | MASTER_SITES= https://download.fcitx-im.org/fcitx5/fcitx5/ | | 6 | MASTER_SITES= https://download.fcitx-im.org/fcitx5/fcitx5/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= ryoon@NetBSD.org | | 9 | MAINTAINER= ryoon@NetBSD.org |
10 | HOMEPAGE= https://download.fcitx-im.org/fcitx5/fcitx5/ | | 10 | HOMEPAGE= https://download.fcitx-im.org/fcitx5/fcitx5/ |
11 | COMMENT= Input method framework with extension support | | 11 | COMMENT= Input method framework with extension support |
12 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 13 | |
14 | DATAFILES+= en_dict-20121020.tar.gz | | 14 | DATAFILES+= en_dict-20121020.tar.gz |
| @@ -32,26 +32,28 @@ USE_CMAKE= yes | | | @@ -32,26 +32,28 @@ USE_CMAKE= yes |
32 | USE_TOOLS+= bash:run pkg-config | | 32 | USE_TOOLS+= bash:run pkg-config |
33 | USE_PKGLOCALEDIR= yes | | 33 | USE_PKGLOCALEDIR= yes |
34 | USE_LANGUAGES= c c++ | | 34 | USE_LANGUAGES= c c++ |
35 | | | 35 | |
36 | REPLACE_BASH+= data/fcitx5-diagnose.sh | | 36 | REPLACE_BASH+= data/fcitx5-diagnose.sh |
37 | | | 37 | |
38 | BUILD_DEPENDS+= extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules | | 38 | BUILD_DEPENDS+= extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules |
39 | | | 39 | |
40 | CMAKE_ARGS+= -DENABLE_WAYLAND=off # cairo-egl is required. | | 40 | CMAKE_ARGS+= -DENABLE_WAYLAND=off # cairo-egl is required. |
41 | CMAKE_ARGS+= -DUSE_SYSTEMD=off | | 41 | CMAKE_ARGS+= -DUSE_SYSTEMD=off |
42 | | | 42 | |
43 | CXXFLAGS.NetBSD+= -DLIBKVM_FOUND | | 43 | CXXFLAGS.NetBSD+= -DLIBKVM_FOUND |
44 | | | 44 | |
| | | 45 | BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--as-needed |
| | | 46 | |
45 | PKGCONFIG_OVERRIDE+= src/lib/fcitx-config/Fcitx5Config.pc.in | | 47 | PKGCONFIG_OVERRIDE+= src/lib/fcitx-config/Fcitx5Config.pc.in |
46 | PKGCONFIG_OVERRIDE+= src/lib/fcitx-utils/Fcitx5Utils.pc.in | | 48 | PKGCONFIG_OVERRIDE+= src/lib/fcitx-utils/Fcitx5Utils.pc.in |
47 | PKGCONFIG_OVERRIDE+= src/lib/fcitx/Fcitx5Core.pc.in | | 49 | PKGCONFIG_OVERRIDE+= src/lib/fcitx/Fcitx5Core.pc.in |
48 | PKGCONFIG_OVERRIDE+= src/modules/Fcitx5Module.pc.in | | 50 | PKGCONFIG_OVERRIDE+= src/modules/Fcitx5Module.pc.in |
49 | | | 51 | |
50 | SUBST_CLASSES+= xdg | | 52 | SUBST_CLASSES+= xdg |
51 | SUBST_STAGE.xdg= pre-configure | | 53 | SUBST_STAGE.xdg= pre-configure |
52 | SUBST_MESSAGE.xdg= Fix desktop autostart file installation | | 54 | SUBST_MESSAGE.xdg= Fix desktop autostart file installation |
53 | SUBST_FILES.xdg= data/CMakeLists.txt | | 55 | SUBST_FILES.xdg= data/CMakeLists.txt |
54 | SUBST_SED.xdg= -e 's,{CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart,{CMAKE_INSTALL_PREFIX}/share/examples/fcitx5,' | | 56 | SUBST_SED.xdg= -e 's,{CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/autostart,{CMAKE_INSTALL_PREFIX}/share/examples/fcitx5,' |
55 | | | 57 | |
56 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/autostart | | 58 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/autostart |
57 | CONF_FILES+= ${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop \ | | 59 | CONF_FILES+= ${PREFIX}/share/examples/fcitx5/org.fcitx.Fcitx5.desktop \ |