4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= Imaging
29 COMPONENT_VERSION
= 1.1.7
31 COMPONENT_PROJECT_URL
= http
://www.pythonware.com
/products
/pil
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211
36 COMPONENT_ARCHIVE_URL
= http
://effbot.org
/downloads
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_BUGDB
= python-mod
/pil
41 include $(WS_TOP
)/make-rules
/prep.mk
42 include $(WS_TOP
)/make-rules
/setup.py.mk
43 include $(WS_TOP
)/make-rules
/ips.mk
45 TEST_PYTHONPATH
.32 = $(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
/PIL
46 TEST_PYTHONPATH
.64 = $(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
/PIL
:$(PROTO_DIR
)/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
/PIL
/64
48 # This binary image file accompanies the test which is created along with a fix
49 # in patches/04-CVE-2014-9601.patch
50 COMPONENT_PRE_TEST_ACTION
= \
51 if
[ ! -e
$(SOURCE_DIR
)/Images
/png_decompression_dos.png
]; then \
52 $(CP
) files
/png_decompression_dos.png \
53 $(SOURCE_DIR
)/Images
/png_decompression_dos.png
; \
57 COMPONENT_TEST_DIR
= $(COMPONENT_SRC
)
58 COMPONENT_TEST_ARGS
= .
/selftest.py
59 COMPONENT_TEST_ENV
= PYTHONPATH
=$(TEST_PYTHONPATH.
$(BITS
))
61 ASLR_MODE
= $(ASLR_ENABLE
)
64 build
: $(BUILD_32_and_64
)
66 install: $(INSTALL_32_and_64
)
68 test: $(TEST_32_and_64
)
70 REQUIRED_PACKAGES
+= image
/library
/libjpeg6
71 REQUIRED_PACKAGES
+= image
/library
/libjpeg6-ijg
72 REQUIRED_PACKAGES
+= library
/zlib
73 REQUIRED_PACKAGES
+= runtime
/python-27
74 REQUIRED_PACKAGES
+= runtime
/tcl-8
75 REQUIRED_PACKAGES
+= runtime
/tk-8
76 REQUIRED_PACKAGES
+= system
/library
77 REQUIRED_PACKAGES
+= system
/library
/freetype-2