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