Makefile revision 1258
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The archive untars to directory without the '-2' suffix, so
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# COMPONENT_SUBVERSION had to be introduced
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PROJECT_URL= http://www.imagemagick.org/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:25fb373ac3889e81555e5b48c8a22a3deabeac8b6129387cec9dc7e13804914e
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, RamanaPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# this case we need to replace the '-' by '.'.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The archive contains pre-generated magick-config.h header, which is later on
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# being used and the build fails. However, we want to use the header generated
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# header file needs to be deleted.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# To get the Perl modules built it is necessary to copy the PerlMagick directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# to the build directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D); cd $(SOURCE_DIR); $(AUTORECONF) -f)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Show name of "error tag" as part of the warning
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Needed to generate a decent RUNPATH for Magick.so
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# common targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ImageMagick tests have hard-coded absolute paths inside, so essentially they
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# can be run only after ImageMagick is actually installed and this is not
test: $(NO_TESTS)