Makefile revision 206
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# CDDL HEADER START
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# The contents of this file are subject to the terms of the
f70a10508f030b097a9b8afe907a06f9a1e2c4d4Tinderbox User# Common Development and Distribution License (the "License").
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# You may not use this file except in compliance with the License.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# or http://www.opensolaris.org/os/licensing.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# See the License for the specific language governing permissions
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# and limitations under the License.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# CDDL HEADER END
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1753d3c4d74241a847794f7e7cfd94cc79be6600Evan Hunt#
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinclude ../../make-rules/shared-macros.mk
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_NAME= openexr
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_VERSION= 1.6.1
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_PROJECT_URL= http://www.openexr.com/
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_ARCHIVE_HASH= sha1:b3650e6542f0e09daadb2d467425530bc8eec333
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinclude ../../make-rules/prep.mk
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinclude ../../make-rules/configure.mk
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinclude ../../make-rules/ips.mk
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntPATCH_LEVEL = 0
f9aef05653eeb454c489d5bd2bde6daab774ad4aTinderbox User
f70a10508f030b097a9b8afe907a06f9a1e2c4d4Tinderbox User# configure seems to add -nolibs, so we add that back the C++ runtime and stdlib
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCXXFLAGS += $(studio_CXXLIB_CSTD)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# there seems to be no other way to enable large files support
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCXXFLAGS += $(CPP_LARGEFILES)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# it seems that --with-pic doesn't get PIC flags to the C++ compiler
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCXXFLAGS += $(CC_PIC)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# libtools seems to be forcing -nolibs, so we have to add back libc and libm
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntLDFLAGS += -lc -lm
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan HuntCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCONFIGURE_OPTIONS += --disable-static
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan HuntCONFIGURE_OPTIONS += --enable-threading
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan HuntCONFIGURE_OPTIONS += --enable-posix-sem
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCONFIGURE_OPTIONS += --with-pic
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntbuild: $(BUILD_32_and_64)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinstall: $(INSTALL_32_and_64)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunttest: $(TEST_32_and_64)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Huntinclude ../../make-rules/depend.mk
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt