|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 # gobject-introspection must be built with gcc as gobject-introspection does |
|
27 # not produce correct results when using Studio and the source code itself does |
|
28 # not build successfully. |
|
29 COMPILER = gcc |
|
30 BUILD_BITS = 32_and_64 |
|
31 include ../../../make-rules/shared-macros.mk |
|
32 |
|
33 COMPONENT_NAME= gobject-introspection |
|
34 COMPONENT_VERSION= 1.46.0 |
|
35 COMPONENT_ARCHIVE_HASH= \ |
|
36 sha256:6658bd3c2b8813eb3e2511ee153238d09ace9d309e4574af27443d87423e4233 |
|
37 |
|
38 TPNO= 25403 |
|
39 |
|
40 include $(WS_MAKE_RULES)/gnome-component.mk |
|
41 |
|
42 # Not compatible with Python 3.x. |
|
43 PYTHON_VERSION = 2.7 |
|
44 PYTHON_VERSIONS = $(PYTHON_VERSION) |
|
45 |
|
46 # Ensure system default Python is not used. |
|
47 CONFIGURE_ENV += PYTHON=$(PYTHON) |
|
48 |
|
49 CONFIGURE_OPTIONS += --disable-static |
|
50 CONFIGURE_OPTIONS += --with-cairo |
|
51 |
|
52 # pkgdepend doesn't like the first line of a Python script to be: |
|
53 # '#!/usr/bin/env ...' so turn it into '#!/usr/bin/python2.7' |
|
54 GIR_PY_SCRIPTS = g-ir-annotation-tool g-ir-doc-tool g-ir-scanner |
|
55 # This uses $(PROTO_DIR)$(USRBIN) instead of $(PROTOUSRBINDIR) |
|
56 # so that it expands to the right path for each BUILD_BITS type |
|
57 PYTHON_SCRIPTS += $(GIR_PY_SCRIPTS:%=$(PROTO_DIR)$(USRBIN)/%) |
|
58 |
|
59 # Needed for "gmake test" to work successfully. |
|
60 unexport SHELLOPTS |
|
61 COMPONENT_TEST_ENV += GI_SCANNER_DISABLE_CACHE="" |
|
62 COMPONENT_TEST_ENV += CC="$(CC)" |
|
63 COMPONENT_TEST_ENV += CFLAGS="$(strip $(CFLAGS))" |
|
64 COMPONENT_TEST_ENV += LDFLAGS="$(strip $(LDFLAGS))" |
|
65 COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)" |
|
66 |
|
67 # Standard automake test framework results transform |
|
68 COMPONENT_TEST_TRANSFORMS += \ |
|
69 '-n ' \ |
|
70 '-e "/TOTAL/p" ' \ |
|
71 '-e "/SKIP/p" ' \ |
|
72 '-e "/PASS/p" ' \ |
|
73 '-e "/FAIL/p" ' \ |
|
74 '-e "/ERROR/p" ' |
|
75 |
|
76 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
77 |
|
78 # Requires bison >= 3.0 |
|
79 REQUIRED_PACKAGES += developer/parser/bison |
|
80 REQUIRED_PACKAGES += library/desktop/cairo |
|
81 REQUIRED_PACKAGES += library/glib2 |
|
82 REQUIRED_PACKAGES += library/libffi |
|
83 REQUIRED_PACKAGES += runtime/python-27 |
|
84 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
85 REQUIRED_PACKAGES += system/library/iconv/iconv-core |
|
86 REQUIRED_PACKAGES += system/library/math |