Makefile revision 4137
2521N/A#
2521N/A# CDDL HEADER START
2521N/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]
2521N/A#
2521N/A# CDDL HEADER END
2521N/A#
2521N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2521N/A#
2521N/Ainclude ../../make-rules/shared-macros.mk
2521N/A
2521N/ACOMPONENT_NAME= ilmbase
2521N/ACOMPONENT_VERSION= 1.0.1
2521N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2892N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
2892N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2521N/ACOMPONENT_ARCHIVE_HASH= \
2521N/A sha256:4f14fc7b26a37a391ec5f979697148e6774bc36bc052de26e40ffabe401e397d
2521N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
2892N/ACOMPONENT_BUGDB= library/openexr
2521N/A
2521N/ATPNO= 5574
2521N/A
2521N/Ainclude $(WS_MAKE_RULES)/prep.mk
2521N/Ainclude $(WS_MAKE_RULES)/configure.mk
2521N/Ainclude $(WS_MAKE_RULES)/ips.mk
2521N/A
2521N/APATCH_LEVEL = 0
2521N/A
2521N/A# there seems to be no other way to enable large files support
2521N/ACXXFLAGS += $(CPP_LARGEFILES)
2521N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
2521N/ACXXFLAGS += $(CC_PIC)
2521N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
2521N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
2521N/A# (and beyond), there is a bug in the CC driver that is not correctly using
2521N/A# the '-library=Cstd,Crun' we are passing to it.
2521N/ALIBS += -lc -lm -lCstd -lCrun
2521N/A
2521N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2521N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
2521N/ACONFIGURE_ENV += LIBS="$(LIBS)"
2521N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2663N/A
2663N/ACONFIGURE_OPTIONS += --disable-static
2663N/ACONFIGURE_OPTIONS += --enable-threading
2892N/ACONFIGURE_OPTIONS += --enable-posix-sem
2521N/ACONFIGURE_OPTIONS += --with-pic
2521N/A
2521N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2521N/A
2521N/Aconfigure: $(CONFIGURE_32_and_64)
2521N/A
2521N/Abuild: $(BUILD_32_and_64)
2521N/A
2521N/Ainstall: $(INSTALL_32_and_64)
2521N/A
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/math