Makefile revision 1258
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson#
665a24faf6b3711e4012ac02ae5f0981c093ac1eTinderbox User# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# You may not use this file except in compliance with the License.
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# or http://www.opensolaris.org/os/licensing.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews#
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../../make-rules/shared-macros.mk
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= openexr
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_VERSION= 1.6.1
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PROJECT_URL= http://www.openexr.com/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
b46346eb3026ba4bebc093bc93cfe159131e541eTinderbox UserCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_BUGDB= library/openexr
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../../make-rules/prep.mk
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox Userinclude ../../make-rules/configure.mk
b46346eb3026ba4bebc093bc93cfe159131e541eTinderbox Userinclude ../../make-rules/ips.mk
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPATCH_LEVEL = 0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# there seems to be no other way to enable large files support
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox UserCXXFLAGS += $(CPP_LARGEFILES)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# it seems that --with-pic doesn't get PIC flags to the C++ compiler
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCXXFLAGS += $(CC_PIC)
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# libCstd and libCrun. The last two are needed because with Studio 12.2
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# (and beyond), there is a bug in the CC driver that is not correctly using
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User# the '-library=Cstd,Crun' we are passing to it.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLIBS += -lc -lm -lCstd -lCrun
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsCONFIGURE_ENV += LIBS="$(LIBS)"
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox UserCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --disable-static
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-threading
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --enable-posix-sem
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-pic
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User
03c0efc6892ef2ed17338b2ecbb2c5f23fbad0c9Tinderbox Userbuild: $(BUILD_32_and_64)
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox Userinstall: $(INSTALL_32_and_64)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeintest: $(TEST_32_and_64)
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../../make-rules/depend.mk
3afd0ff6628df1e7e20161e4afa99469a1195a5bTinderbox User