Makefile revision 206
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER START
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The contents of this file are subject to the terms of the
ca4e44ebe8f3b29a426fe047c4192262ca660c6fAutomatic Updater# Common Development and Distribution License (the "License").
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You may not use this file except in compliance with the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# See the License for the specific language governing permissions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and limitations under the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
cf58feee56bf1afb8c2909f399a6f1e28d0dbf68Jeremy Reed# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The archive untars to directory without the '-2' suffix, so
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# COMPONENT_SUBVERSION had to be introduced
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# this case we need to replace the '-' by '.'.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The archive contains pre-generated magick-config.h header, which is later on
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# being used and the build fails. However, we want to use the header generated
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# header file needs to be deleted.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# To get the Perl modules built it is necessary to copy the PerlMagick directory
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# to the build directory
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Show name of "error tag" as part of the warning
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# common targets
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# ImageMagick tests have hard-coded absolute paths inside, so essentially they
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# can be run only after ImageMagick is actually installed and this is not
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# possible, so the tests are not invoked.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont @echo "Tests can be run only after ImageMagick is installed."