Makefile revision 806
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# CDDL HEADER START
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# The contents of this file are subject to the terms of the
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Common Development and Distribution License (the "License").
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# You may not use this file except in compliance with the License.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# or http://www.opensolaris.org/os/licensing.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# See the License for the specific language governing permissions
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# and limitations under the License.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# When distributing Covered Code, include this CDDL HEADER in each
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# If applicable, add the following below this CDDL HEADER, with the
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# CDDL HEADER END
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync#
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude ../../make-rules/shared-macros.mk
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_NAME= openexr
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_VERSION= 1.6.1
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_PROJECT_URL= http://www.openexr.com/
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:b3650e6542f0e09daadb2d467425530bc8eec333
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude ../../make-rules/prep.mk
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude ../../make-rules/configure.mk
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude ../../make-rules/ips.mk
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncPATCH_LEVEL = 0
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# there seems to be no other way to enable large files support
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCXXFLAGS += $(CPP_LARGEFILES)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# it seems that --with-pic doesn't get PIC flags to the C++ compiler
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCXXFLAGS += $(CC_PIC)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# libCstd and libCrun. The last two are needed because with Studio 12.2
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# (and beyond), there is a bug in the CC driver that is not correctly using
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# the '-library=Cstd,Crun' we are passing to it.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncLIBS += -lc -lm -lCstd -lCrun
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_ENV += LIBS="$(LIBS)"
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_OPTIONS += --disable-static
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_OPTIONS += --enable-threading
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_OPTIONS += --enable-posix-sem
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncCONFIGURE_OPTIONS += --with-pic
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncbuild: $(BUILD_32_and_64)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinstall: $(INSTALL_32_and_64)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsynctest: $(TEST_32_and_64)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncinclude ../../make-rules/depend.mk
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync