author | zihao.zhu@oracle.com <zihao.zhu@oracle.com> |
Tue, 18 Oct 2016 14:50:09 -0700 | |
changeset 7123 | b650e07ff9f6 |
parent 6574 | 107d00fe483d |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
6324
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
21 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
25 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
26 |
# gobject-introspection bindings are only built correctly for gtk when building |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
27 |
# with gcc, this would otherwise build with Studio. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPILER = gcc |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
29 |
BUILD_BITS = 32_and_64 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
30 |
include ../../../make-rules/shared-macros.mk |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
31 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_NAME= pygobject |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_VERSION= 2.28.6 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/PyGObject |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
36 |
sha256:fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
COMPONENT_BUGDB= gnome/libraries |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
39 |
TPNO= 19934 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
40 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
41 |
# Only build for 2.7 as python 3.x support is provided by ../pygobject3 instead |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
PYTHON_VERSIONS= 2.7 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
43 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
44 |
# Tests do not yet work with Userland framework - 23712631 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
45 |
TEST_TARGET= $(SKIP_TEST) |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
include $(WS_MAKE_RULES)/gnome-component.mk |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
47 |
|
6574
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
48 |
# Needed due to patches/01-pyexecsubdir.patch modifying Makefile.am files |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
49 |
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv); |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
50 |
|
6324
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
51 |
CONFIGURE_OPTIONS += --disable-static |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
52 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
53 |
# Disable introspection modules in this package since we ship the modern ones |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
54 |
# in the ../pygobject3 packages instead, and they'd clash if we didn't disable. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += --disable-introspection |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
56 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
57 |
# The build process modifies the shebang line to use the version of Python |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
58 |
# automatically found; to avoid using the current system default, one is |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
59 |
# explicitly specified here. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
60 |
CONFIGURE_ENV += PYTHON=$(PYTHON) |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
61 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
62 |
# Ensure Python modules are installed into vendor package directories. |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
63 |
CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) |
6574
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
64 |
CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES.32) |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
65 |
|
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
66 |
PYTHON_ARCH_SUBDIR.32 = |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
67 |
PYTHON_ARCH_SUBDIR.64 = /64 |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
68 |
PYTHON_ARCH_SUBDIR = $(PYTHON_ARCH_SUBDIR.$(BITS)) |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
69 |
COMPONENT_BUILD_ARGS += pyexecsubdir=$(PYTHON_ARCH_SUBDIR) |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6324
diff
changeset
|
70 |
COMPONENT_INSTALL_ARGS += pyexecsubdir=$(PYTHON_ARCH_SUBDIR) |
6324
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
71 |
|
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
72 |
REQUIRED_PACKAGES += library/glib2 |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
73 |
REQUIRED_PACKAGES += library/libffi |
97f8b348537a
23245351 Move pygobject 2.28.6 to Userland and add 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
74 |
REQUIRED_PACKAGES += runtime/python-27 |