6041N/A#
6041N/A# CDDL HEADER START
6041N/A#
6041N/A# The contents of this file are subject to the terms of the
6041N/A# Common Development and Distribution License (the "License").
6041N/A# You may not use this file except in compliance with the License.
6041N/A#
6041N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6041N/A# or http://www.opensolaris.org/os/licensing.
6041N/A# See the License for the specific language governing permissions
6041N/A# and limitations under the License.
6041N/A#
6041N/A# When distributing Covered Code, include this CDDL HEADER in each
6041N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6041N/A# If applicable, add the following below this CDDL HEADER, with the
6041N/A# fields enclosed by brackets "[]" replaced with your own identifying
6041N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6041N/A#
6041N/A# CDDL HEADER END
6041N/A#
6041N/A
6041N/A#
6041N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6041N/A#
6041N/A
6041N/A# gobject-introspection must be built with gcc as gobject-introspection does
6041N/A# not produce correct results when using Studio and the source code itself does
6041N/A# not build successfully.
6041N/ACOMPILER = gcc
6041N/ABUILD_BITS = 32_and_64
6041N/Ainclude ../../../make-rules/shared-macros.mk
6041N/A
6041N/ACOMPONENT_NAME= gobject-introspection
6041N/ACOMPONENT_VERSION= 1.46.0
6041N/ACOMPONENT_ARCHIVE_HASH= \
6041N/A sha256:6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233
6387N/ACOMPONENT_BUGDB= gnome/libraries
6041N/A
6041N/ATPNO= 25403
6041N/A
6058N/A# Requires newer version of library/glib2, not buildable on 11.3, so do not
6058N/A# publish.
6058N/Aifeq ($(BUILD_TYPE), evaluation)
6058N/ABUILD_32_and_64=
6058N/AINSTALL_32_and_64=
6058N/APUBLISH_STAMP=
6058N/Aendif
6058N/A
6041N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
6041N/A
6041N/A# Not compatible with Python 3.x.
6041N/APYTHON_VERSION = 2.7
6041N/APYTHON_VERSIONS = $(PYTHON_VERSION)
6041N/A
6041N/A# Ensure system default Python is not used.
6041N/ACONFIGURE_ENV += PYTHON=$(PYTHON)
6041N/A
6041N/ACONFIGURE_OPTIONS += --disable-static
6041N/ACONFIGURE_OPTIONS += --with-cairo
6041N/A
6041N/A# pkgdepend doesn't like the first line of a Python script to be:
6041N/A# '#!/usr/bin/env ...' so turn it into '#!/usr/bin/python2.7'
6041N/AGIR_PY_SCRIPTS = g-ir-annotation-tool g-ir-doc-tool g-ir-scanner
6041N/A# This uses $(PROTO_DIR)$(USRBIN) instead of $(PROTOUSRBINDIR)
6041N/A# so that it expands to the right path for each BUILD_BITS type
6041N/APYTHON_SCRIPTS += $(GIR_PY_SCRIPTS:%=$(PROTO_DIR)$(USRBIN)/%)
6041N/A
6041N/A# Needed for "gmake test" to work successfully.
6041N/Aunexport SHELLOPTS
6041N/ACOMPONENT_TEST_ENV += GI_SCANNER_DISABLE_CACHE=""
6041N/ACOMPONENT_TEST_ENV += CC="$(CC)"
6041N/ACOMPONENT_TEST_ENV += CFLAGS="$(strip $(CFLAGS))"
6041N/ACOMPONENT_TEST_ENV += LDFLAGS="$(strip $(LDFLAGS))"
6041N/ACOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
6041N/A
6041N/A# Standard automake test framework results transform
6041N/ACOMPONENT_TEST_TRANSFORMS += \
6041N/A '-n ' \
6041N/A '-e "/TOTAL/p" ' \
6041N/A '-e "/SKIP/p" ' \
6041N/A '-e "/PASS/p" ' \
6041N/A '-e "/FAIL/p" ' \
6041N/A '-e "/ERROR/p" '
6041N/A
6041N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
6041N/A
6041N/A# Requires bison >= 3.0
6041N/AREQUIRED_PACKAGES += developer/parser/bison
6041N/AREQUIRED_PACKAGES += library/desktop/cairo
6041N/AREQUIRED_PACKAGES += library/glib2
6041N/AREQUIRED_PACKAGES += library/libffi
6041N/AREQUIRED_PACKAGES += runtime/python-27
6041N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6041N/AREQUIRED_PACKAGES += system/library/iconv/iconv-core
6041N/AREQUIRED_PACKAGES += system/library/math