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