Makefile revision 5680
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# CDDL HEADER START
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# The contents of this file are subject to the terms of the
7bebe46c240b554f47faeed19186123896281967jc# Common Development and Distribution License (the "License").
7bebe46c240b554f47faeed19186123896281967jc# You may not use this file except in compliance with the License.
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7bebe46c240b554f47faeed19186123896281967jc# or http://www.opensolaris.org/os/licensing.
7bebe46c240b554f47faeed19186123896281967jc# See the License for the specific language governing permissions
7bebe46c240b554f47faeed19186123896281967jc# and limitations under the License.
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# When distributing Covered Code, include this CDDL HEADER in each
7bebe46c240b554f47faeed19186123896281967jc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7bebe46c240b554f47faeed19186123896281967jc# If applicable, add the following below this CDDL HEADER, with the
7bebe46c240b554f47faeed19186123896281967jc# fields enclosed by brackets "[]" replaced with your own identifying
7bebe46c240b554f47faeed19186123896281967jc# information: Portions Copyright [yyyy] [name of copyright owner]
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# CDDL HEADER END
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jc# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
7bebe46c240b554f47faeed19186123896281967jc#
7bebe46c240b554f47faeed19186123896281967jcBUILD_BITS= 64_and_32
7bebe46c240b554f47faeed19186123896281967jcinclude ../../make-rules/shared-macros.mk
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_NAME= openexr
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_VERSION= 1.6.1
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_PROJECT_URL= http://www.openexr.com/
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_ARCHIVE_HASH= \
7bebe46c240b554f47faeed19186123896281967jc sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_BUGDB= library/openexr
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcTPNO= 10771
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcinclude $(WS_MAKE_RULES)/common.mk
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcPATCH_LEVEL = 0
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jc# there seems to be no other way to enable large files support
7bebe46c240b554f47faeed19186123896281967jcCXXFLAGS += $(CPP_LARGEFILES)
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jc# it seems that --with-pic doesn't get PIC flags to the C++ compiler
7bebe46c240b554f47faeed19186123896281967jcCXXFLAGS += $(CC_PIC)
7bebe46c240b554f47faeed19186123896281967jcCXXFLAGS += -template=extdef
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jc# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
7bebe46c240b554f47faeed19186123896281967jc# libCstd and libCrun. The last two are needed because with Studio 12.2
7bebe46c240b554f47faeed19186123896281967jc# (and beyond), there is a bug in the CC driver that is not correctly using
7bebe46c240b554f47faeed19186123896281967jc# the '-library=Cstd,Crun' we are passing to it.
7bebe46c240b554f47faeed19186123896281967jcLIBS += -lc -lm -lCstd -lCrun
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_TEST_TRANSFORMS += \
7bebe46c240b554f47faeed19186123896281967jc '-e "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/libtool/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/-m32/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/-m64/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/DEPDIR=/d"'
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcCONFIGURE_ENV += LIBS="$(LIBS)"
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcCONFIGURE_OPTIONS += --disable-static
7bebe46c240b554f47faeed19186123896281967jcCONFIGURE_OPTIONS += --enable-threading
7bebe46c240b554f47faeed19186123896281967jcCONFIGURE_OPTIONS += --enable-posix-sem
7bebe46c240b554f47faeed19186123896281967jcCONFIGURE_OPTIONS += --with-pic
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcPROTOPKGCONFIGDIR.32 = $(PROTOPKGCONFIGDIR)
7bebe46c240b554f47faeed19186123896281967jcPROTOPKGCONFIGDIR.64 = $(PROTOPKGCONFIGDIR64)
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_POST_INSTALL_ACTION = \
7bebe46c240b554f47faeed19186123896281967jc ( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \
7bebe46c240b554f47faeed19186123896281967jc $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc )
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcASLR_MODE = $(ASLR_ENABLE)
7bebe46c240b554f47faeed19186123896281967jc
7bebe46c240b554f47faeed19186123896281967jcREQUIRED_PACKAGES += library/ilmbase
7bebe46c240b554f47faeed19186123896281967jcREQUIRED_PACKAGES += library/zlib
7bebe46c240b554f47faeed19186123896281967jcREQUIRED_PACKAGES += system/library/c++-runtime
7bebe46c240b554f47faeed19186123896281967jcREQUIRED_PACKAGES += system/library/math
7bebe46c240b554f47faeed19186123896281967jc