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