147N/A#
147N/A# CDDL HEADER START
147N/A#
147N/A# The contents of this file are subject to the terms of the
147N/A# Common Development and Distribution License (the "License").
147N/A# You may not use this file except in compliance with the License.
147N/A#
147N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147N/A# or http://www.opensolaris.org/os/licensing.
147N/A# See the License for the specific language governing permissions
147N/A# and limitations under the License.
147N/A#
147N/A# When distributing Covered Code, include this CDDL HEADER in each
147N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147N/A# If applicable, add the following below this CDDL HEADER, with the
147N/A# fields enclosed by brackets "[]" replaced with your own identifying
147N/A# information: Portions Copyright [yyyy] [name of copyright owner]
147N/A#
147N/A# CDDL HEADER END
147N/A#
5680N/A
147N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64_and_32
147N/Ainclude ../../make-rules/shared-macros.mk
147N/A
147N/ACOMPONENT_NAME= openexr
147N/ACOMPONENT_VERSION= 1.6.1
147N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
147N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= library/openexr
147N/A
2899N/ATPNO= 10771
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
147N/A
147N/APATCH_LEVEL = 0
147N/A
206N/A# there seems to be no other way to enable large files support
206N/ACXXFLAGS += $(CPP_LARGEFILES)
3758N/A
206N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
206N/ACXXFLAGS += $(CC_PIC)
4102N/ACXXFLAGS += -template=extdef
7292N/ACXXFLAGS += -std=sun03
3758N/A
806N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
806N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
806N/A# (and beyond), there is a bug in the CC driver that is not correctly using
806N/A# the '-library=Cstd,Crun' we are passing to it.
806N/ALIBS += -lc -lm -lCstd -lCrun
147N/A
3758N/ACOMPONENT_TEST_TRANSFORMS += \
3823N/A '-e "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g"' \
3823N/A '-e "/libtool/d"' \
3823N/A '-e "/-m32/d"' \
3823N/A '-e "/-m64/d"' \
7292N/A '-e "/Nothing to be done/d"' \
7292N/A '-e "/Leaving directory/d"' \
7292N/A '-e "/Entering directory/d"' \
7292N/A '-e "/mkdir .libs/d"' \
7292N/A '-e "/is up to date/d"' \
7292N/A '-e "/creating IlmImfTest/d"' \
3823N/A '-e "/DEPDIR=/d"'
3758N/A
806N/ACONFIGURE_ENV += LIBS="$(LIBS)"
147N/A
147N/ACONFIGURE_OPTIONS += --disable-static
147N/ACONFIGURE_OPTIONS += --enable-threading
147N/ACONFIGURE_OPTIONS += --enable-posix-sem
147N/ACONFIGURE_OPTIONS += --with-pic
147N/A
5680N/APROTOPKGCONFIGDIR.32 = $(PROTOPKGCONFIGDIR)
5680N/APROTOPKGCONFIGDIR.64 = $(PROTOPKGCONFIGDIR64)
3758N/A
3758N/ACOMPONENT_POST_INSTALL_ACTION = \
3758N/A ( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \
3758N/A $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc )
3758N/A
3817N/AREQUIRED_PACKAGES += library/ilmbase
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/math