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