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