Makefile revision 1068
4049N/A#
2521N/A# CDDL HEADER START
5403N/A#
2521N/A# The contents of this file are subject to the terms of the
2521N/A# Common Development and Distribution License (the "License").
2521N/A# You may not use this file except in compliance with the License.
2521N/A#
2521N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2521N/A# or http://www.opensolaris.org/os/licensing.
2521N/A# See the License for the specific language governing permissions
2521N/A# and limitations under the License.
2521N/A#
2521N/A# When distributing Covered Code, include this CDDL HEADER in each
2521N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2521N/A# If applicable, add the following below this CDDL HEADER, with the
2521N/A# fields enclosed by brackets "[]" replaced with your own identifying
2521N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2892N/A#
5577N/A# CDDL HEADER END
2521N/A#
2521N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2892N/A#
2521N/Ainclude ../../make-rules/shared-macros.mk
2521N/A
5577N/ACOMPONENT_NAME= ilmbase
5577N/ACOMPONENT_VERSION= 1.0.1
5403N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5403N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
5403N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5403N/ACOMPONENT_ARCHIVE_HASH= \
2583N/A sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
2521N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
3998N/A
3998N/Ainclude ../../make-rules/prep.mk
3998N/Ainclude ../../make-rules/configure.mk
3998N/Ainclude ../../make-rules/ips.mk
3998N/A
3998N/APATCH_LEVEL = 0
3998N/A
3998N/A# there seems to be no other way to enable large files support
3998N/ACXXFLAGS += $(CPP_LARGEFILES)
3998N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
5577N/ACXXFLAGS += $(CC_PIC)
5577N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
3998N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
3998N/A# (and beyond), there is a bug in the CC driver that is not correctly using
3998N/A# the '-library=Cstd,Crun' we are passing to it.
3998N/ALIBS += -lc -lm -lCstd -lCrun
3998N/A
3998N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
3998N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
3998N/ACONFIGURE_ENV += LIBS="$(LIBS)"
2521N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2521N/A
5403N/ACONFIGURE_OPTIONS += --disable-static
2521N/ACONFIGURE_OPTIONS += --enable-threading
2521N/ACONFIGURE_OPTIONS += --enable-posix-sem
2521N/ACONFIGURE_OPTIONS += --with-pic
2521N/A
2583N/Abuild: $(BUILD_32_and_64)
2583N/A
2583N/Ainstall: $(INSTALL_32_and_64)
2583N/A
2583N/Atest: $(TEST_32_and_64)
2583N/A
2583N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2583N/A
2583N/Ainclude ../../make-rules/depend.mk
2583N/A
2583N/A