Makefile revision 6572
6322N/A#
6322N/A# CDDL HEADER START
6322N/A#
6322N/A# The contents of this file are subject to the terms of the
6322N/A# Common Development and Distribution License (the "License").
6322N/A# You may not use this file except in compliance with the License.
6322N/A#
6322N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6322N/A# or http://www.opensolaris.org/os/licensing.
6322N/A# See the License for the specific language governing permissions
6322N/A# and limitations under the License.
6322N/A#
6322N/A# When distributing Covered Code, include this CDDL HEADER in each
6322N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6322N/A# If applicable, add the following below this CDDL HEADER, with the
6322N/A# fields enclosed by brackets "[]" replaced with your own identifying
6322N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6322N/A#
6322N/A# CDDL HEADER END
6322N/A#
6322N/A
6322N/A#
6322N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6322N/A#
6322N/A
6322N/A# gobject-introspection bindings are only built correctly for gtk when building
6322N/A# with gcc, this would otherwise build with Studio.
6322N/ACOMPILER = gcc
6322N/ABUILD_BITS = 32_and_64
6322N/Ainclude ../../../make-rules/shared-macros.mk
6322N/A
6322N/ACOMPONENT_NAME= pygobject
6322N/ACOMPONENT_VERSION= 2.28.6
6322N/ACOMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/PyGObject
6322N/ACOMPONENT_ARCHIVE_HASH= \
6322N/A sha256:fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
6322N/ACOMPONENT_BUGDB= gnome/libraries
6322N/A
6322N/ATPNO= 19934
6322N/A
6322N/A# Only build for 2.7 as python 3.x support is provided by ../pygobject3 instead
6322N/APYTHON_VERSIONS= 2.7
6322N/A
6322N/A# Tests do not yet work with Userland framework - 23712631
6322N/ATEST_TARGET= $(SKIP_TEST)
6322N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
6322N/A
6572N/A# Needed due to patches/01-pyexecsubdir.patch modifying Makefile.am files
6572N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
6572N/A
6322N/ACONFIGURE_OPTIONS += --disable-static
6322N/A
6322N/A# Disable introspection modules in this package since we ship the modern ones
6322N/A# in the ../pygobject3 packages instead, and they'd clash if we didn't disable.
6322N/ACONFIGURE_OPTIONS += --disable-introspection
6322N/A
6322N/A# The build process modifies the shebang line to use the version of Python
6322N/A# automatically found; to avoid using the current system default, one is
6322N/A# explicitly specified here.
6322N/ACONFIGURE_ENV += PYTHON=$(PYTHON)
6322N/A
6322N/A# Ensure Python modules are installed into vendor package directories.
6322N/ACONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
6572N/ACONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES.32)
6572N/A
6572N/APYTHON_ARCH_SUBDIR.32 =
6572N/APYTHON_ARCH_SUBDIR.64 = /64
6572N/APYTHON_ARCH_SUBDIR = $(PYTHON_ARCH_SUBDIR.$(BITS))
6572N/ACOMPONENT_BUILD_ARGS += pyexecsubdir=$(PYTHON_ARCH_SUBDIR)
6572N/ACOMPONENT_INSTALL_ARGS += pyexecsubdir=$(PYTHON_ARCH_SUBDIR)
6322N/A
6322N/AREQUIRED_PACKAGES += library/glib2
6322N/AREQUIRED_PACKAGES += library/libffi
6322N/AREQUIRED_PACKAGES += runtime/python-27