Makefile revision 965
351N/A#
351N/A# CDDL HEADER START
1276N/A#
351N/A# The contents of this file are subject to the terms of the
1377N/A# Common Development and Distribution License (the "License").
351N/A# You may not use this file except in compliance with the License.
351N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
351N/A
351N/Ainclude ../../make-rules/shared-macros.mk
351N/A
351N/A# The archive untars to directory without the '-2' suffix, so
493N/A# COMPONENT_SUBVERSION had to be introduced
351N/A#
970N/ACOMPONENT_NAME= ImageMagick
977N/ACOMPONENT_VERSION= 6.3.4
970N/ACOMPONENT_SUBVERSION= 2
970N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
351N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
1408N/ACOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
351N/ACOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
911N/A
1408N/Ainclude ../../make-rules/prep.mk
1408N/Ainclude ../../make-rules/configure.mk
1408N/Ainclude ../../make-rules/ips.mk
911N/A
351N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
1276N/A
354N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
1408N/A# this case we need to replace the '-' by '.'.
493N/A#
351N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
442N/A
935N/A# The archive contains pre-generated magick-config.h header, which is later on
442N/A# being used and the build fails. However, we want to use the header generated
351N/A# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
351N/A# header file needs to be deleted.
351N/A#
970N/ACOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
970N/A
970N/A# To get the Perl modules built it is necessary to copy the PerlMagick directory
1276N/A# to the build directory
1276N/A#
970N/ACOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D); cd $(SOURCE_DIR); $(AUTORECONF) -f)
351N/A
351N/A# Show name of "error tag" as part of the warning
493N/A#
969N/ACFLAGS+= -errtags
947N/A
969N/A# Needed to generate a decent RUNPATH for Magick.so
351N/A#
351N/ACOMPONENT_BUILD_ARGS += LD="$(CC)"
351N/ACOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
351N/A
1422N/ACONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
565N/ACONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
565N/ACONFIGURE_OPTIONS+= --with-modules
1422N/ACONFIGURE_OPTIONS+= --enable-shared=yes
1422N/ACONFIGURE_OPTIONS+= --enable-static=no
452N/ACONFIGURE_OPTIONS+= --without-gvc
970N/ACONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
970N/ACONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
963N/ACONFIGURE_OPTIONS.64+= --without-perl
963N/A
970N/A# common targets
970N/A#
970N/Abuild: $(BUILD_32_and_64)
351N/A
963N/Ainstall: $(INSTALL_32_and_64)
970N/A
963N/A# ImageMagick tests have hard-coded absolute paths inside, so essentially they
963N/A# can be run only after ImageMagick is actually installed and this is not
963N/A# possible, so the tests are not invoked.
963N/A#
963N/Atest: $(NO_TESTS)
963N/A @echo "Tests can be run only after ImageMagick is installed."
963N/A
BUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
include ../../make-rules/depend.mk