Makefile revision 206
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER START
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The contents of this file are subject to the terms of the
ca4e44ebe8f3b29a426fe047c4192262ca660c6fAutomatic Updater# Common Development and Distribution License (the "License").
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You may not use this file except in compliance with the License.
db0008c4486414b81e90dca9938e1fc2320e5133Automatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or http://www.opensolaris.org/os/licensing.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# See the License for the specific language governing permissions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and limitations under the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
cf58feee56bf1afb8c2909f399a6f1e28d0dbf68Jeremy Reed# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude ../../make-rules/shared-macros.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The archive untars to directory without the '-2' suffix, so
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# COMPONENT_SUBVERSION had to be introduced
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_NAME= ImageMagick
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_VERSION= 6.3.4
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_SUBVERSION= 2
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude ../../make-rules/prep.mk
26d8ffe715e74d1e67d268551449b780fec1b95fAutomatic Updaterinclude ../../make-rules/configure.mk
ca4e44ebe8f3b29a426fe047c4192262ca660c6fAutomatic Updaterinclude ../../make-rules/ips.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# this case we need to replace the '-' by '.'.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The archive contains pre-generated magick-config.h header, which is later on
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# being used and the build fails. However, we want to use the header generated
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
d1f39121a69b6afa6c0c9e44eceb60910d1d7f81Evan Hunt# header file needs to be deleted.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupont# To get the Perl modules built it is necessary to copy the PerlMagick directory
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# to the build directory
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan Hunt#
b843f577bbcd6660fbaa506d9e55b156c689a5a8Evan HuntCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# Show name of "error tag" as part of the warning
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontCFLAGS+= -errtags
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS+= --with-modules
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan HuntCONFIGURE_OPTIONS+= --enable-shared=yes
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS+= --enable-static=no
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS+= --without-gvc
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS.64+= --without-perl
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# common targets
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontbuild: $(BUILD_32_and_64)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_32_and_64)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# ImageMagick tests have hard-coded absolute paths inside, so essentially they
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# can be run only after ImageMagick is actually installed and this is not
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont# possible, so the tests are not invoked.
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont#
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Duponttest: $(NO_TESTS)
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis Dupont @echo "Tests can be run only after ImageMagick is installed."
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontBUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude ../../make-rules/depend.mk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont