commit | author | age
|
b541a9
|
1 |
# |
AP |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL"), version 1.0. |
|
4 |
# You may only use this file in accordance with the terms of version |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
7 |
# A full copy of the text of the CDDL should have accompanied this |
|
8 |
# source. A copy of the CDDL is also available via the Internet at |
|
9 |
# http://www.illumos.org/license/CDDL. |
|
10 |
# |
|
11 |
|
|
12 |
# |
edf832
|
13 |
# Copyright 2017 Alexander Pyhalov |
b541a9
|
14 |
# |
AP |
15 |
|
4856ba
|
16 |
BUILD_BITS= 64_and_32 |
b541a9
|
17 |
include ../../../make-rules/shared-macros.mk |
AP |
18 |
|
|
19 |
COMPONENT_NAME= ibus |
4856ba
|
20 |
COMPONENT_VERSION= 1.5.26 |
b541a9
|
21 |
COMPONENT_SUMMARY= iBus - Intelligent Input Bus |
AP |
22 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
23 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
4856ba
|
24 |
COMPONENT_ARCHIVE_HASH= sha256:5c2fd118e7bfd4e9a42c3a20e6175a263426c90b6256f94989ed3d0384f4c9fc |
5da1d0
|
25 |
COMPONENT_PROJECT_URL= https://github.com/ibus/ibus |
AW |
26 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
b541a9
|
27 |
|
ccc817
|
28 |
include $(WS_MAKE_RULES)/common.mk |
b541a9
|
29 |
|
edf832
|
30 |
PATH = $(PATH.gnu) |
4856ba
|
31 |
PYTHON_VERSION = 3.9 |
b541a9
|
32 |
|
AP |
33 |
GTK_BIN_VER := $(shell pkg-config --variable=gtk_binary_version gtk+-2.0) |
|
34 |
|
|
35 |
PKG_MACROS += GTK_BIN_VER=$(GTK_BIN_VER) |
|
36 |
|
|
37 |
# Missing files in build dir for configure without this. |
|
38 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
39 |
CONFIGURE_SCRIPT= $(@D)/configure |
|
40 |
|
|
41 |
CONFIGURE_OPTIONS += --disable-static |
|
42 |
CONFIGURE_OPTIONS += --enable-gtk2 |
edf832
|
43 |
CONFIGURE_OPTIONS += --enable-gtk3 |
b541a9
|
44 |
CONFIGURE_OPTIONS += --enable-xim |
AP |
45 |
CONFIGURE_OPTIONS += --disable-gtk-doc |
ccc817
|
46 |
CONFIGURE_OPTIONS.32 += --disable-introspection |
AP |
47 |
CONFIGURE_OPTIONS.64 += --enable-introspection |
edf832
|
48 |
CONFIGURE_OPTIONS += --sysconfdir=/etc |
b541a9
|
49 |
CONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib/ibus |
AP |
50 |
CONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/ibus/$(MACH64) |
|
51 |
CONFIGURE_OPTIONS.64 += --with-gtk-im-module-dir=/usr/lib/$(MACH64)/gtk-2.0/$(GTK_BIN_VER)/immodules/ |
ccc817
|
52 |
CONFIGURE_OPTIONS += --disable-emoji-dict |
AP |
53 |
CONFIGURE_OPTIONS += --disable-unicode-dict |
4856ba
|
54 |
CONFIGURE_OPTIONS += --disable-systemd-services |
b541a9
|
55 |
|
51ba2a
|
56 |
CONFIGURE_ENV += PYTHON="$(PYTHON)" |
AP |
57 |
CONFIGURE_ENV += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)" |
|
58 |
CONFIGURE_ENV += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)" |
|
59 |
|
b541a9
|
60 |
# CFLAGS are not passed to compiler when g-ir-scanner is used |
AP |
61 |
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)" |
|
62 |
COMPONENT_BUILD_ENV += CC="$(CC)" |
51ba2a
|
63 |
|
4856ba
|
64 |
# Note: Running the tests need X11. |
5da1d0
|
65 |
unexport SHELLOPTS |
AW |
66 |
|
4856ba
|
67 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
5da1d0
|
68 |
COMPONENT_TEST_TRANSFORMS += \ |
AW |
69 |
'-n ' \ |
|
70 |
'-e "/^PASS:/p" ' \ |
|
71 |
'-e "/^XPASS:/p" ' \ |
|
72 |
'-e "/^ERROR:/p" ' \ |
|
73 |
'-e "/^FAIL:/p" ' \ |
|
74 |
'-e "/^XFAIL:/p" ' \ |
|
75 |
'-e "/^SKIP:/p" ' \ |
|
76 |
'-e "/^TOTAL:/p" ' \ |
|
77 |
'-e "/^See/p" ' \ |
|
78 |
'-e "/^Please/p" ' \ |
|
79 |
'-e "/^Testsuite/p" ' \ |
|
80 |
'-e "/====/p" ' |
|
81 |
|
|
82 |
# Manually added build dependencies |
|
83 |
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection |
4856ba
|
84 |
REQUIRED_PACKAGES += runtime/python-39 |
5da1d0
|
85 |
|
AW |
86 |
# Auto-generated dependencies |
edf832
|
87 |
REQUIRED_PACKAGES += gnome/config/dconf |
AP |
88 |
REQUIRED_PACKAGES += library/desktop/atk |
|
89 |
REQUIRED_PACKAGES += library/desktop/cairo |
|
90 |
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
51ba2a
|
91 |
REQUIRED_PACKAGES += library/desktop/gtk2 |
edf832
|
92 |
REQUIRED_PACKAGES += library/desktop/gtk3 |
51ba2a
|
93 |
REQUIRED_PACKAGES += library/desktop/pango |
AP |
94 |
REQUIRED_PACKAGES += library/glib2 |
5da1d0
|
95 |
REQUIRED_PACKAGES += shell/ksh93 |
51ba2a
|
96 |
REQUIRED_PACKAGES += system/library |
AP |
97 |
REQUIRED_PACKAGES += x11/library/libx11 |
5da1d0
|
98 |
REQUIRED_PACKAGES += x11/library/libxfixes |
edf832
|
99 |
REQUIRED_PACKAGES += x11/library/libxi |