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