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