Makefile revision 1273
6033N/A#
6033N/A# CDDL HEADER START
6033N/A#
6033N/A# The contents of this file are subject to the terms of the
6033N/A# Common Development and Distribution License (the "License").
6033N/A# You may not use this file except in compliance with the License.
6033N/A#
6033N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6033N/A# or http://www.opensolaris.org/os/licensing.
6033N/A# See the License for the specific language governing permissions
6033N/A# and limitations under the License.
6033N/A#
6033N/A# When distributing Covered Code, include this CDDL HEADER in each
6033N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6033N/A# If applicable, add the following below this CDDL HEADER, with the
6033N/A# fields enclosed by brackets "[]" replaced with your own identifying
6033N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6033N/A#
6033N/A# CDDL HEADER END
6033N/A#
6033N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
6033N/A#
6033N/Ainclude ../../make-rules/shared-macros.mk
6033N/A
6033N/ACOMPONENT_NAME= openexr
6033N/ACOMPONENT_VERSION= 1.6.1
6033N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6033N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
6033N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6033N/ACOMPONENT_ARCHIVE_HASH= \
6033N/A sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
6033N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
6033N/ACOMPONENT_BUGDB= library/openexr
6033N/A
6033N/Ainclude ../../make-rules/prep.mk
6033N/Ainclude ../../make-rules/configure.mk
6033N/Ainclude ../../make-rules/ips.mk
6033N/A
6033N/APATCH_LEVEL = 0
6033N/A
6033N/A# there seems to be no other way to enable large files support
6033N/ACXXFLAGS += $(CPP_LARGEFILES)
6033N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
6033N/ACXXFLAGS += $(CC_PIC)
6033N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
6033N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
6033N/A# (and beyond), there is a bug in the CC driver that is not correctly using
6033N/A# the '-library=Cstd,Crun' we are passing to it.
6033N/ALIBS += -lc -lm -lCstd -lCrun
6033N/A
6033N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
6033N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
6033N/ACONFIGURE_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
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