Makefile revision 3996
7323N/A#
7323N/A# CDDL HEADER START
7323N/A#
7323N/A# The contents of this file are subject to the terms of the
7323N/A# Common Development and Distribution License (the "License").
7323N/A# You may not use this file except in compliance with the License.
7323N/A#
7323N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7323N/A# or http://www.opensolaris.org/os/licensing.
7323N/A# See the License for the specific language governing permissions
7323N/A# and limitations under the License.
7323N/A#
7323N/A# When distributing Covered Code, include this CDDL HEADER in each
7323N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7323N/A# If applicable, add the following below this CDDL HEADER, with the
7323N/A# fields enclosed by brackets "[]" replaced with your own identifying
7323N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7323N/A#
7323N/A# CDDL HEADER END
7323N/A#
7323N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
7323N/A#
7323N/Ainclude ../../make-rules/shared-macros.mk
7323N/A
7323N/ACOMPONENT_NAME= openexr
7323N/ACOMPONENT_VERSION= 1.6.1
7323N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7323N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
7323N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7323N/ACOMPONENT_ARCHIVE_HASH= \
7323N/A sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
7323N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
7323N/ACOMPONENT_BUGDB= library/openexr
7323N/A
7323N/ATPNO= 10771
7323N/A
7323N/Ainclude $(WS_MAKE_RULES)/prep.mk
7359N/Ainclude $(WS_MAKE_RULES)/configure.mk
7359N/Ainclude $(WS_MAKE_RULES)/ips.mk
7359N/A
7323N/APATCH_LEVEL = 0
7323N/A
7323N/A# there seems to be no other way to enable large files support
7323N/ACXXFLAGS += $(CPP_LARGEFILES)
7323N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
7323N/ACXXFLAGS += $(CC_PIC)
7323N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
7323N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
7323N/A# (and beyond), there is a bug in the CC driver that is not correctly using
7323N/A# the '-library=Cstd,Crun' we are passing to it.
7323N/ALIBS += -lc -lm -lCstd -lCrun
7323N/A
7323N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
7323N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
7323N/ACONFIGURE_ENV += LIBS="$(LIBS)"
7323N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
7323N/A
7323N/ACONFIGURE_OPTIONS += --disable-static
7323N/ACONFIGURE_OPTIONS += --enable-threading
7323N/ACONFIGURE_OPTIONS += --enable-posix-sem
7323N/ACONFIGURE_OPTIONS += --with-pic
7323N/A
7323N/AASLR_MODE = $(ASLR_ENABLE)
7323N/A
7323N/Abuild: $(BUILD_32_and_64)
7323N/A
7323N/Ainstall: $(INSTALL_32_and_64)
7323N/A
7323N/Atest: $(TEST_32_and_64)
7323N/A
7323N/A
7323N/AREQUIRED_PACKAGES += library/ilmbase
7323N/AREQUIRED_PACKAGES += library/zlib
7323N/AREQUIRED_PACKAGES += system/library
7323N/AREQUIRED_PACKAGES += system/library/c++-runtime
7323N/AREQUIRED_PACKAGES += system/library/math
7323N/A