Makefile revision 383
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
089c63b69cdf6803aa8901aae3f2fbae58969511Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The archive untars to directory without the '-2' suffix, so
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# COMPONENT_SUBVERSION had to be introduced
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:516bb273afb007fb08f15c2747862d819a94d391
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# this case we need to replace the '-' by '.'.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The archive contains pre-generated magick-config.h header, which is later on
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# being used and the build fails. However, we want to use the header generated
8de0d8a6905e397ed0a26054815420685f9b435eAutomatic Updater# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# header file needs to be deleted.
089c63b69cdf6803aa8901aae3f2fbae58969511Automatic UpdaterCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# To get the Perl modules built it is necessary to copy the PerlMagick directory
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to the build directory
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Show name of "error tag" as part of the warning
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# common targets
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# ImageMagick tests have hard-coded absolute paths inside, so essentially they
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# can be run only after ImageMagick is actually installed and this is not
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# possible, so the tests are not invoked.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater @echo "Tests can be run only after ImageMagick is installed."