Makefile revision 749
469N/A#
469N/A# CDDL HEADER START
1339N/A#
469N/A# The contents of this file are subject to the terms of the
469N/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#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
469N/Ainclude ../../make-rules/shared-macros.mk
469N/A
469N/ACOMPONENT_NAME= ilmbase
469N/ACOMPONENT_VERSION= 1.0.1
493N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
469N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
970N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
977N/ACOMPONENT_ARCHIVE_HASH= sha1:143adc547be83c6df75831ae957eef4b2706c9c0
970N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
970N/A
1339N/Ainclude ../../make-rules/prep.mk
1339N/Ainclude ../../make-rules/configure.mk
1339N/Ainclude ../../make-rules/ips.mk
469N/A
1068N/APATCH_LEVEL = 0
469N/A
911N/A# configure seems to add -nolibs, so we add that back to the C++ runtime and
1068N/A# stdlib
1068N/ACXXFLAGS += $(studio_CXXLIB_CSTD)
911N/A# there seems to be no other way to enable large files support
469N/ACXXFLAGS += $(CPP_LARGEFILES)
469N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
469N/ACXXFLAGS += $(CC_PIC)
493N/A# libtools seems to be forcing -nolibs, so we have to add back libc and libm
469N/ALDFLAGS += -lc -lm
469N/A
493N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
493N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
469N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
469N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
493N/A
469N/ACONFIGURE_OPTIONS += --disable-static
469N/ACONFIGURE_OPTIONS += --enable-threading
469N/ACONFIGURE_OPTIONS += --enable-posix-sem
493N/ACONFIGURE_OPTIONS += --with-pic
912N/A
970N/Abuild: $(BUILD_32_and_64)
970N/A
970N/Ainstall: $(INSTALL_32_and_64)
912N/A
912N/Atest: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk