Makefile revision 7330
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/ABUILD_BITS = 64_and_32
0N/ACOMPILER = gcc
0N/Ainclude ../../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= dbus-python
0N/ACOMPONENT_VERSION= 1.2.0
0N/ACOMPONENT_PROJECT_URL= http://dbus.freedesktop.org
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
0N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
0N/ACOMPONENT_BUGDB= library/dbus
0N/A
0N/ATPNO= 25524
0N/A
0N/A# replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses configure instead
0N/ACONFIGURE_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.configured)
0N/ABUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
0N/AINSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
0N/ATEST_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.tested-and-compared)
0N/A
0N/A$(foreach pyver, $(PYTHON_VERSIONS), \
0N/A $(eval $(BUILD_DIR)/%-$(pyver)/.configured: PYTHON_VERSION=$(pyver)) \
0N/A $(eval $(BUILD_DIR)/%-$(pyver)/.built: PYTHON_VERSION=$(pyver)) \
0N/A $(eval $(BUILD_DIR)/%-$(pyver)/.installed: PYTHON_VERSION=$(pyver)) \
0N/A $(eval $(BUILD_DIR)/%-$(pyver)/.tested-and-compared: PYTHON_VERSION=$(pyver)) \
0N/A)
0N/A
0N/A$(BUILD_DIR)/$(MACH64)-%/.configured: BITS=64
0N/A$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64
0N/A$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64
0N/A$(BUILD_DIR)/$(MACH64)-%/.tested-and-compared: BITS=64
0N/A
0N/APYTHON_MAJOR = $(basename $(PYTHON_VERSION))
COMPONENT_TEST_OUTPUT = \
$(COMPONENT_TEST_BUILD_DIR)/test-$(PYTHON_VERSION)-$(BITS)-results
COMPONENT_TEST_DIFFS = \
$(COMPONENT_TEST_BUILD_DIR)/test-$(PYTHON_VERSION)-$(BITS)-diffs
COMPONENT_TEST_SNAPSHOT = \
$(COMPONENT_TEST_BUILD_DIR)/results-$(PYTHON_VERSION)-$(BITS).snapshot
COMPONENT_TEST_TRANSFORM_CMD = \
$(COMPONENT_TEST_BUILD_DIR)/transform-$(PYTHON_VERSION)-$(BITS)-results
COMPONENT_TEST_MASTER = \
$(COMPONENT_TEST_RESULTS_DIR)/results-py$(PYTHON_MAJOR).master
include $(WS_MAKE_RULES)/common.mk
# Need to replace the py-compile in the 1.2.0 tarball with the one from a
# newer version of automake in order to output *pyc to the right paths for
# Python 3.4 & 3.5
COMPONENT_PREP_ACTION += (cd $(@D); rm -f py-compile ; autoreconf -fiv);
CONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
# Ensure Python modules are installed into vendor package directories.
CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES.32)
CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON.$(PYTHON_VERSION).VENDOR_PACKAGES)
COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
# Needed for "gmake test" to work successfully.
unexport SHELLOPTS
# Standard automake test framework results transform
COMPONENT_TEST_TRANSFORMS += \
'-n ' \
'-e "/TOTAL/p" ' \
'-e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/ERROR/p" '
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += runtime/python-34
REQUIRED_PACKAGES += runtime/python-35
REQUIRED_PACKAGES += system/library/libdbus
REQUIRED_PACKAGES += system/library/libdbus-glib