commit | author | age
|
c22539
|
1 |
# |
AP |
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. |
|
5 |
# |
|
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. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2017 Alexander Pyhalov |
ccb3c3
|
13 |
# Copyright 2021 Andreas Wacknitz |
c22539
|
14 |
# |
ccb3c3
|
15 |
BUILD_BITS=NO_ARCH |
c22539
|
16 |
include ../../../make-rules/shared-macros.mk |
AP |
17 |
|
|
18 |
COMPONENT_NAME= pyatspi |
ccb3c3
|
19 |
# Notes: updating this package would also need to update at-spi2-core, orca and possibly others, too. pyatspi > 2.35 use gtk3. |
c22539
|
20 |
COMPONENT_MJR_VERSION= 2.24 |
AP |
21 |
COMPONENT_MNR_VERSION= 0 |
|
22 |
COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).$(COMPONENT_MNR_VERSION) |
ccb3c3
|
23 |
COMPONENT_SUMMARY= Python API to AT-SPI on D-Bus |
c22539
|
24 |
COMPONENT_PROJECT_URL= https://wiki.gnome.org/Accessibility |
AP |
25 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
26 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
ccb3c3
|
27 |
COMPONENT_ARCHIVE_HASH= sha256:e7ef47a5d387fdc64a01722ef2bcced54c4d6b225fbe34867189e1f88ff0a692 |
b7ef23
|
28 |
COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/pyatspi/$(COMPONENT_MJR_VERSION)/$(COMPONENT_ARCHIVE) |
ccb3c3
|
29 |
COMPONENT_FMRI= library/python/pyatspi2 |
AW |
30 |
COMPONENT_CLASSIFICATION= Applications/Universal Access |
c22539
|
31 |
COMPONENT_LICENSE= GPLv2 |
AP |
32 |
COMPONENT_LICENSE_FILE= COPYING |
|
33 |
|
|
34 |
PATH=$(PATH.gnu) |
|
35 |
|
498d75
|
36 |
PYTHON_VERSIONS = 3.5 |
c22539
|
37 |
|
04da3a
|
38 |
VARIANT_PYTHON35 = $(BUILD_DIR)/python-35 |
c22539
|
39 |
|
498d75
|
40 |
VARIANTS = $(VARIANT_PYTHON35) |
c22539
|
41 |
|
ccb3c3
|
42 |
# PGK_CONFIG_PATH is needed to make configure find pygobject-3 |
AW |
43 |
PKG_CONFIG_PATH= $(PKG_CONFIG_PATH.64):$(PKG_CONFIG_PATH.32) |
c22539
|
44 |
|
ccb3c3
|
45 |
BUILD_NO_ARCH = $(VARIANTS:%=%/$(MACH64)/.built) |
04da3a
|
46 |
|
ccb3c3
|
47 |
INSTALL_NO_ARCH = $(VARIANTS:%=%/$(MACH64)/.installed) |
c22539
|
48 |
|
ccb3c3
|
49 |
$(VARIANT_PYTHON35)/$(MACH64)/.configured: PYTHON=$(PYTHON.3.5.64) |
AW |
50 |
$(VARIANT_PYTHON35)/$(MACH64)/.configured: am_cv_python_pyexecdir=$(PYTHON.3.5.VENDOR_PACKAGES.64) |
|
51 |
$(VARIANT_PYTHON35)/$(MACH64)/.configured: am_cv_python_pythondir=$(PYTHON.3.5.VENDOR_PACKAGES.64) |
c22539
|
52 |
|
ccb3c3
|
53 |
# Tests don't work as configure doesn't find the python dbus module |
AW |
54 |
TEST_TARGET= $(NO_TESTS) |
|
55 |
include $(WS_MAKE_RULES)/common.mk |
|
56 |
|
|
57 |
CONFIGURE_OPTIONS += --sysconfdir=/etc |
|
58 |
CONFIGURE_OPTIONS += --with-python=$(PYTHON) |
|
59 |
CONFIGURE_OPTIONS += --disable-static |
|
60 |
CONFIGURE_OPTIONS += --enable-tests |
|
61 |
|
c22539
|
62 |
CONFIGURE_ENV+= PYTHON=$(PYTHON) |
ccb3c3
|
63 |
# Ensure Python modules are installed into vendor package directories: |
c22539
|
64 |
CONFIGURE_ENV+= am_cv_python_pythondir="$(am_cv_python_pythondir)" |
AP |
65 |
CONFIGURE_ENV+= am_cv_python_pyexecdir="$(am_cv_python_pyexecdir)" |
|
66 |
|
ccb3c3
|
67 |
# Manually added dependencies |
AW |
68 |
REQUIRED_PACKAGES += library/python/pygobject-3-35 |
|
69 |
REQUIRED_PACKAGES += runtime/python-35 |
c22539
|
70 |
|
ccb3c3
|
71 |
# Auto-generated dependencies |