Makefile revision 844
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# The contents of this file are subject to the terms of the
26e2a07a0b6a3b1eccef82ba31270d0c54ad4f06Mark Andrews# Common Development and Distribution License (the "License").
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You may not use this file except in compliance with the License.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# See the License for the specific language governing permissions
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
1f21a0f32f64cf907cec6e4052716caef36dd25fMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafssoninclude ../../make-rules/shared-macros.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_NAME= ilmbase
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_VERSION= 1.0.1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PROJECT_URL= http://www.openexr.com/
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_HASH= \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/configure.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/ips.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPATCH_LEVEL = 0
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# there seems to be no other way to enable large files support
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCXXFLAGS += $(CPP_LARGEFILES)
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# it seems that --with-pic doesn't get PIC flags to the C++ compiler
26e2a07a0b6a3b1eccef82ba31270d0c54ad4f06Mark AndrewsCXXFLAGS += $(CC_PIC)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# libCstd and libCrun. The last two are needed because with Studio 12.2
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# (and beyond), there is a bug in the CC driver that is not correctly using
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# the '-library=Cstd,Crun' we are passing to it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLIBS += -lc -lm -lCstd -lCrun
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += LIBS="$(LIBS)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --disable-static
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --enable-threading
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --enable-posix-sem
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-pic
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinbuild: $(BUILD_32_and_64)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(INSTALL_32_and_64)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
a268fec7f54a89a0772a91da0511c8eae09e6157Mark Andrewstest: $(TEST_32_and_64)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c6d4f781529d2f28693546b25b2967d44ec89e60Mark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/depend.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein