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