2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2017 Alexander Pyhalov
13 # Copyright 2021 Andreas Wacknitz
17 SINGLE_PYTHON_VERSION
= no
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= pyatspi
22 # Notes: updating this package would also need to update at-spi2-core, orca and possibly others, too. pyatspi > 2.35 use gtk3.
23 COMPONENT_MJR_VERSION
= 2.24
24 COMPONENT_MNR_VERSION
= 0
26 COMPONENT_VERSION
= $(COMPONENT_MJR_VERSION
).
$(COMPONENT_MNR_VERSION
)
27 COMPONENT_SUMMARY
= Python API to AT-SPI on D-Bus
28 COMPONENT_PROJECT_URL
= https
://wiki.gnome.org
/Accessibility
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
31 COMPONENT_ARCHIVE_HASH
= sha256
:e7ef47a5d387fdc64a01722ef2bcced54c4d6b225fbe34867189e1f88ff0a692
32 COMPONENT_ARCHIVE_URL
= https
://download.gnome.org
/sources
/pyatspi
/$(COMPONENT_MJR_VERSION
)/$(COMPONENT_ARCHIVE
)
33 COMPONENT_FMRI
= library
/python
/pyatspi2
34 COMPONENT_CLASSIFICATION
= Applications
/Universal Access
35 COMPONENT_LICENSE
= GPLv2
36 COMPONENT_LICENSE_FILE
= COPYING
38 # Tests don't work as configure doesn't find the python dbus module
39 TEST_TARGET
= $(NO_TESTS
)
41 include $(WS_MAKE_RULES
)/common.mk
43 CONFIGURE_OPTIONS
+= --with-python
=$(PYTHON
)
44 CONFIGURE_OPTIONS
+= --disable-static
45 CONFIGURE_OPTIONS
+= --enable-tests
47 # Ensure Python modules are installed into vendor package directories:
48 CONFIGURE_ENV
+= am_cv_python_pythondir
="$(PYTHON_VENDOR_PACKAGES)"
49 CONFIGURE_ENV
+= am_cv_python_pyexecdir
="$(PYTHON_VENDOR_PACKAGES)"
51 # Manually added build dependencies
52 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
54 # Auto-generated dependencies