author | John Beck <John.Beck@Oracle.COM> |
Fri, 23 Sep 2016 09:44:27 -0700 | |
changeset 6962 | e5ea5e190252 |
parent 6955 | c48eb02e201d |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
6955
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
21 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
25 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
26 |
BUILD_BITS = 32_and_64 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
27 |
include ../../../make-rules/shared-macros.mk |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
28 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
29 |
COMPONENT_NAME= pyatspi |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_VERSION= 2.18.0 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
33 |
sha256:f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_BUGDB= gnome/a11y-libs-core |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
35 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
36 |
TPNO= 30736 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
# replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses configure.mk |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
39 |
CONFIGURE_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.configured) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
40 |
$(BUILD_DIR)/%-3.4/.configured: PYTHON_VERSION=3.4 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
41 |
$(BUILD_DIR)/%-3.5/.configured: PYTHON_VERSION=3.5 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
$(BUILD_DIR)/$(MACH64)-%/.configured: BITS=64 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
43 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
44 |
BUILD_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
45 |
$(BUILD_DIR)/%-3.4/.built: PYTHON_VERSION=3.4 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
$(BUILD_DIR)/%-3.5/.built: PYTHON_VERSION=3.5 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
47 |
$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
48 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
49 |
INSTALL_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
50 |
$(BUILD_DIR)/%-3.4/.installed: PYTHON_VERSION=3.4 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
51 |
$(BUILD_DIR)/%-3.5/.installed: PYTHON_VERSION=3.5 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
52 |
$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
53 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
54 |
# Tests require dbus python module, which we don't have for python3 yet |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
55 |
TEST_TARGET= $(SKIP_TEST) |
6962
e5ea5e190252
24717267 do not publish pyatspi when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6955
diff
changeset
|
56 |
|
e5ea5e190252
24717267 do not publish pyatspi when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6955
diff
changeset
|
57 |
# Requires pygobject3, not available in S11. |
e5ea5e190252
24717267 do not publish pyatspi when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6955
diff
changeset
|
58 |
include $(WS_MAKE_RULES)/no-evaluation.mk |
e5ea5e190252
24717267 do not publish pyatspi when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6955
diff
changeset
|
59 |
|
6955
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
60 |
include $(WS_MAKE_RULES)/gnome-component.mk |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
61 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --disable-static |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
63 |
# Tests require dbus python module, which we don't have for python3 yet |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --disable-tests |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --with-python=$(PYTHON) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
66 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
67 |
# Ensure Python modules are installed into vendor package directories. |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
68 |
CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
69 |
CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES) |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
70 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
71 |
# Make install path match what autopyc transforms look for |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
72 |
COMPONENT_POST_INSTALL_ACTION += \ |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
73 |
case "$(PYTHON_VERSION)" in \ |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
74 |
3.*) $(SYMLINK) 64/pyatspi $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)/pyatspi ;; \ |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
75 |
esac ; |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
76 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
77 |
REQUIRED_PACKAGES += library/python/pygobject-3 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
78 |
REQUIRED_PACKAGES += runtime/python-27 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
79 |
REQUIRED_PACKAGES += runtime/python-34 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
80 |
REQUIRED_PACKAGES += runtime/python-35 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
81 |
|
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
82 |
# These are needed to build & run tests, but not for distributed packages |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
83 |
# REQUIRED_PACKAGES += library/desktop/atk |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
84 |
# REQUIRED_PACKAGES += library/desktop/gtk2 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
85 |
# REQUIRED_PACKAGES += library/glib2 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
86 |
# REQUIRED_PACKAGES += library/libxml2 |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
87 |
# REQUIRED_PACKAGES += library/python/python-dbus |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
88 |
# REQUIRED_PACKAGES += system/library/libdbus |
c48eb02e201d
24684801 Move pyatspi to Userland and update to 2.18.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
89 |
# REQUIRED_PACKAGES += system/library/libdbus-glib |