Makefile revision 7292
6243N/A#
6243N/A# CDDL HEADER START
6243N/A#
6243N/A# The contents of this file are subject to the terms of the
6243N/A# Common Development and Distribution License (the "License").
6243N/A# You may not use this file except in compliance with the License.
6243N/A#
6243N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6243N/A# or http://www.opensolaris.org/os/licensing.
6243N/A# See the License for the specific language governing permissions
6243N/A# and limitations under the License.
6243N/A#
6243N/A# When distributing Covered Code, include this CDDL HEADER in each
6243N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6243N/A# If applicable, add the following below this CDDL HEADER, with the
6243N/A# fields enclosed by brackets "[]" replaced with your own identifying
6243N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6243N/A#
6243N/A# CDDL HEADER END
6243N/A#
6243N/A
6243N/A#
6243N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
6243N/A#
6243N/ABUILD_BITS= 64_and_32
6243N/Ainclude ../../make-rules/shared-macros.mk
6243N/A
6243N/ACOMPONENT_NAME= ilmbase
6243N/ACOMPONENT_VERSION= 1.0.1
6243N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
6243N/ACOMPONENT_ARCHIVE_HASH= \
6243N/A sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
6243N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
6243N/ACOMPONENT_BUGDB= library/openexr
6245N/A
6243N/ATPNO= 5574
6243N/A
6243N/Ainclude $(WS_MAKE_RULES)/common.mk
6243N/A
6243N/APATCH_LEVEL = 0
6243N/A
6243N/A# there seems to be no other way to enable large files support
6243N/ACXXFLAGS += $(CPP_LARGEFILES)
6243N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
6243N/ACXXFLAGS += $(CC_PIC)
6243N/ACXXFLAGS += -std=sun03
6243N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
6243N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
6245N/A# (and beyond), there is a bug in the CC driver that is not correctly using
6243N/A# the '-library=Cstd,Crun' we are passing to it.
6245N/ALIBS += -lc -lm -lCstd -lCrun
6243N/A
6245N/ACONFIGURE_ENV += LIBS="$(LIBS)"
6245N/A
6243N/ACONFIGURE_OPTIONS += --disable-static
6243N/ACONFIGURE_OPTIONS += --enable-threading
6245N/ACONFIGURE_OPTIONS += --enable-posix-sem
6243N/ACONFIGURE_OPTIONS += --with-pic
6243N/A
6245N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
6245N/A# Strip compilation lines from test output
6245N/ACOMPONENT_TEST_TRANSFORMS += \
6245N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
6245N/A '-e "s|^.*$(CXX).*$$|XXX_CC_XXX|g" ' \
6245N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
6245N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
6245N/A '-e "s|^config.status: .*$$|XXX_CC_XXX|g" ' \
6245N/A '-e "/Nothing to be done/d"' \
6245N/A '-e "/Leaving directory/d"' \
6245N/A '-e "/Entering directory/d"' \
6245N/A '-e "/^XXX_CC_XXX$$/d" '
6243N/A
6243N/AREQUIRED_PACKAGES += system/library/c++-runtime
6245N/AREQUIRED_PACKAGES += system/library/math
6243N/A