Makefile revision 7030
294N/A#
294N/A# CDDL HEADER START
294N/A#
294N/A# The contents of this file are subject to the terms of the
294N/A# Common Development and Distribution License (the "License").
294N/A# You may not use this file except in compliance with the License.
294N/A#
294N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
294N/A# or http://www.opensolaris.org/os/licensing.
294N/A# See the License for the specific language governing permissions
294N/A# and limitations under the License.
294N/A#
294N/A# When distributing Covered Code, include this CDDL HEADER in each
294N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
294N/A# If applicable, add the following below this CDDL HEADER, with the
294N/A# fields enclosed by brackets "[]" replaced with your own identifying
294N/A# information: Portions Copyright [yyyy] [name of copyright owner]
294N/A#
294N/A# CDDL HEADER END
294N/A#
294N/A
294N/A#
2899N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
294N/A#
294N/ABUILD_BITS= 64_and_32
294N/ACOMPILER=gcc
294N/Ainclude ../../make-rules/shared-macros.mk
294N/A
294N/ACOMPONENT_NAME= ImageMagick
586N/ACOMPONENT_VERSION= 6.9.5
294N/ACOMPONENT_MAJOR_VERSION= $(shell echo $(COMPONENT_VERSION) | $(GSED) -e 's/\([0-9]\+\)\.[0-9]\+\.[0-9]\+/\1/')
294N/ACOMPONENT_SUBVERSION= 10
618N/AHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
586N/ACOMPONENT_PROJECT_URL= http://www.imagemagick.org/
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
294N/A sha256:468419fea538ba1dcd2dc69334e8981cf41417f9a9938973884dccaedc403b39
1258N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
294N/ACOMPONENT_BUGDB= utility/imagemagick
2899N/A
2899N/ATPNO= 29915
294N/A
294N/Ainclude $(WS_MAKE_RULES)/common.mk
294N/A
294N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
294N/A
294N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
294N/A# this case we need to replace the '-' by '.'.
294N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
294N/A
294N/ACOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
294N/A $(COMPONENT_SRC))
294N/A
294N/A# To get the Perl modules built it is necessary to copy the PerlMagick
294N/A# directory to the build directory
294N/ACOMPONENT_PRE_CONFIGURE_ACTION += ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
294N/A
294N/A# Don't use rpath, or relink!
294N/ACOMPONENT_POST_CONFIGURE_ACTION = \
294N/A (cd $(BUILD_DIR_$(BITS)) ; \
294N/A $(GSED) -i \
294N/A -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
294N/A -e 's|need_relink=yes|need_relink=not_on_solaris|' \
294N/A libtool)
1475N/A
1475N/Aifeq ($(OS_VERSION),5.11)
294N/ALIBS += -lsocket -lnsl
294N/ACONFIGURE_ENV += LIBS="$(LIBS)"
294N/Aendif
294N/A
294N/A# Prevent older versions of libMagick{Core,Wand}-6.Q16.so from the build
294N/A# machine from being found ahead of new versions from the proto area.
294N/ALD_OPTIONS_SO= -L. -L../../magick/.libs
294N/ACOMPONENT_BUILD_ENV += LD_OPTIONS_SO="$(LD_OPTIONS_SO)"
294N/A
294N/A# To remove the compiler complaints about __restrict keyword,
294N/A# -D_magickcore_restrict should be used.
294N/ACPPFLAGS_USER += -D_magickcore_restrict=
CONFIGURE_ENV += CPPFLAGS_USER=$(CPPFLAGS_USER)
CONFIGURE_OPTIONS+= --with-modules
CONFIGURE_OPTIONS+= --enable-shared
CONFIGURE_OPTIONS+= --disable-static
CONFIGURE_OPTIONS+= --without-gvc
CONFIGURE_OPTIONS+= --disable-openmp
CONFIGURE_OPTIONS+= --without-openjp2 # tests do not pass
# 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+= --without-perl
CONFIGURE_OPTIONS.64+= --with-perl=$(PERL)
CONFIGURE_OPTIONS.64+= --with-perl-options="INSTALLDIRS=vendor"
# 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
# Master test transforms
COMPONENT_TEST_TRANSFORMS += \
'-n '\
'-e "/TOTAL/p" ' \
'-e "/SKIP/p" ' \
'-e "/PASS/p" ' \
'-e "/FAIL/p" ' \
'-e "/ERROR/p" '
PKG_MACROS += COMPONENT_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION)
PKG_MACROS += PERL_PKG=$(PERL_PKG)
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/lcms2
REQUIRED_PACKAGES += library/libtool/libltdl
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/fontconfig
REQUIRED_PACKAGES += system/library/freetype-2
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/openmp
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxext