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