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