Makefile revision 5636
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# CDDL HEADER START
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# The contents of this file are subject to the terms of the
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Common Development and Distribution License (the "License").
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# You may not use this file except in compliance with the License.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# See the License for the specific language governing permissions
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# and limitations under the License.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7ec97ae74e42ec21b354fd2d1366313b41d947d6Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
002f1373374a0b72fc0329baa682917929bef168Tony Finch# information: Portions Copyright [yyyy] [name of copyright owner]
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# CDDL HEADER END
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan HuntHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
5c78f1f50e53d8e2ed51a187efc2c9a0f43b4b1bMark AndrewsCOMPONENT_PROJECT_URL= http://www.imagemagick.org/
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews sha256:daead80170bc6d44cf6a54b4817446cbb7211b8ee445532b64033af190265fe3
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# this case we need to replace the '-' by '.'.
1cf118a656f5fd210787908b845362077fc507f8Evan HuntIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
1cf118a656f5fd210787908b845362077fc507f8Evan HuntCOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# To get the Perl modules built it is necessary to copy the PerlMagick
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# directory to the build directory
1cf118a656f5fd210787908b845362077fc507f8Evan HuntCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman# Show name of "error tag" as part of the warning
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# To remove the compiler complaints about __restrict keyword,
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# -D_magickcore_restrict should be used.
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews# Needed to generate a decent RUNPATH for Magick.so
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień# configuration file 'type-ghostscript.xml' is being used.
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman# Configure option 'with-gs-font-dir' is required because some build systems
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman# might not have ghostscript fonts installed.
929329d2d66a7e1083c70a9c918381935bf12799Mukund SivaramanCONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark AndrewsCONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
afefd754734f896bf3e0590177fff83e7cdfdf35Mark AndrewsCONFIGURE_OPTIONS.64+= --with-perl-options="INSTALLDIRS=vendor"
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews# Needed for "gmake test" to work successfully. If SHELLOPTS is exported (as
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# it is by the Userland Makefiles), then all shell options get exported to
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# child invocations of bash, which results in test failures due to nounset and
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# xtrace being set unexpectedly, and errors such as "$1: unbound variable" and
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# diffs failing due to script tracing in output files.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# Tests hang waiting for input unless stdin is redirected.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# Master test transforms
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews '-e "/TOTAL/p" ' \
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews '-e "/SKIP/p" ' \
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews '-e "/PASS/p" ' \
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews '-e "/FAIL/p" ' \
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews '-e "/ERROR/p" '
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews# Remove build machine runpath from libMagick++-6.Q16.so.1.0.0 and
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0; \
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark Andrews $(PROTO_DIR)/usr/lib/$(MACH64)/libMagickCore-6.Q16.so.1.0.0; \
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark Andrews $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \