Makefile revision 1569
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# CDDL HEADER START
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# The contents of this file are subject to the terms of the
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Common Development and Distribution License (the "License").
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# You may not use this file except in compliance with the License.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
cfeb51c88f60cb31c8862f0fa325d7d1c4d22f8avboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# or http://www.opensolaris.org/os/licensing.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# See the License for the specific language governing permissions
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# and limitations under the License.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# When distributing Covered Code, include this CDDL HEADER in each
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# If applicable, add the following below this CDDL HEADER, with the
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# CDDL HEADER END
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync#
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncinclude ../../make-rules/shared-macros.mk
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncCOMPONENT_NAME= ilmbase
79a32911c902685a8fafa06c4b9fd7f277994d93vboxsyncCOMPONENT_VERSION= 1.0.1
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCOMPONENT_PROJECT_URL= http://www.openexr.com/
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCOMPONENT_ARCHIVE_HASH= \
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCOMPONENT_BUGDB= library/openexr
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncinclude ../../make-rules/prep.mk
65ba0abe3ecfd47b318d49a3c37a9b48d1f6904evboxsyncinclude ../../make-rules/configure.mk
79a32911c902685a8fafa06c4b9fd7f277994d93vboxsyncinclude ../../make-rules/ips.mk
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsyncPATCH_LEVEL = 0
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsync
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsync# there seems to be no other way to enable large files support
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsyncCXXFLAGS += $(CPP_LARGEFILES)
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsync# it seems that --with-pic doesn't get PIC flags to the C++ compiler
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsyncCXXFLAGS += $(CC_PIC)
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsync# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
5a062c1c10e75283bed9bd16145610874ec5bacdvboxsync# libCstd and libCrun. The last two are needed because with Studio 12.2
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# (and beyond), there is a bug in the CC driver that is not correctly using
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# the '-library=Cstd,Crun' we are passing to it.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncLIBS += -lc -lm -lCstd -lCrun
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCONFIGURE_ENV += LIBS="$(LIBS)"
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCONFIGURE_OPTIONS += --disable-static
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncCONFIGURE_OPTIONS += --enable-threading
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncCONFIGURE_OPTIONS += --enable-posix-sem
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncCONFIGURE_OPTIONS += --with-pic
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncbuild: $(BUILD_32_and_64)
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncinstall: $(INSTALL_32_and_64)
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsynctest: $(TEST_32_and_64)
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncinclude ../../make-rules/depend.mk
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync