author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 02 Jan 2017 13:37:03 -0800 | |
changeset 7527 | 352b7a456c30 |
parent 6911 | 7b878dfe6f0d |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
6325
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
21 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
25 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
26 |
# gobject-introspection bindings are only built correctly for gtk when building |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
27 |
# with gcc, this would otherwise build with Studio. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPILER = gcc |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
29 |
BUILD_BITS = 32_and_64 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
30 |
include ../../../make-rules/shared-macros.mk |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
31 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_NAME= pygtk |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_VERSION= 2.24.0 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_PROJECT_URL= http://www.pygtk.org/ |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_HASH= \ |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
sha256:cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
COMPONENT_BUGDB= gnome/libraries |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
39 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
40 |
TPNO= 19936 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
41 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
# Only build for 2.7 as pygobject-3 will replace pygtk for python 3.x |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
43 |
PYTHON_VERSIONS= 2.7 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
44 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
45 |
# Tests do not yet work with Userland framework - 23712629 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
TEST_TARGET= $(SKIP_TEST) |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
47 |
|
6375
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
48 |
# Needs newer version of gtk2, not available on S11. |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
49 |
ifeq ($(BUILD_TYPE), evaluation) |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
50 |
BUILD_32_and_64= |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
51 |
INSTALL_32_and_64= |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
52 |
PUBLISH_STAMP= |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
53 |
endif |
f86565e965a1
23750419 do not publish pygtk2 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents:
6325
diff
changeset
|
54 |
|
6325
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
55 |
include $(WS_MAKE_RULES)/gnome-component.mk |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
56 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
57 |
# Required due to patch to configure.ac. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
58 |
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv -I m4); |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
59 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --disable-static |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += PYTHON=$(PYTHON) |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
62 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
63 |
# Ensure Python modules are installed into vendor package directories. |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
64 |
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:
6375
diff
changeset
|
65 |
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:
6375
diff
changeset
|
66 |
|
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6375
diff
changeset
|
67 |
PYTHON_ARCH_SUBDIR.32 = |
107d00fe483d
24398776 gnome python 64 bit vendor modules are installed in incorrect directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6375
diff
changeset
|
68 |
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:
6375
diff
changeset
|
69 |
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:
6375
diff
changeset
|
70 |
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:
6375
diff
changeset
|
71 |
COMPONENT_INSTALL_ARGS += pyexecsubdir=$(PYTHON_ARCH_SUBDIR) |
6325
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
72 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
73 |
REQUIRED_PACKAGES += library/desktop/atk |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
74 |
REQUIRED_PACKAGES += library/desktop/cairo |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
75 |
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
76 |
REQUIRED_PACKAGES += library/desktop/gtk2 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
77 |
REQUIRED_PACKAGES += library/desktop/libglade |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
78 |
REQUIRED_PACKAGES += library/desktop/pango |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
79 |
REQUIRED_PACKAGES += library/glib2 |
7527
352b7a456c30
25305616 RE audits don't like the userland package anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
6911
diff
changeset
|
80 |
REQUIRED_PACKAGES += library/python/numpy-27 |
6325
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
81 |
REQUIRED_PACKAGES += runtime/python-27 |
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
82 |
|
a5e9063beb26
23245486 Move pygtk2 2.24.0 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
83 |