Makefile revision 561
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# CDDL HEADER START
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# The contents of this file are subject to the terms of the
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# Common Development and Distribution License (the "License").
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# You may not use this file except in compliance with the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# or http://www.opensolaris.org/os/licensing.
cfe294850faf3d3dbcc68828f31c20532ea57557Christian Maeder# See the License for the specific language governing permissions
679d3f541f7a9ede4079e045f7758873bb901872Till Mossakowski# and limitations under the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder#
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder# CDDL HEADER END
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder#
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder#
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maederinclude ../../make-rules/shared-macros.mk
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_NAME= ilmbase
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_VERSION= 1.0.1
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_PROJECT_URL= http://www.openexr.com/
409578f7f6dbee1e10dd1c969328bb92dabd087dChristian MaederCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian MaederCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder
1ede103929a67cd052386101043ca0244f0dcf43Christian Maederinclude ../../make-rules/prep.mk
1ede103929a67cd052386101043ca0244f0dcf43Christian Maederinclude ../../make-rules/configure.mk
1ede103929a67cd052386101043ca0244f0dcf43Christian Maederinclude ../../make-rules/ips.mk
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder
1ede103929a67cd052386101043ca0244f0dcf43Christian MaederPATCH_LEVEL = 0
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder# configure seems to add -nolibs, so we add that back to the C++ runtime and
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder# stdlib
50dce6b011347f92377adb8bbabaeeb80975e86dChristian MaederCXXFLAGS += $(studio_CXXLIB_CSTD)
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder# there seems to be no other way to enable large files support
50dce6b011347f92377adb8bbabaeeb80975e86dChristian MaederCXXFLAGS += $(CPP_LARGEFILES)
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder# it seems that --with-pic doesn't get PIC flags to the C++ compiler
50dce6b011347f92377adb8bbabaeeb80975e86dChristian MaederCXXFLAGS += $(CC_PIC)
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowski# libtools seems to be forcing -nolibs, so we have to add back libc and libm
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiLDFLAGS += -lc -lm
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowski
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
ab0f0653d83bd3ebde0f5287e2ea4b1cdc676b5dChristian MaederCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowski
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian MaederCONFIGURE_OPTIONS += --disable-static
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_OPTIONS += --enable-threading
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_OPTIONS += --enable-posix-sem
2b4130336e941b7d01c78a6da55449a4c6eca609Till MossakowskiCONFIGURE_OPTIONS += --with-pic
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowski
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowskibuild: $(BUILD_32_and_64)
2b4130336e941b7d01c78a6da55449a4c6eca609Till Mossakowski
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maederinstall: $(INSTALL_32_and_64)
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maeder
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maedertest: $(TEST_32_and_64)
1f086d5155f47fdad9a0de4e46bbebb2c4b33d30Christian Maeder
1ede103929a67cd052386101043ca0244f0dcf43Christian MaederBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder
1ede103929a67cd052386101043ca0244f0dcf43Christian Maederinclude ../../make-rules/depend.mk
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder
1ede103929a67cd052386101043ca0244f0dcf43Christian Maeder