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