blob: c8e2f041d1209f19e65fa6a5095a8713bc1e41c9 (
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
|
# $NetBSD: Makefile,v 1.27 2020/11/05 09:08:30 ryoon Exp $
#
DISTNAME= fcitx-4.2.9.6
PKGREVISION= 11
CATEGORIES= inputmethod
MASTER_SITES= https://download.fcitx-im.org/fcitx/
EXTRACT_SUFX= .tar.xz
DISTFILES= ${DEFAULT_DISTFILES}
DATAFILES= en_dict-20121020.tar.gz
DATAFILES+= pinyin.tar.gz
DATAFILES+= py_stroke-20121124.tar.gz
DATAFILES+= py_table-20121124.tar.gz
DATAFILES+= table.tar.gz
EXTRACT_ONLY= ${DEFAULT_DISTFILES}
.for f in ${DATAFILES}
SITES.${f}= https://download.fcitx-im.org/data/
DISTFILES+= ${f}
.endfor
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= https://www.fcitx-im.org/
COMMENT= Free Chinese Input Toy of X
BUILD_DEPENDS+= extra-cmake-modules-[0-9]*:../../devel/extra-cmake-modules
USE_LANGUAGES+= c c++
USE_TOOLS+= bash:run gmake pkg-config
USE_CMAKE= yes
REPLACE_BASH+= data/script/*sh
REPLACE_BASH+= cmake/*sh
CMAKE_ARGS+= -DENABLE_PRESAGE=OFF
CMAKE_ARGS+= -DENABLE_GIR=OFF
CMAKE_ARGS+= -DENABLE_GTK2_IM_MODULE=ON
CMAKE_ARGS+= -DENABLE_GTK3_IM_MODULE=ON
CMAKE_ARGS+= -DENABLE_QT=OFF
CMAKE_ARGS+= -DENABLE_QT_IM_MODULE=OFF
CMAKE_ARGS+= -DENABLE_QT_GUI=OFF
BUILDLINK_DEPMETHOD.libXt?= build
PTHREAD_AUTO_VARS= yes
LDFLAGS.NetBSD+= -lexecinfo -lintl
BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
post-extract:
${CP} ${DISTDIR}/en_dict-20121020.tar.gz \
${WRKSRC}/src/module/spell/dict/
${CP} ${DISTDIR}/pinyin.tar.gz \
${WRKSRC}/src/im/pinyin/data/
${CP} ${DISTDIR}/py_stroke-20121124.tar.gz \
${WRKSRC}/src/module/pinyin-enhance/data/
${CP} ${DISTDIR}/py_table-20121124.tar.gz \
${WRKSRC}/src/module/pinyin-enhance/data/
${CP} ${DISTDIR}/table.tar.gz \
${WRKSRC}/src/im/table/data/
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/libuuid/buildlink3.mk"
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../textproc/enchant2/buildlink3.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"
.include "../../x11/xkeyboard-config/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|