Makefile revision 4294
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= ImageMagick
1N/ACOMPONENT_VERSION= 6.8.3
1N/ACOMPONENT_SUBVERSION= 5
1N/AHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
1N/ACOMPONENT_PROJECT_URL= http://www.imagemagick.org/
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:daead80170bc6d44cf6a54b4817446cbb7211b8ee445532b64033af190265fe3
1N/ACOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= utility/imagemagick
1N/A
1N/ATPNO= 17708
1N/A
1N/Ainclude $(WS_MAKE_RULES)/prep.mk
1N/Ainclude $(WS_MAKE_RULES)/configure.mk
1N/Ainclude $(WS_MAKE_RULES)/ips.mk
1N/A
1N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
1N/A
1N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
1N/A# this case we need to replace the '-' by '.'.
1N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
1N/A
1N/ACOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
1N/A $(COMPONENT_SRC))
1N/A
1N/A# To get the Perl modules built it is necessary to copy the PerlMagick directory
1N/A# to the build directory
1N/ACOMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
1N/A
1N/A# Show name of "error tag" as part of the warning
1N/ACFLAGS += -errtags=yes
1N/A# To remove the compiler complaints about __restrict keyword,
1N/A# -D_magickcore_restrict should be used.
1N/ACFLAGS += -xc99=%all -D_magickcore_restrict=
1N/A
1N/A# Needed to generate a decent RUNPATH for Magick.so
1N/A#
1N/ACOMPONENT_BUILD_ARGS += LD="$(CC)"
1N/ACOMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
1N/A
1N/ACONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
1N/ACONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
1N/ACONFIGURE_OPTIONS+= --with-modules
1N/ACONFIGURE_OPTIONS+= --enable-shared=yes
1N/ACONFIGURE_OPTIONS+= --enable-static=no
1N/ACONFIGURE_OPTIONS+= --without-gvc
1N/ACONFIGURE_OPTIONS+= --disable-openmp
1N/A# Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
1N/A# configuration file 'type-ghostscript.xml' is being used.
1N/ACONFIGURE_OPTIONS+= --with-fontconfig=no
1N/A# Configure option 'with-gs-font-dir' is required because some build systems
1N/A# might not have ghostscript fonts installed.
1N/ACONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
1N/ACONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
1N/ACONFIGURE_OPTIONS.32+= --with-perl=$(PERL)
1N/ACONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
1N/ACONFIGURE_OPTIONS.64+= --without-perl
1N/A
1N/A# Needed for "gmake test" to work successfully. If SHELLOPTS is exported (as
1N/A# it is by the Userland Makefiles), then all shell options get exported to
1N/A# child invocations of bash, which results in test failures due to nounset and
1N/A# xtrace being set unexpectedly, and errors such as "$1: unbound variable" and
1N/A# diffs failing due to script tracing in output files.
1N/Aunexport SHELLOPTS
1N/A
1N/A# Tests hang waiting for input unless stdin is redirected.
1N/ACOMPONENT_TEST_TARGETS = check < /dev/null
1N/A
1N/AASLR_MODE = $(ASLR_ENABLE)
1N/A
1N/Aconfigure: $(CONFIGURE_32_and_64)
1N/A
1N/Abuild: $(BUILD_32_and_64)
1N/A
1N/A# Remove build machine runpath from libMagick++-6.Q16.so.1.0.0 and
1N/A# libMagickCore-6.Q16.so.1.0.0
1N/Ainstall: $(INSTALL_32_and_64)
1N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
1N/A $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
1N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
1N/A $(PROTO_DIR)/usr/lib/libMagick++-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
1N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagick++-6.Q16.so.1.0.0
1N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
1N/A $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RUNPATH' \
1N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagickCore-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
1N/A $(PROTO_DIR)/usr/lib/libMagickCore-6.Q16.so.1.0.0; \
1N/A /usr/bin/elfedit -e 'dyn:delete RPATH' \
1N/A $(PROTO_DIR)/usr/lib/$(MACH64)/libMagickCore-6.Q16.so.1.0.0
1N/A
1N/Atest: $(TEST_32_and_64)
1N/A
1N/AREQUIRED_PACKAGES += compress/bzip2
1N/AREQUIRED_PACKAGES += compress/xz
1N/AREQUIRED_PACKAGES += image/library/libjpeg
1N/AREQUIRED_PACKAGES += image/library/libpng
1N/AREQUIRED_PACKAGES += image/library/libtiff
1N/AREQUIRED_PACKAGES += library/desktop/cairo
1N/AREQUIRED_PACKAGES += library/desktop/pango
1N/AREQUIRED_PACKAGES += library/fftw-3
1N/AREQUIRED_PACKAGES += library/glib2
1N/AREQUIRED_PACKAGES += library/lcms
1N/AREQUIRED_PACKAGES += library/libtool/libltdl
1N/AREQUIRED_PACKAGES += library/libxml2
1N/AREQUIRED_PACKAGES += library/zlib
1N/AREQUIRED_PACKAGES += shell/ksh93
1N/AREQUIRED_PACKAGES += system/library
1N/AREQUIRED_PACKAGES += system/library/c++-runtime
1N/AREQUIRED_PACKAGES += system/library/fontconfig
1N/AREQUIRED_PACKAGES += system/library/freetype-2
1N/AREQUIRED_PACKAGES += system/library/math
1N/AREQUIRED_PACKAGES += system/library/openmp
1N/AREQUIRED_PACKAGES += x11/library/libx11
1N/AREQUIRED_PACKAGES += x11/library/libxext
1N/A