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