Makefile revision 2899
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# CDDL HEADER START
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# The contents of this file are subject to the terms of the
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# Common Development and Distribution License (the "License").
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# You may not use this file except in compliance with the License.
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# or http://www.opensolaris.org/os/licensing.
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# See the License for the specific language governing permissions
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# and limitations under the License.
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# When distributing Covered Code, include this CDDL HEADER in each
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# If applicable, add the following below this CDDL HEADER, with the
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# fields enclosed by brackets "[]" replaced with your own identifying
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# information: Portions Copyright [yyyy] [name of copyright owner]
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# CDDL HEADER END
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny#
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinclude ../../make-rules/shared-macros.mk
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_NAME= openexr
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_VERSION= 1.6.1
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_PROJECT_URL= http://www.openexr.com/
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_ARCHIVE_HASH= \
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCOMPONENT_BUGDB= library/openexr
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyTPNO= 10771
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinclude ../../make-rules/prep.mk
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinclude ../../make-rules/configure.mk
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinclude ../../make-rules/ips.mk
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyPATCH_LEVEL = 0
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# there seems to be no other way to enable large files support
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCXXFLAGS += $(CPP_LARGEFILES)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# it seems that --with-pic doesn't get PIC flags to the C++ compiler
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCXXFLAGS += $(CC_PIC)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# libCstd and libCrun. The last two are needed because with Studio 12.2
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# (and beyond), there is a bug in the CC driver that is not correctly using
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny# the '-library=Cstd,Crun' we are passing to it.
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyLIBS += -lc -lm -lCstd -lCrun
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
d3f2fd9cb21cc10dce663a2f7d0deda07074e44eJan ZelenyCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
d3f2fd9cb21cc10dce663a2f7d0deda07074e44eJan ZelenyCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_ENV += LIBS="$(LIBS)"
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_OPTIONS += --disable-static
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_OPTIONS += --enable-threading
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_OPTIONS += --enable-posix-sem
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyCONFIGURE_OPTIONS += --with-pic
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyASLR_MODE = $(ASLR_ENABLE)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenybuild: $(BUILD_32_and_64)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinstall: $(INSTALL_32_and_64)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenytest: $(TEST_32_and_64)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan ZelenyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zelenyinclude ../../make-rules/depend.mk
20d0bc6d587f346238062df4da5edfde815e59b1Jan Zeleny