|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 |
|
24 BUILD_BITS = 64_and_32 |
|
25 COMPILER = gcc |
|
26 include ../../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= dbus-python |
|
29 COMPONENT_VERSION= 1.2.0 |
|
30 COMPONENT_PROJECT_URL= http://dbus.freedesktop.org |
|
31 COMPONENT_ARCHIVE_HASH= \ |
|
32 sha256:e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df |
|
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
34 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc |
|
35 COMPONENT_BUGDB= library/dbus |
|
36 |
|
37 TPNO= 25524 |
|
38 |
|
39 # replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses configure instead |
|
40 CONFIGURE_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.configured) |
|
41 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built) |
|
42 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed) |
|
43 TEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.tested-and-compared) |
|
44 |
|
45 $(foreach pyver, $(PYTHON_VERSIONS), \ |
|
46 $(eval $(BUILD_DIR)/%-$(pyver)/.configured: PYTHON_VERSION=$(pyver)) \ |
|
47 $(eval $(BUILD_DIR)/%-$(pyver)/.built: PYTHON_VERSION=$(pyver)) \ |
|
48 $(eval $(BUILD_DIR)/%-$(pyver)/.installed: PYTHON_VERSION=$(pyver)) \ |
|
49 $(eval $(BUILD_DIR)/%-$(pyver)/.tested-and-compared: PYTHON_VERSION=$(pyver)) \ |
|
50 ) |
|
51 |
|
52 $(BUILD_DIR)/$(MACH64)-%/.configured: BITS=64 |
|
53 $(BUILD_DIR)/$(MACH64)-%/.built: BITS=64 |
|
54 $(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64 |
|
55 $(BUILD_DIR)/$(MACH64)-%/.tested-and-compared: BITS=64 |
|
56 |
|
57 PYTHON_MAJOR = $(basename $(PYTHON_VERSION)) |
|
58 |
|
59 COMPONENT_TEST_OUTPUT = \ |
|
60 $(COMPONENT_TEST_BUILD_DIR)/test-$(PYTHON_VERSION)-$(BITS)-results |
|
61 COMPONENT_TEST_DIFFS = \ |
|
62 $(COMPONENT_TEST_BUILD_DIR)/test-$(PYTHON_VERSION)-$(BITS)-diffs |
|
63 COMPONENT_TEST_SNAPSHOT = \ |
|
64 $(COMPONENT_TEST_BUILD_DIR)/results-$(PYTHON_VERSION)-$(BITS).snapshot |
|
65 COMPONENT_TEST_TRANSFORM_CMD = \ |
|
66 $(COMPONENT_TEST_BUILD_DIR)/transform-$(PYTHON_VERSION)-$(BITS)-results |
|
67 COMPONENT_TEST_MASTER = \ |
|
68 $(COMPONENT_TEST_RESULTS_DIR)/results-py$(PYTHON_MAJOR).master |
|
69 |
|
70 include $(WS_MAKE_RULES)/common.mk |
|
71 |
|
72 # Need to replace the py-compile in the 1.2.0 tarball with the one from a |
|
73 # newer version of automake in order to output *pyc to the right paths for |
|
74 # Python 3.4 & 3.5 |
|
75 COMPONENT_PREP_ACTION += (cd $(@D); rm -f py-compile ; autoreconf -fiv); |
|
76 |
|
77 CONFIGURE_OPTIONS += PYTHON="$(PYTHON)" |
|
78 |
|
79 # Ensure Python modules are installed into vendor package directories. |
|
80 CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES.32) |
|
81 CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON.$(PYTHON_VERSION).VENDOR_PACKAGES) |
|
82 |
|
83 COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32) |
|
84 |
|
85 # Needed for "gmake test" to work successfully. |
|
86 unexport SHELLOPTS |
|
87 |
|
88 # Standard automake test framework results transform |
|
89 COMPONENT_TEST_TRANSFORMS += \ |
|
90 '-n ' \ |
|
91 '-e "/TOTAL/p" ' \ |
|
92 '-e "/SKIP/p" ' \ |
|
93 '-e "/PASS/p" ' \ |
|
94 '-e "/FAIL/p" ' \ |
|
95 '-e "/ERROR/p" ' |
|
96 |
|
97 REQUIRED_PACKAGES += library/glib2 |
|
98 REQUIRED_PACKAGES += runtime/python-27 |
|
99 REQUIRED_PACKAGES += runtime/python-34 |
|
100 REQUIRED_PACKAGES += runtime/python-35 |
|
101 REQUIRED_PACKAGES += system/library/libdbus |
|
102 REQUIRED_PACKAGES += system/library/libdbus-glib |