python/pip: update to 25.0
[oi-userland.git] / components / inputmethod / ibus / Makefile
blob55f3234a1ced26ac3a70305964dcaf5c5b083b95
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.
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.
13 # Copyright 2017 Alexander Pyhalov
16 USE_DEFAULT_TEST_TRANSFORMS= yes
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= ibus
20 COMPONENT_VERSION= 1.5.27
21 COMPONENT_SUMMARY= iBus - Intelligent Input Bus
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
24 COMPONENT_ARCHIVE_HASH= sha256:6efbda5adb96f607cf7108d1e270962c0729a59c9ea6d58eea2dde0e3cbb97df
25 COMPONENT_PROJECT_URL= https://github.com/ibus/ibus
26 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
27 COMPONENT_FMRI= system/input-method/$(COMPONENT_NAME)
28 COMPONENT_CLASSIFICATION= System/Internationalization
29 COMPONENT_LICENSE= LGPLv2.1
30 COMPONENT_LICENSE_FILE= COPYING
32 include $(WS_MAKE_RULES)/common.mk
34 PATH= $(PATH.gnu)
36 # Force rebuilding C sources from vala sources to avoid Wayland dependencies
37 # Workaround for https://github.com/ibus/ibus/issues/2609
38 COMPONENT_POST_UNPACK_ACTION += $(TOUCH) $(SOURCE_DIR)/ui/gtk3/*.vala ;
40 # Missing files in build dir for configure without this.
41 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
43 CONFIGURE_SCRIPT= $(@D)/configure
45 CONFIGURE_OPTIONS += --disable-static
46 CONFIGURE_OPTIONS += --enable-gtk2
47 CONFIGURE_OPTIONS += --enable-gtk3
48 CONFIGURE_OPTIONS += --enable-gtk4
49 CONFIGURE_OPTIONS += --enable-xim
50 CONFIGURE_OPTIONS += --disable-gtk-doc
51 CONFIGURE_OPTIONS += --enable-introspection
52 CONFIGURE_OPTIONS += --disable-python2
53 CONFIGURE_OPTIONS += --disable-emoji-dict
54 CONFIGURE_OPTIONS += --disable-unicode-dict
55 CONFIGURE_OPTIONS += --disable-systemd-services
56 CONFIGURE_OPTIONS += --disable-wayland
58 CONFIGURE_ENV += PYTHON="$(PYTHON)"
59 CONFIGURE_ENV += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
60 CONFIGURE_ENV += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
62 # CFLAGS are not passed to compiler when g-ir-scanner is used
63 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
64 COMPONENT_BUILD_ENV += CC="$(CC)"
66 # Note: Running the tests need X11 and testing gets stuck at the ibus-compose tests.
67 # Furhter note that starting with 1.5.28 tests get stuck at ibus-bus tests (the very first tests).
68 TEST_REQUIRED_PACKAGES += x11/server/xvfb
69 COMPONENT_PRE_TEST_ACTION += /usr/bin/Xvfb :1 >/dev/null 2>&1 &
70 COMPONENT_TEST_ENV += DISPLAY=:1
71 COMPONENT_POST_TEST_ACTION += /usr/bin/pkill -x Xvfb ;
73 # Manually added build dependencies
74 REQUIRED_PACKAGES += data/iso-codes
75 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
76 PYTHON_REQUIRED_PACKAGES += runtime/python
78 # Auto-generated dependencies
79 REQUIRED_PACKAGES += gnome/accessibility/at-spi2-core
80 REQUIRED_PACKAGES += gnome/config/dconf
81 REQUIRED_PACKAGES += library/desktop/cairo
82 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
83 REQUIRED_PACKAGES += library/desktop/gtk2
84 REQUIRED_PACKAGES += library/desktop/gtk3
85 REQUIRED_PACKAGES += library/desktop/gtk4
86 REQUIRED_PACKAGES += library/desktop/pango
87 REQUIRED_PACKAGES += library/glib2
88 REQUIRED_PACKAGES += library/libnotify
89 REQUIRED_PACKAGES += shell/ksh93
90 REQUIRED_PACKAGES += system/library
91 REQUIRED_PACKAGES += x11/library/libx11
92 REQUIRED_PACKAGES += x11/library/libxfixes
93 REQUIRED_PACKAGES += x11/library/libxi