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