Makefile revision 2705
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht#
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# CDDL HEADER START
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht#
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# The contents of this file are subject to the terms of the
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# Common Development and Distribution License (the "License").
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# You may not use this file except in compliance with the License.
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht#
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# or http://www.opensolaris.org/os/licensing.
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# See the License for the specific language governing permissions
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# and limitations under the License.
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht#
0b152383e04dbeb10dba29bcdfaa0981e4d9df27Simon Ulbricht# When distributing Covered Code, include this CDDL HEADER in each
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# If applicable, add the following below this CDDL HEADER, with the
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# fields enclosed by brackets "[]" replaced with your own identifying
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# information: Portions Copyright [yyyy] [name of copyright owner]
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht#
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# CDDL HEADER END
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht#
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht#
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht#
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# 14275946 parfait doesn't know about i, _imaginary_i
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtPARFAIT_BUILD=no
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbrichtinclude ../../make-rules/shared-macros.mk
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_NAME= ImageMagick
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_VERSION= 6.8.3
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_SUBVERSION= 5
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_PROJECT_URL= http://www.imagemagick.org/
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1036463e0cb9fff54e4f9378bdf2face4bb58bc4Simon UlbrichtCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_ARCHIVE_HASH= \
1036463e0cb9fff54e4f9378bdf2face4bb58bc4Simon Ulbricht sha256:daead80170bc6d44cf6a54b4817446cbb7211b8ee445532b64033af190265fe3
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_ARCHIVE_URL= http://image_magick.veidrodis.com/image_magick/$(COMPONENT_ARCHIVE)
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_BUGDB= utility/imagemagick
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbrichtinclude ../../make-rules/prep.mk
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbrichtinclude ../../make-rules/configure.mk
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbrichtinclude ../../make-rules/ips.mk
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht# this case we need to replace the '-' by '.'.
1036463e0cb9fff54e4f9378bdf2face4bb58bc4Simon Ulbricht#
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
2643008447e30b6025f742eb6a661f38be756b1eSimon Ulbricht
2643008447e30b6025f742eb6a661f38be756b1eSimon UlbrichtCOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
$(COMPONENT_SRC))
# To get the Perl modules built it is necessary to copy the PerlMagick directory
# to the build directory
#
COMPONENT_PRE_CONFIGURE_ACTION= ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
LIBS += -lsocket -lnsl
CONFIGURE_ENV += LIBS="$(LIBS)"
# Show name of "error tag" as part of the warning
#
CFLAGS += -errtags=yes
# To remove the complier complaints about __restrict keyword,
# -D_magickcore_restrict should be used.
CFLAGS += -xc99=%all -D_magickcore_restrict=
# Needed to generate a decent RUNPATH for Magick.so
#
COMPONENT_BUILD_ARGS += LD="$(CC)"
COMPONENT_BUILD_ARGS += LD_RUN_PATH="$(CONFIGURE_LIBDIR.$(BITS))"
CONFIGURE_OPTIONS+= CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS+= CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_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
# common targets
#
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
# ImageMagick tests have hard-coded absolute paths inside, so essentially they
# can be run only after ImageMagick is actually installed and this is not
# possible, so the tests are not invoked.
#
test: $(NO_TESTS)
@echo "Tests can be run only after ImageMagick is installed."
BUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
include ../../make-rules/depend.mk