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