Makefile revision 5680
7bebe46c240b554f47faeed19186123896281967jc# CDDL HEADER START
7bebe46c240b554f47faeed19186123896281967jc# The contents of this file are subject to the terms of the
7bebe46c240b554f47faeed19186123896281967jc# Common Development and Distribution License (the "License").
7bebe46c240b554f47faeed19186123896281967jc# You may not use this file except in compliance with the License.
7bebe46c240b554f47faeed19186123896281967jc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7bebe46c240b554f47faeed19186123896281967jc# See the License for the specific language governing permissions
7bebe46c240b554f47faeed19186123896281967jc# and limitations under the License.
7bebe46c240b554f47faeed19186123896281967jc# When distributing Covered Code, include this CDDL HEADER in each
7bebe46c240b554f47faeed19186123896281967jc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7bebe46c240b554f47faeed19186123896281967jc# If applicable, add the following below this CDDL HEADER, with the
7bebe46c240b554f47faeed19186123896281967jc# fields enclosed by brackets "[]" replaced with your own identifying
7bebe46c240b554f47faeed19186123896281967jc# information: Portions Copyright [yyyy] [name of copyright owner]
7bebe46c240b554f47faeed19186123896281967jc# CDDL HEADER END
7bebe46c240b554f47faeed19186123896281967jc# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
7bebe46c240b554f47faeed19186123896281967jc sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
7bebe46c240b554f47faeed19186123896281967jcCOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
7bebe46c240b554f47faeed19186123896281967jc# there seems to be no other way to enable large files support
7bebe46c240b554f47faeed19186123896281967jc# it seems that --with-pic doesn't get PIC flags to the C++ compiler
7bebe46c240b554f47faeed19186123896281967jc# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
7bebe46c240b554f47faeed19186123896281967jc# libCstd and libCrun. The last two are needed because with Studio 12.2
7bebe46c240b554f47faeed19186123896281967jc# (and beyond), there is a bug in the CC driver that is not correctly using
7bebe46c240b554f47faeed19186123896281967jc# the '-library=Cstd,Crun' we are passing to it.
7bebe46c240b554f47faeed19186123896281967jc '-e "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/libtool/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/-m32/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/-m64/d"' \
7bebe46c240b554f47faeed19186123896281967jc '-e "/DEPDIR=/d"'
7bebe46c240b554f47faeed19186123896281967jc $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc )