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