1333N/A#
1333N/A# CDDL HEADER START
1333N/A#
1333N/A# The contents of this file are subject to the terms of the
1333N/A# Common Development and Distribution License (the "License").
1333N/A# You may not use this file except in compliance with the License.
1333N/A#
1333N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1333N/A# or http://www.opensolaris.org/os/licensing.
1333N/A# See the License for the specific language governing permissions
1333N/A# and limitations under the License.
1333N/A#
1333N/A# When distributing Covered Code, include this CDDL HEADER in each
1333N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1333N/A# If applicable, add the following below this CDDL HEADER, with the
1333N/A# fields enclosed by brackets "[]" replaced with your own identifying
1333N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1333N/A#
1333N/A# CDDL HEADER END
1333N/A#
1333N/A
1333N/A#
6402N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1333N/A#
1333N/A
1333N/Ainclude ../../../make-rules/shared-macros.mk
1333N/A
1333N/ACOMPONENT_NAME= Imaging
1333N/ACOMPONENT_VERSION= 1.1.7
1333N/ACOMPONENT_PROJECT_URL= http://www.pythonware.com/products/pil/
1333N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1333N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1333N/ACOMPONENT_ARCHIVE_HASH= \
1333N/A sha256:895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
1333N/ACOMPONENT_ARCHIVE_URL= http://effbot.org/downloads/$(COMPONENT_ARCHIVE)
1333N/ACOMPONENT_BUGDB= python-mod/pil
1333N/A
2899N/ATPNO= 7909
2899N/A
2818N/A# Syntax issues: not Python 3 ready.
4982N/APYTHON_VERSIONS = $(PYTHON2_VERSIONS)
2818N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
1333N/A
4595N/A# This binary image file accompanies the test which is created along with a fix
4595N/A# in patches/04-CVE-2014-9601.patch
4595N/ACOMPONENT_PRE_TEST_ACTION= \
4595N/A if [ ! -e $(SOURCE_DIR)/Images/png_decompression_dos.png ]; then \
4595N/A $(CP) files/png_decompression_dos.png \
4595N/A $(SOURCE_DIR)/Images/png_decompression_dos.png ; \
4595N/A fi
4595N/A
1699N/ACOMPONENT_TEST_DIR= $(COMPONENT_SRC)
1699N/ACOMPONENT_TEST_ARGS= ./selftest.py
6402N/ACOMPONENT_TEST_ENV= PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
1699N/A
4094N/A# Master test results are the same for both 32-bit and 64-bit,
4094N/A# for all versions of Python, so override
4094N/A# here, rather than create multiple identical master files.
4094N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4094N/A
4094N/ACOMPONENT_TEST_TRANSFORMS += \
4831N/A '-e "s|^PIL [0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}|PIL|" ' \
4831N/A '-e "s|\(^Python modules loaded from \).*|\1|" ' \
4094N/A '-e "s|\(^Binary modules loaded from \).*|\1|" '
4094N/A
4831N/A# This binary image file accompanies the test which is created along with a fix
4831N/A# in patches/04-CVE-2014-9601.patch
4831N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION= \
4831N/A if [ ! -e $(SOURCE_DIR)/Images/png_decompression_dos.png ]; then \
4831N/A $(CP) files/png_decompression_dos.png \
4831N/A $(SOURCE_DIR)/Images/png_decompression_dos.png ; \
4831N/A fi
4831N/ACOMPONENT_SYSTEM_TEST_DIR= $(COMPONENT_SRC)
4831N/ACOMPONENT_SYSTEM_TEST_ARGS= ./selftest.py
6402N/ACOMPONENT_SYSTEM_TEST_ENV= PYTHONPATH=$(PYTHON_VENDOR_PACKAGES.32)
4831N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1699N/A
2790N/A# common targets
2790N/Abuild: $(BUILD_32_and_64)
1333N/A
2790N/Ainstall: $(INSTALL_32_and_64)
1333N/A
2790N/Atest: $(TEST_32_and_64)
2790N/A
4831N/Asystem-test: $(SYSTEM_TEST_32_and_64)
4337N/A
1333N/A
3817N/AREQUIRED_PACKAGES += image/library/libjpeg
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += runtime/tcl-8
3817N/AREQUIRED_PACKAGES += runtime/tk-8
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/freetype-2