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