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