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