6953N/A#
6953N/A# CDDL HEADER START
6953N/A#
6953N/A# The contents of this file are subject to the terms of the
6953N/A# Common Development and Distribution License (the "License").
6953N/A# You may not use this file except in compliance with the License.
6953N/A#
6953N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6953N/A# or http://www.opensolaris.org/os/licensing.
6953N/A# See the License for the specific language governing permissions
6953N/A# and limitations under the License.
6953N/A#
6953N/A# When distributing Covered Code, include this CDDL HEADER in each
6953N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6953N/A# If applicable, add the following below this CDDL HEADER, with the
6953N/A# fields enclosed by brackets "[]" replaced with your own identifying
6953N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6953N/A#
6953N/A# CDDL HEADER END
6953N/A#
6953N/A
6953N/A#
6953N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6953N/A#
6953N/A
6953N/ABUILD_BITS = 32_and_64
6953N/Ainclude ../../../make-rules/shared-macros.mk
6953N/A
6953N/ACOMPONENT_NAME= pyatspi
6953N/ACOMPONENT_VERSION= 2.18.0
6953N/ACOMPONENT_PROJECT_URL= http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
6953N/ACOMPONENT_ARCHIVE_HASH= \
6953N/A sha256:f86f03ad05d0502cd60fe8b98f746f74ce3bc208e9f3798f6a2130b3c5f4ab46
6953N/ACOMPONENT_BUGDB= gnome/a11y-libs-core
6953N/A
6953N/ATPNO= 30736
6953N/A
6953N/A# replicated from $(WS_MAKE_RULES)/setup.py.mk since this uses configure.mk
6953N/ACONFIGURE_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.configured)
6953N/A$(BUILD_DIR)/%-3.4/.configured: PYTHON_VERSION=3.4
6953N/A$(BUILD_DIR)/%-3.5/.configured: PYTHON_VERSION=3.5
6953N/A$(BUILD_DIR)/$(MACH64)-%/.configured: BITS=64
6953N/A
6953N/ABUILD_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
6953N/A$(BUILD_DIR)/%-3.4/.built: PYTHON_VERSION=3.4
6953N/A$(BUILD_DIR)/%-3.5/.built: PYTHON_VERSION=3.5
6953N/A$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64
6953N/A
6953N/AINSTALL_64 += $(PYTHON3_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
6953N/A$(BUILD_DIR)/%-3.4/.installed: PYTHON_VERSION=3.4
6953N/A$(BUILD_DIR)/%-3.5/.installed: PYTHON_VERSION=3.5
6953N/A$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64
6953N/A
6953N/A# Tests require dbus python module, which we don't have for python3 yet
6953N/ATEST_TARGET= $(SKIP_TEST)
6960N/A
6960N/A# Requires pygobject3, not available in S11.
6960N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
6960N/A
6953N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
6953N/A
6953N/ACONFIGURE_OPTIONS += --disable-static
6953N/A# Tests require dbus python module, which we don't have for python3 yet
6953N/ACONFIGURE_OPTIONS += --disable-tests
6953N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON)
6953N/A
6953N/A# Ensure Python modules are installed into vendor package directories.
6953N/ACONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
6953N/ACONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
6953N/A
6953N/A# Make install path match what autopyc transforms look for
6953N/ACOMPONENT_POST_INSTALL_ACTION += \
6953N/A case "$(PYTHON_VERSION)" in \
6953N/A 3.*) $(SYMLINK) 64/pyatspi $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)/pyatspi ;; \
6953N/A esac ;
6953N/A
6953N/AREQUIRED_PACKAGES += library/python/pygobject-3
6953N/AREQUIRED_PACKAGES += runtime/python-27
6953N/AREQUIRED_PACKAGES += runtime/python-34
6953N/AREQUIRED_PACKAGES += runtime/python-35
6953N/A
6953N/A# These are needed to build & run tests, but not for distributed packages
6953N/A# REQUIRED_PACKAGES += library/desktop/atk
6953N/A# REQUIRED_PACKAGES += library/desktop/gtk2
6953N/A# REQUIRED_PACKAGES += library/glib2
6953N/A# REQUIRED_PACKAGES += library/libxml2
6953N/A# REQUIRED_PACKAGES += library/python/python-dbus
6953N/A# REQUIRED_PACKAGES += system/library/libdbus
6953N/A# REQUIRED_PACKAGES += system/library/libdbus-glib