Makefile revision 6402
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# CDDL HEADER START
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# The contents of this file are subject to the terms of the
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# Common Development and Distribution License (the "License").
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# You may not use this file except in compliance with the License.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# or http://www.opensolaris.org/os/licensing.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# See the License for the specific language governing permissions
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# and limitations under the License.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# When distributing Covered Code, include this CDDL HEADER in each
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# If applicable, add the following below this CDDL HEADER, with the
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# fields enclosed by brackets "[]" replaced with your own identifying
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# information: Portions Copyright [yyyy] [name of copyright owner]
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# CDDL HEADER END
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen#
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pulleninclude ../../../make-rules/shared-macros.mk
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_NAME= Imaging
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_VERSION= 1.1.7
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_PROJECT_URL= http://www.pythonware.com/products/pil/
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_ARCHIVE_HASH= \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen sha256:895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_ARCHIVE_URL= http://effbot.org/downloads/$(COMPONENT_ARCHIVE)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_BUGDB= python-mod/pil
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenTPNO= 7909
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# Syntax issues: not Python 3 ready.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenPYTHON_VERSIONS = $(PYTHON2_VERSIONS)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pulleninclude $(WS_MAKE_RULES)/prep.mk
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pulleninclude $(WS_MAKE_RULES)/setup.py.mk
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pulleninclude $(WS_MAKE_RULES)/ips.mk
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# This binary image file accompanies the test which is created along with a fix
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# in patches/04-CVE-2014-9601.patch
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_PRE_TEST_ACTION= \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen if [ ! -e $(SOURCE_DIR)/Images/png_decompression_dos.png ]; then \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen $(CP) files/png_decompression_dos.png \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen $(SOURCE_DIR)/Images/png_decompression_dos.png ; \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen fi
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_TEST_DIR= $(COMPONENT_SRC)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_TEST_ARGS= ./selftest.py
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_TEST_ENV= PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# Master test results are the same for both 32-bit and 64-bit,
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# for all versions of Python, so override
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# here, rather than create multiple identical master files.
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_TEST_TRANSFORMS += \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen '-e "s|^PIL [0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}|PIL|" ' \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen '-e "s|\(^Python modules loaded from \).*|\1|" ' \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen '-e "s|\(^Binary modules loaded from \).*|\1|" '
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# This binary image file accompanies the test which is created along with a fix
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# in patches/04-CVE-2014-9601.patch
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_PRE_SYSTEM_TEST_ACTION= \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen if [ ! -e $(SOURCE_DIR)/Images/png_decompression_dos.png ]; then \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen $(CP) files/png_decompression_dos.png \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen $(SOURCE_DIR)/Images/png_decompression_dos.png ; \
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen fi
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_SYSTEM_TEST_DIR= $(COMPONENT_SRC)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_SYSTEM_TEST_ARGS= ./selftest.py
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenCOMPONENT_SYSTEM_TEST_ENV= PYTHONPATH=$(PYTHON_VENDOR_PACKAGES.32)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenASLR_MODE = $(ASLR_NOT_APPLICABLE)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen# common targets
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullenbuild: $(BUILD_32_and_64)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pulleninstall: $(INSTALL_32_and_64)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullentest: $(TEST_32_and_64)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullensystem-test: $(SYSTEM_TEST_32_and_64)
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += image/library/libjpeg
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += library/zlib
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += runtime/tcl-8
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += runtime/tk-8
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += system/library
3ee87bca47e74aa2719352485b80973ca6e079b7Julian PullenREQUIRED_PACKAGES += system/library/freetype-2
3ee87bca47e74aa2719352485b80973ca6e079b7Julian Pullen