components/gnome/gobject-introspection/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6389 dd5e724e80ac
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6043
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6389
diff changeset
    23
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
6043
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
#
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
# gobject-introspection must be built with gcc as gobject-introspection does
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
# not produce correct results when using Studio and the source code itself does
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
# not build successfully.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPILER =		gcc
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
BUILD_BITS =		32_and_64
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
include ../../../make-rules/shared-macros.mk
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_NAME=		gobject-introspection
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_VERSION=	1.46.0
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
    sha256:6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233
6389
dd5e724e80ac 23755827 gobject-introspection doesn't have PSARC case or bug component
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 6060
diff changeset
    37
COMPONENT_BUGDB=        gnome/libraries
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6389
diff changeset
    38
COMPONENT_ANITYA_ID=	1223
6043
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
TPNO=			25403
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
6060
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    42
# Requires newer version of library/glib2, not buildable on 11.3, so do not
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    43
# publish.
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    44
ifeq ($(BUILD_TYPE), evaluation)
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    45
BUILD_32_and_64=
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    46
INSTALL_32_and_64=
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    47
PUBLISH_STAMP=
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    48
endif
5500aaff7c9a 23347257 do not publish gobject-introspection when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6043
diff changeset
    49
6043
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
include $(WS_MAKE_RULES)/gnome-component.mk
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
# Not compatible with Python 3.x.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
PYTHON_VERSION =	2.7
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
PYTHON_VERSIONS =	$(PYTHON_VERSION)
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
# Ensure system default Python is not used.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
CONFIGURE_ENV += PYTHON=$(PYTHON)
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
CONFIGURE_OPTIONS += --disable-static
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
CONFIGURE_OPTIONS += --with-cairo
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
# pkgdepend doesn't like the first line of a Python script to be:
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
# '#!/usr/bin/env ...' so turn it into '#!/usr/bin/python2.7'
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
GIR_PY_SCRIPTS = g-ir-annotation-tool g-ir-doc-tool g-ir-scanner
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
# This uses $(PROTO_DIR)$(USRBIN) instead of $(PROTOUSRBINDIR)
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
# so that it expands to the right path for each BUILD_BITS type
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
PYTHON_SCRIPTS += $(GIR_PY_SCRIPTS:%=$(PROTO_DIR)$(USRBIN)/%)
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
# Needed for "gmake test" to work successfully.
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
unexport SHELLOPTS
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
COMPONENT_TEST_ENV += GI_SCANNER_DISABLE_CACHE=""
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
COMPONENT_TEST_ENV += CC="$(CC)"
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
COMPONENT_TEST_ENV += CFLAGS="$(strip $(CFLAGS))"
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
COMPONENT_TEST_ENV += LDFLAGS="$(strip $(LDFLAGS))"
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
# Standard automake test framework results transform
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    78
COMPONENT_TEST_TRANSFORMS += \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    79
        '-n ' \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    80
        '-e "/TOTAL/p" ' \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    81
        '-e "/SKIP/p" ' \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    82
        '-e "/PASS/p" ' \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    83
        '-e "/FAIL/p" ' \
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    84
        '-e "/ERROR/p" '
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    85
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    86
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    87
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    88
# Requires bison >= 3.0
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    89
REQUIRED_PACKAGES += developer/parser/bison
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    90
REQUIRED_PACKAGES += library/desktop/cairo
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    91
REQUIRED_PACKAGES += library/glib2
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    92
REQUIRED_PACKAGES += library/libffi
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    93
REQUIRED_PACKAGES += runtime/python-27
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    94
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    95
REQUIRED_PACKAGES += system/library/iconv/iconv-core
2b2e083ef892 23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    96
REQUIRED_PACKAGES += system/library/math