Makefile revision 6410
830N/A#
830N/A# CDDL HEADER START
830N/A#
830N/A# The contents of this file are subject to the terms of the
830N/A# Common Development and Distribution License (the "License").
830N/A# You may not use this file except in compliance with the License.
830N/A#
830N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
830N/A# or http://www.opensolaris.org/os/licensing.
830N/A# See the License for the specific language governing permissions
830N/A# and limitations under the License.
830N/A#
830N/A# When distributing Covered Code, include this CDDL HEADER in each
830N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
830N/A# If applicable, add the following below this CDDL HEADER, with the
830N/A# fields enclosed by brackets "[]" replaced with your own identifying
830N/A# information: Portions Copyright [yyyy] [name of copyright owner]
830N/A#
830N/A# CDDL HEADER END
830N/A#
2281N/A
830N/A#
839N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
830N/A#
830N/ABUILD_BITS= 64_and_32
1300N/ACOMPILER=gcc
1258N/Ainclude ../../make-rules/shared-macros.mk
830N/A
830N/ACOMPONENT_NAME= ImageMagick
830N/ACOMPONENT_VERSION= 6.9.5
830N/ACOMPONENT_MAJOR_VERSION= $(shell echo $(COMPONENT_VERSION) | $(GSED) -e 's/\([0-9]\+\)\.[0-9]\+\.[0-9]\+/\1/')
830N/ACOMPONENT_SUBVERSION= 0
830N/AHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
830N/ACOMPONENT_PROJECT_URL= http://www.imagemagick.org/
830N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
830N/ACOMPONENT_ARCHIVE_HASH= \
1244N/A sha256:4b84a3236d24278966140bb5d641c45d3dab47244db79b51e5066518c5cf65c4
1244N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
830N/ACOMPONENT_BUGDB= utility/imagemagick
1244N/A
1244N/ATPNO= 29915
844N/A
844N/Ainclude $(WS_MAKE_RULES)/common.mk
830N/A
830N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
830N/A
2899N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
2899N/A# this case we need to replace the '-' by '.'.
830N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
830N/A
830N/ACOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
830N/A $(COMPONENT_SRC))
830N/A
830N/A# To get the Perl modules built it is necessary to copy the PerlMagick
830N/A# directory to the build directory
830N/ACOMPONENT_PRE_CONFIGURE_ACTION += ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
830N/A
830N/A# Don't use rpath, or relink!
830N/ACOMPONENT_POST_CONFIGURE_ACTION = \
844N/A (cd $(BUILD_DIR_$(BITS)) ; \
844N/A $(GSED) -i \
830N/A -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
902N/A -e 's|need_relink=yes|need_relink=not_on_solaris|' \
902N/A libtool)
854N/A
854N/Aifeq ($(OS_VERSION),5.11)
830N/ALIBS += -lsocket -lnsl
830N/ACONFIGURE_ENV += LIBS="$(LIBS)"
830N/Aendif
902N/A
854N/A# Prevent older versions of libMagick{Core,Wand}-6.Q16.so from the build
854N/A# machine from being found ahead of new versions from the proto area.
854N/ALD_OPTIONS_SO= -L. -L../../magick/.libs
854N/ACOMPONENT_BUILD_ENV += LD_OPTIONS_SO="$(LD_OPTIONS_SO)"
854N/A
854N/A# To remove the compiler complaints about __restrict keyword,
865N/A# -D_magickcore_restrict should be used.
1058N/ACPPFLAGS_USER += -D_magickcore_restrict=
1240N/ACONFIGURE_ENV += CPPFLAGS_USER=$(CPPFLAGS_USER)
1300N/A
1444N/ACONFIGURE_OPTIONS+= --with-modules
2141N/ACONFIGURE_OPTIONS+= --enable-shared
2300N/ACONFIGURE_OPTIONS+= --disable-static
2432N/ACONFIGURE_OPTIONS+= --without-gvc
2432N/ACONFIGURE_OPTIONS+= --disable-openmp
854N/A# Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
902N/A# configuration file 'type-ghostscript.xml' is being used.
902N/ACONFIGURE_OPTIONS+= --with-fontconfig=no
902N/A# Configure option 'with-gs-font-dir' is required because some build systems
830N/A# might not have ghostscript fonts installed.
830N/ACONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
830N/ACONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
830N/ACONFIGURE_OPTIONS.32+= --without-perl
830N/ACONFIGURE_OPTIONS.64+= --with-perl=$(PERL)
830N/ACONFIGURE_OPTIONS.64+= --with-perl-options="INSTALLDIRS=vendor"
830N/A
830N/A# Needed for "gmake test" to work successfully. If SHELLOPTS is exported (as
830N/A# it is by the Userland Makefiles), then all shell options get exported to
830N/A# child invocations of bash, which results in test failures due to nounset and
830N/A# xtrace being set unexpectedly, and errors such as "$1: unbound variable" and
830N/A# diffs failing due to script tracing in output files.
830N/Aunexport SHELLOPTS
830N/A
830N/A# Tests hang waiting for input unless stdin is redirected.
902N/ACOMPONENT_TEST_TARGETS = check < /dev/null
902N/A
902N/A# Master test transforms
830N/ACOMPONENT_TEST_TRANSFORMS += \
902N/A '-n '\
830N/A '-e "/TOTAL/p" ' \
830N/A '-e "/SKIP/p" ' \
830N/A '-e "/PASS/p" ' \
830N/A '-e "/FAIL/p" ' \
902N/A '-e "/ERROR/p" '
830N/A
830N/APKG_MACROS += COMPONENT_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION)
830N/APKG_MACROS += PERL_PKG=$(PERL_PKG)
830N/A
830N/AREQUIRED_PACKAGES += compress/bzip2
830N/AREQUIRED_PACKAGES += compress/xz
830N/AREQUIRED_PACKAGES += image/library/libjpeg
830N/AREQUIRED_PACKAGES += image/library/libpng
830N/AREQUIRED_PACKAGES += image/library/libtiff
830N/AREQUIRED_PACKAGES += library/desktop/cairo
830N/AREQUIRED_PACKAGES += library/desktop/pango
830N/AREQUIRED_PACKAGES += library/fftw-3
830N/AREQUIRED_PACKAGES += library/glib2
830N/AREQUIRED_PACKAGES += library/lcms2
830N/AREQUIRED_PACKAGES += library/libtool/libltdl
830N/AREQUIRED_PACKAGES += library/libxml2
990N/AREQUIRED_PACKAGES += library/zlib
990N/AREQUIRED_PACKAGES += shell/ksh93
990N/AREQUIRED_PACKAGES += system/library/c++-runtime
990N/AREQUIRED_PACKAGES += system/library/fontconfig
990N/AREQUIRED_PACKAGES += system/library/freetype-2
990N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
990N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
990N/AREQUIRED_PACKAGES += system/library/math
990N/AREQUIRED_PACKAGES += system/library/openmp
990N/AREQUIRED_PACKAGES += x11/library/libx11
990N/AREQUIRED_PACKAGES += x11/library/libxext
990N/A