Makefile revision 2899
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
908N/A# Common Development and Distribution License (the "License").
733N/A# You may not use this file except in compliance with the License.
98N/A#
98N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98N/A# or http://www.opensolaris.org/os/licensing.
98N/A# See the License for the specific language governing permissions
98N/A# and limitations under the License.
98N/A#
98N/A# When distributing Covered Code, include this CDDL HEADER in each
98N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98N/A# If applicable, add the following below this CDDL HEADER, with the
98N/A# fields enclosed by brackets "[]" replaced with your own identifying
98N/A# information: Portions Copyright [yyyy] [name of copyright owner]
98N/A#
98N/A# CDDL HEADER END
98N/A#
98N/A
98N/A#
98N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A
98N/A# 14275946 parfait doesn't know about i, _imaginary_i
98N/APARFAIT_BUILD=no
98N/A
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME= ImageMagick
98N/ACOMPONENT_VERSION= 6.8.3
98N/ACOMPONENT_SUBVERSION= 5
98N/AHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
235N/ACOMPONENT_PROJECT_URL= http://www.imagemagick.org/
156N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
156N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
156N/ACOMPONENT_ARCHIVE_HASH= \
156N/A sha256:daead80170bc6d44cf6a54b4817446cbb7211b8ee445532b64033af190265fe3
98N/ACOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
98N/ACOMPONENT_BUGDB= utility/imagemagick
98N/A
98N/ATPNO= 17708
493N/A
493N/Ainclude ../../make-rules/prep.mk
98N/Ainclude ../../make-rules/configure.mk
911N/Ainclude ../../make-rules/ips.mk
911N/A
911N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
911N/A
98N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
235N/A# this case we need to replace the '-' by '.'.
493N/A#
98N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
98N/A
98N/ACOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
98N/A $(COMPONENT_SRC))
606N/A
98N/A# To get the Perl modules built it is necessary to copy the PerlMagick directory
98N/A# to the build directory
98N/A#
606N/ACOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
606N/A
98N/ALIBS += -lsocket -lnsl
493N/ACONFIGURE_ENV += LIBS="$(LIBS)"
493N/A
493N/A# Show name of "error tag" as part of the warning
98N/A#
98N/ACFLAGS += -errtags=yes
98N/A# To remove the complier complaints about __restrict keyword,
98N/A# -D_magickcore_restrict should be used.
908N/ACFLAGS += -xc99=%all -D_magickcore_restrict=
591N/A
493N/A# Needed to generate a decent RUNPATH for Magick.so
493N/A#
493N/ACOMPONENT_BUILD_ARGS += LD="$(CC)"
493N/ACOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
493N/A
493N/ACONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
493N/ACONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
493N/ACONFIGURE_OPTIONS+= --with-modules
493N/ACONFIGURE_OPTIONS+= --enable-shared=yes
705N/ACONFIGURE_OPTIONS+= --enable-static=no
493N/ACONFIGURE_OPTIONS+= --without-gvc
557N/ACONFIGURE_OPTIONS+= --disable-openmp
557N/A# Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
493N/A# configuration file 'type-ghostscript.xml' is being used.
493N/ACONFIGURE_OPTIONS+= --with-fontconfig=no
606N/A# Configure option 'with-gs-font-dir' is required because some build systems might
606N/A# not have ghostscript fonts installed.
851N/ACONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
851N/ACONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
851N/ACONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
851N/ACONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
851N/ACONFIGURE_OPTIONS.64+= --without-perl
851N/A
851N/A# common targets
98N/A#
591N/Abuild: $(BUILD_32_and_64)
910N/A
851N/A# Remove build machine runpath from libMagick++-6.Q16.so.1.0.0 and
591N/A# libMagickCore-6.Q16.so.1.0.0
910N/Ainstall: $(INSTALL_32_and_64)
910N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
910N/A $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
910N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
910N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0; \
910N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
98N/A $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
98N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
910N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0
910N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
910N/A $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \
98N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
606N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagickCore-6.Q16.so.1.0.0; \
98N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
606N/A $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \
98N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
591N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagickCore-6.Q16.so.1.0.0
851N/A
111N/A# ImageMagick tests have hard-coded absolute paths inside, so essentially they
111N/A# can be run only after ImageMagick is actually installed and this is not
111N/A# possible, so the tests are not invoked.
111N/A#
111N/Atest: $(NO_TESTS)
606N/A @echo "Tests can be run only after ImageMagick is installed."
851N/A
851N/ABUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
851N/A
606N/Ainclude ../../make-rules/depend.mk
98N/A