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