Makefile revision 5680
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# or http://www.opensolaris.org/os/licensing.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# CDDL HEADER END
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyBUILD_BITS= 64_and_32
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyinclude ../../make-rules/shared-macros.mk
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_NAME= ilmbase
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_VERSION= 1.0.1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PROJECT_URL= http://www.openexr.com/
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_HASH= \
704e6c8876907aac0bf7380effca8bca400d4acdMark Andrews sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
704e6c8876907aac0bf7380effca8bca400d4acdMark AndrewsCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
704e6c8876907aac0bf7380effca8bca400d4acdMark AndrewsCOMPONENT_BUGDB= library/openexr
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsTPNO= 5574
d6b5e0b0e8a4e3e927f8d47ca82c3e7f42e0f4bbMark Andrews
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrewsinclude $(WS_MAKE_RULES)/common.mk
5422929ca0d62760b204f18cf830069ae3f3fc77Automatic Updater
bbe20aa62cd5ece83aeee47cd2992d9f86310823Automatic UpdaterPATCH_LEVEL = 0
2fd58cb8f17e8d268650ae05c2bba94eaf7c7217Automatic Updater
3aaa526a94c80c31c16d44f0f6482984725860f1Tinderbox User# there seems to be no other way to enable large files support
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox UserCXXFLAGS += $(CPP_LARGEFILES)
f159b7b5c761d9107808fef524a8491f41b4cd4fTinderbox User# it seems that --with-pic doesn't get PIC flags to the C++ compiler
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCXXFLAGS += $(CC_PIC)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# libCstd and libCrun. The last two are needed because with Studio 12.2
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# (and beyond), there is a bug in the CC driver that is not correctly using
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# the '-library=Cstd,Crun' we are passing to it.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyLIBS += -lc -lm -lCstd -lCrun
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCONFIGURE_ENV += LIBS="$(LIBS)"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --disable-static
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-threading
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-posix-sem
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --with-pic
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Strip compilation lines from test output
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_TEST_TRANSFORMS += \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^.*$(CXX).*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^config.status: .*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt '-e "/^XXX_CC_XXX$$/d" '
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += system/library/c++-runtime
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntREQUIRED_PACKAGES += system/library/math
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt