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