author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Wed, 11 May 2016 19:28:04 -0700 | |
changeset 6043 | 2b2e083ef892 |
child 6060 | 5500aaff7c9a |
permissions | -rw-r--r-- |
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 |
# |
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
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 |
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
TPNO= 25403 |
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 |
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
|
41 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
# 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
|
43 |
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
|
44 |
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
|
45 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
# 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
|
47 |
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
|
48 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
49 |
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
|
50 |
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
|
51 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
52 |
# 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
|
53 |
# '#!/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
|
54 |
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
|
55 |
# 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
|
56 |
# 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
|
57 |
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
|
58 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
59 |
# 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
|
60 |
unexport SHELLOPTS |
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
61 |
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
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
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
|
66 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
67 |
# 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
|
68 |
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
|
69 |
'-n ' \ |
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
70 |
'-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
|
71 |
'-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
|
72 |
'-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
|
73 |
'-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
|
74 |
'-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
|
75 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
76 |
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
|
77 |
|
2b2e083ef892
23245316 Move gobject-introspection to Userland and update to 1.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
78 |
# 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
|
79 |
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
|
80 |
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
|
81 |
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
|
82 |
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
|
83 |
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
|
84 |
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
|
85 |
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
|
86 |
REQUIRED_PACKAGES += system/library/math |