gettext: fix build with gcc-14; enhance test environment
[oi-userland.git] / components / desktop / gnome / at-spi2-core / Makefile
blob04c92372cc3b05e88b070ba4d173a4496e912b36
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 2024 Marcel Telka
16 BUILD_BITS = 64_and_32
17 BUILD_STYLE = meson
18 USE_DEFAULT_TEST_TRANSFORMS = yes
20 include ../../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= at-spi2-core
23 HUMAN_VERSION= 2.54.0
24 COMPONENT_REVISION= 1
25 COMPONENT_SUMMARY= DBus interface definitions for AT-SPI (Assistive Technology Service Provider Interface)
26 COMPONENT_ARCHIVE_HASH= sha256:d7eee7e75beddcc272cedc2b60535600f3aae6e481589ebc667afc437c0a6079
27 COMPONENT_FMRI= gnome/accessibility/at-spi2-core
28 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
29 COMPONENT_LICENSE= LGPL-2.1-only
30 COMPONENT_LICENSE_FILE= COPYING
32 COMPONENT_FMRI.$(COMPONENT_NAME)-32 = $(COMPONENT_FMRI)/32
33 COMPONENT_SUMMARY.$(COMPONENT_NAME)-32 = $(COMPONENT_SUMMARY) (32-bit)
35 include $(WS_MAKE_RULES)/gnome.mk
36 include $(WS_MAKE_RULES)/common.mk
38 # There is no 32-bit introspection
39 CONFIGURE_OPTIONS.32 += -Dintrospection=disabled
41 # We do not need the systemd service file (obviously)
42 COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTOUSRLIBDIR)/systemd/user/at-spi-dbus-bus.service ;
44 # Drop etc files installed for 32-bit build
45 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOETCDIR) ;
46 # Drop include files installed for 32-bit build
47 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOUSRINCDIR) ;
48 # Drop share files installed for 32-bit build
49 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOUSRSHAREDIR) ;
51 # Testing needs dbus up and running
52 TEST_REQUIRED_PACKAGES += system/library/dbus/dbus-x11
53 COMPONENT_PRE_TEST_ACTION += /usr/bin/dbus-launch > $(BUILD_DIR_$(BITS))/.dbus-env ;
54 COMPONENT_TEST_ENV += $$($(CAT) $(BUILD_DIR_$(BITS))/.dbus-env)
55 COMPONENT_POST_TEST_ACTION += . $(BUILD_DIR_$(BITS))/.dbus-env ; kill $$DBUS_SESSION_BUS_PID ; $(RM) $(BUILD_DIR_$(BITS))/.dbus-env ;
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES += library/glib2
59 REQUIRED_PACKAGES += library/glib2/32
60 REQUIRED_PACKAGES += system/library
61 REQUIRED_PACKAGES += system/library/libdbus
62 REQUIRED_PACKAGES += x11/library/libx11
63 REQUIRED_PACKAGES += x11/library/libxi
64 REQUIRED_PACKAGES += x11/library/libxtst