Makefile revision 380
70N/A#
70N/A# CDDL HEADER START
98N/A#
70N/A# The contents of this file are subject to the terms of the
70N/A# Common Development and Distribution License (the "License").
70N/A# You may not use this file except in compliance with the License.
70N/A#
70N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70N/A# or http://www.opensolaris.org/os/licensing.
70N/A# See the License for the specific language governing permissions
70N/A# and limitations under the License.
70N/A#
70N/A# When distributing Covered Code, include this CDDL HEADER in each
70N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70N/A# If applicable, add the following below this CDDL HEADER, with the
70N/A# fields enclosed by brackets "[]" replaced with your own identifying
70N/A# information: Portions Copyright [yyyy] [name of copyright owner]
70N/A#
70N/A# CDDL HEADER END
70N/A#
70N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/Ainclude ../../make-rules/shared-macros.mk
70N/A
70N/ACOMPONENT_NAME= ilmbase
70N/ACOMPONENT_VERSION= 1.0.1
70N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
70N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
70N/ACOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
128N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
70N/A
70N/Ainclude ../../make-rules/prep.mk
70N/Ainclude ../../make-rules/configure.mk
98N/Ainclude ../../make-rules/ips.mk
98N/A
128N/APATCH_LEVEL = 0
70N/A
98N/A# configure seems to add -nolibs, so we add that back to the C++ runtime and
90N/A# stdlib
70N/ACXXFLAGS += $(studio_CXXLIB_CSTD)
70N/A# there seems to be no other way to enable large files support
70N/ACXXFLAGS += $(CPP_LARGEFILES)
70N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
70N/ACXXFLAGS += $(CC_PIC)
98N/A# libtools seems to be forcing -nolibs, so we have to add back libc and libm
98N/ALDFLAGS += -lc -lm
98N/A
98N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
98N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
98N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
98N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
70N/A
70N/ACONFIGURE_OPTIONS += --disable-static
70N/ACONFIGURE_OPTIONS += --enable-threading
70N/ACONFIGURE_OPTIONS += --enable-posix-sem
70N/ACONFIGURE_OPTIONS += --with-pic
70N/A
70N/Abuild: $(BUILD_32_and_64)
70N/A
70N/Ainstall: $(INSTALL_32_and_64)
70N/A
70N/Atest: $(TEST_32_and_64)
70N/A
70N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
70N/A
70N/Ainclude ../../make-rules/depend.mk
70N/A
70N/A