Makefile revision 168
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, Oracle and/or its affiliates. All rights reserved.
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# The archive untars to directory without the '-2' suffix, so
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# COMPONENT_SUBVERSION had to be introduced
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews# this case we need to replace the '-' by '.'.
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark AndrewsIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# The archive contains pre-generated magick-config.h header, which is later on
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# being used and the build fails. However, we want to use the header generated
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# header file needs to be deleted.
1cf118a656f5fd210787908b845362077fc507f8Evan HuntCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# To get the Perl modules built it is necessary to copy the PerlMagick directory
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# to the build directory
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman# Show name of "error tag" as part of the warning
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt# common targets
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# ImageMagick tests have hard-coded absolute paths inside, so essentially they
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# can be run only after ImageMagick is actually installed and this is not
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# possible, so the tests are not invoked.
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień @echo "Tests can be run only after ImageMagick is installed."