components/python/imaging/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 27 Mar 2017 15:35:14 -0700
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 4621 21ae1fb71148
permissions -rw-r--r--
PSARC 2014/190 Python 2.6 EOF 21136303 Python 2.6 EOF 25552242 downrevved cherrypy-26 package in s12 will block update from s11.3 25552335 library/python/idna-26 (only in s11.3 SRU14+) prevents upgrade to S12 25552353 library/python/ipaddress-26 (only in s11.3 SRU14+) prevents upgrade to S12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2697
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2697
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    24
#
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    25
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    27
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		Imaging
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.1.7
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.pythonware.com/products/pil/
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    34
    sha256:895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://effbot.org/downloads/$(COMPONENT_ARCHIVE)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/pil
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    37
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2910
diff changeset
    38
TPNO=			7909
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2910
diff changeset
    39
3778
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    40
# Syntax issues: not Python 3 ready.
7811
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4621
diff changeset
    41
PYTHON_VERSIONS = $(PYTHON2_VERSIONS)
3778
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    42
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    44
include $(WS_MAKE_RULES)/setup.py.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    45
include $(WS_MAKE_RULES)/ips.mk
2697
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    46
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    47
TEST_PYTHONPATH.32 = $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/PIL
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    48
TEST_PYTHONPATH.64 = $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/PIL:$(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/PIL/64
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    49
4621
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    50
# This binary image file accompanies the test which is created along with a fix
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    51
# in patches/04-CVE-2014-9601.patch
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    52
COMPONENT_PRE_TEST_ACTION= \
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    53
	if [ ! -e $(SOURCE_DIR)/Images/png_decompression_dos.png ]; then \
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    54
		$(CP) files/png_decompression_dos.png \
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    55
		$(SOURCE_DIR)/Images/png_decompression_dos.png ; \
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    56
	fi
21ae1fb71148 20396665 problem in PYTHON-MOD/PIL
April Chin <april.chin@oracle.com>
parents: 3996
diff changeset
    57
2697
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    58
COMPONENT_TEST_DIR= $(COMPONENT_SRC)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    59
COMPONENT_TEST_ARGS= ./selftest.py
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    60
COMPONENT_TEST_ENV= PYTHONPATH=$(TEST_PYTHONPATH.$(BITS))
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    61
2910
f8b8cbc43356 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 2697
diff changeset
    62
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
2697
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    63
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    64
# common targets
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    65
build:          $(BUILD_32_and_64)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    66
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    67
install:        $(INSTALL_32_and_64)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    68
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    69
test:           $(TEST_32_and_64)
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    70
ba566c81fae8 15820216 SUNBT7202656 Move python/imaging from Desktop consolidation to Userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    71
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    72
REQUIRED_PACKAGES += image/library/libjpeg
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    73
REQUIRED_PACKAGES += library/zlib
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    74
REQUIRED_PACKAGES += runtime/tcl-8
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    75
REQUIRED_PACKAGES += runtime/tk-8
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    76
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    77
REQUIRED_PACKAGES += system/library/freetype-2