Makefile revision 1258
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/shared-macros.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The archive untars to directory without the '-2' suffix, so
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# COMPONENT_SUBVERSION had to be introduced
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_NAME= ImageMagick
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_VERSION= 6.3.4
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SUBVERSION= 2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PROJECT_URL= http://www.imagemagick.org/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_HASH= \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:25fb373ac3889e81555e5b48c8a22a3deabeac8b6129387cec9dc7e13804914e
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUGDB= utility/imagemagick
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/prep.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/configure.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/ips.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, RamanaPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# this case we need to replace the '-' by '.'.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The archive contains pre-generated magick-config.h header, which is later on
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# being used and the build fails. However, we want to use the header generated
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# by configure from BUILD_DIR_32 / BUILD_DIR_64 directory, so the pre-generated
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# header file needs to be deleted.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PREP_ACTION= (cd $(@D) ; $(RM) magick/magick-config.h)
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# To get the Perl modules built it is necessary to copy the PerlMagick directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# to the build directory
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D); cd $(SOURCE_DIR); $(AUTORECONF) -f)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Show name of "error tag" as part of the warning
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS+= -errtags
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Needed to generate a decent RUNPATH for Magick.so
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUILD_ARGS += LD="$(CC)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --with-modules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --enable-shared=yes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --enable-static=no
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --without-gvc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.64+= --without-perl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# common targets
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana#
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramanabuild: $(BUILD_32_and_64)
a1e9eea083a8f257157edb8a1efb5bbd300eb4bfSrikanth, Ramana
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: $(INSTALL_32_and_64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ImageMagick tests have hard-coded absolute paths inside, so essentially they
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# 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