Makefile revision 7044
022cff78006f698453640e0a0e97cc5f8c9de59drbb# CDDL HEADER START
9278d5393ef084f4fc6d7ec8641af5959442c157jwoolley# The contents of this file are subject to the terms of the
9278d5393ef084f4fc6d7ec8641af5959442c157jwoolley# Common Development and Distribution License (the "License").
022cff78006f698453640e0a0e97cc5f8c9de59drbb# You may not use this file except in compliance with the License.
022cff78006f698453640e0a0e97cc5f8c9de59drbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
526a776292f420ffeea0d081c61971ed381fad20stoddard# See the License for the specific language governing permissions
526a776292f420ffeea0d081c61971ed381fad20stoddard# and limitations under the License.
526a776292f420ffeea0d081c61971ed381fad20stoddard# When distributing Covered Code, include this CDDL HEADER in each
526a776292f420ffeea0d081c61971ed381fad20stoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
526a776292f420ffeea0d081c61971ed381fad20stoddard# If applicable, add the following below this CDDL HEADER, with the
526a776292f420ffeea0d081c61971ed381fad20stoddard# fields enclosed by brackets "[]" replaced with your own identifying
526a776292f420ffeea0d081c61971ed381fad20stoddard# information: Portions Copyright [yyyy] [name of copyright owner]
526a776292f420ffeea0d081c61971ed381fad20stoddard# CDDL HEADER END
62ddc9851530478919d169ba9c34b80f60cf7718trawick# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
904d7bf799c6216beb34519463596b4fce630308wroweCOMPONENT_MAJOR_VERSION= $(shell echo $(COMPONENT_VERSION) | $(GSED) -e 's/\([0-9]\+\)\.[0-9]\+\.[0-9]\+/\1/')
904d7bf799c6216beb34519463596b4fce630308wroweHUMAN_VERSION= $(COMPONENT_VERSION)-$(COMPONENT_SUBVERSION)
17a4c6968b2fa692ff4dde12fe305230ee6b0421aaronCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION).tar.gz
17a4c6968b2fa692ff4dde12fe305230ee6b0421aaron sha256:468419fea538ba1dcd2dc69334e8981cf41417f9a9938973884dccaedc403b39
17a4c6968b2fa692ff4dde12fe305230ee6b0421aaronCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
b900452c9c36031434d318880f023c0fb9143325rbb# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but in
b900452c9c36031434d318880f023c0fb9143325rbb# this case we need to replace the '-' by '.'.
b900452c9c36031434d318880f023c0fb9143325rbbIPS_COMPONENT_VERSION= $(COMPONENT_VERSION).$(COMPONENT_SUBVERSION)
b900452c9c36031434d318880f023c0fb9143325rbbCOMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_SRC)-$(COMPONENT_SUBVERSION) \
b900452c9c36031434d318880f023c0fb9143325rbb# To get the Perl modules built it is necessary to copy the PerlMagick
b900452c9c36031434d318880f023c0fb9143325rbb# directory to the build directory
43053faf24ffe7657bb32bc06d4058dedf3ef053rbbCOMPONENT_PRE_CONFIGURE_ACTION += ($(CP) -R $(SOURCE_DIR)/PerlMagick $(@D))
c453a141db60a5b19649eac508f4851a8729c556rbb# Don't use rpath, or relink!
8b91dcac0e1ef7796c72d16b0962267313cac486jerenkrantz -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
8b91dcac0e1ef7796c72d16b0962267313cac486jerenkrantz -e 's|need_relink=yes|need_relink=not_on_solaris|' \
6ce942b017db75b559a42bdc2d7b8ea9e869a956wrowe# This is needed by our modified Magick++/demo/demos.tap and
7dfed2b71c9c4223996cbd7c5c0c85c7c8fef2a4rbb# Prevent older versions of libMagick{Core,Wand}-6.Q16.so from the build
6ce942b017db75b559a42bdc2d7b8ea9e869a956wrowe# machine from being found ahead of new versions from the proto area.
574f6ff9ee80ef4f772649c5c8319b764a8abe42jerenkrantzCOMPONENT_BUILD_ENV += LD_OPTIONS_SO="$(LD_OPTIONS_SO)"
574f6ff9ee80ef4f772649c5c8319b764a8abe42jerenkrantz# S11 does not support .a files so we have to modify the test script in a way
6d7d70dbda8e461d87f2d41e323755496ae3ebc7trawick# that it finds the libraries in .libs dir
6d7d70dbda8e461d87f2d41e323755496ae3ebc7trawick perl -pi -e 's,"$$,/.libs", if m/^MAGICK_(CODER|FILTER)_MODULE_PATH/' "$(BUILD_DIR_32)/common.shi"
22a25f3393393b781e214f4abef17950bcb8bbe3jerenkrantz perl -pi -e 's,"$$,/.libs", if m/^MAGICK_(CODER|FILTER)_MODULE_PATH/' "$(BUILD_DIR_64)/common.shi"
a310497ca9c5112d759871e1b7d9f6a40fb78bcfwrowe# To remove the compiler complaints about __restrict keyword,
a310497ca9c5112d759871e1b7d9f6a40fb78bcfwrowe# -D_magickcore_restrict should be used.
e36ef0d081aa59867688bcbb3da65952ec16fae3rbb# Using option 'with-fontconfig=no' so that the fonts/fonts path specified in
e36ef0d081aa59867688bcbb3da65952ec16fae3rbb# configuration file 'type-ghostscript.xml' is being used.
e36ef0d081aa59867688bcbb3da65952ec16fae3rbb# Configure option 'with-gs-font-dir' is required because some build systems
e36ef0d081aa59867688bcbb3da65952ec16fae3rbb# might not have ghostscript fonts installed.
e36ef0d081aa59867688bcbb3da65952ec16fae3rbbCONFIGURE_OPTIONS+= --with-gs-font-dir="/usr/share/ghostscript/fonts"
e36ef0d081aa59867688bcbb3da65952ec16fae3rbbCONFIGURE_OPTIONS+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
52df98b165194a0ad68885f49f81fdaf56ece568wroweCONFIGURE_OPTIONS.32+= --with-perl-options="INSTALLDIRS=vendor"
7e44dd5082cd865068285e8f915bb5f045e0bb80larsPKG_MACROS += COMPONENT_MAJOR_VERSION=$(COMPONENT_MAJOR_VERSION)
7e44dd5082cd865068285e8f915bb5f045e0bb80lars# Needed for "gmake test" to work successfully. If SHELLOPTS is exported (as
44a4ee1140769173da7bc2b42d1a686e3260ad84wrowe# it is by the Userland Makefiles), then all shell options get exported to
44a4ee1140769173da7bc2b42d1a686e3260ad84wrowe# child invocations of bash, which results in test failures due to nounset and
44a4ee1140769173da7bc2b42d1a686e3260ad84wrowe# xtrace being set unexpectedly, and errors such as "$1: unbound variable" and
44a4ee1140769173da7bc2b42d1a686e3260ad84wrowe# diffs failing due to script tracing in output files.