Makefile revision 181
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# and limitations under the License.
b253dcf9668f95e141bce9556dc88e30d3305a1dTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# If applicable, add the following below this CDDL HEADER, with the
1ac49378a458420bc685293d12e567d7222d17b6Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
6c910bd5e4a85a56e3a61fdf7b237a45bb2553eeTinderbox User# CDDL HEADER END
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# The archive untars to directory without the '-2' suffix, so
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# COMPONENT_SUBVERSION had to be introduced
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# this case we need to replace the '-' by '.'.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# The archive contains pre-generated magick-config.h header, which is later on
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# being used and the build fails. However, we want to use the header generated
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# header file needs to be deleted.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# To get the Perl modules built it is necessary to copy the PerlMagick directory
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# to the build directory
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# Studio 12.1 -xO4 + -zignore on sparc causes linker core dump prior to
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Show name of "error tag" as part of the warning
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# common targets
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# ImageMagick tests have hard-coded absolute paths inside, so essentially they
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# can be run only after ImageMagick is actually installed and this is not
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# possible, so the tests are not invoked.
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews @echo "Tests can be run only after ImageMagick is installed."