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