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