Makefile revision 1520
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# CDDL HEADER START
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# The contents of this file are subject to the terms of the
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# Common Development and Distribution License (the "License").
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# You may not use this file except in compliance with the License.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# or http://www.opensolaris.org/os/licensing.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# See the License for the specific language governing permissions
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# and limitations under the License.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# When distributing Covered Code, include this CDDL HEADER in each
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# If applicable, add the following below this CDDL HEADER, with the
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# CDDL HEADER END
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/shared-macros.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# The archive untars to directory without the '-2' suffix, so
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# COMPONENT_SUBVERSION had to be introduced
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_NAME= ImageMagick
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_VERSION= 6.3.4
3fa7a7e633f46a212052b510cdb8cee41f279a67vboxsyncCOMPONENT_SUBVERSION= 2
3fa7a7e633f46a212052b510cdb8cee41f279a67vboxsyncHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
11f8b3da5f2ead2461e7998b3b091bb0f7bd14d9vboxsyncCOMPONENT_PROJECT_URL= http://www.imagemagick.org/
cb0578a5309e1fc264e5a4acc30543bea075be43vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsyncCOMPONENT_ARCHIVE_HASH= \
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsync sha256:25fb373ac3889e81555e5b48c8a22a3deabeac8b6129387cec9dc7e13804914e
73ba84f95f918cc170be38908ad240fbb2f8f354vboxsyncCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsyncCOMPONENT_BUGDB= utility/imagemagick
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/prep.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/configure.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncinclude ../../make-rules/ips.mk
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# this case we need to replace the '-' by '.'.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# The archive contains pre-generated magick-config.h header, which is later on
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# being used and the build fails. However, we want to use the header generated
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync# header file needs to be deleted.
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync#
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsyncCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
9055f61bb57d2a625c6434d55beac7565c3b3c0dvboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync# To get the Perl modules built it is necessary to copy the PerlMagick directory
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync# to the build directory
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync#
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D); cd $(SOURCE_DIR); $(AUTORECONF) -f)
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync# Show name of "error tag" as part of the warning
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync#
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCFLAGS+= -errtags
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync# Needed to generate a decent RUNPATH for Magick.so
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync#
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCOMPONENT_BUILD_ARGS += LD="$(CC)"
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCONFIGURE_OPTIONS+= --with-modules
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsyncCONFIGURE_OPTIONS+= --enable-shared=yes
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS+= --enable-static=no
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS+= --without-gvc
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncCONFIGURE_OPTIONS.64+= --without-perl
1c0d3d017f9a45748b4839bf6622b53e83a4f1f8vboxsync
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync# common targets
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync#
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncbuild: $(BUILD_32_and_64)
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncinstall: $(INSTALL_32_and_64)
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync# ImageMagick tests have hard-coded absolute paths inside, so essentially they
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync# can be run only after ImageMagick is actually installed and this is not
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync# possible, so the tests are not invoked.
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync#
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsynctest: $(NO_TESTS)
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync @echo "Tests can be run only after ImageMagick is installed."
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncBUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsyncinclude ../../make-rules/depend.mk
4a9af9a8062589b741444d717d2dd1ed22b0f583vboxsync