Makefile revision 3758
1516N/A#
581N/A# CDDL HEADER START
581N/A#
581N/A# The contents of this file are subject to the terms of the
581N/A# Common Development and Distribution License (the "License").
581N/A# You may not use this file except in compliance with the License.
581N/A#
581N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
581N/A# or http://www.opensolaris.org/os/licensing.
581N/A# See the License for the specific language governing permissions
581N/A# and limitations under the License.
581N/A#
581N/A# When distributing Covered Code, include this CDDL HEADER in each
581N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
581N/A# If applicable, add the following below this CDDL HEADER, with the
581N/A# fields enclosed by brackets "[]" replaced with your own identifying
581N/A# information: Portions Copyright [yyyy] [name of copyright owner]
581N/A#
581N/A# CDDL HEADER END
581N/A#
581N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
581N/A#
2318N/Ainclude ../../make-rules/shared-macros.mk
581N/A
581N/ACOMPONENT_NAME= openexr
581N/ACOMPONENT_VERSION= 1.6.1
581N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1715N/ACOMPONENT_PROJECT_URL= http://www.openexr.com/
581N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1685N/ACOMPONENT_ARCHIVE_HASH= \
1685N/A sha256:c616906ab958de9c37bb86ca7547cfedbdfbad5e1ca2a4ab98983c9afa6a5950
1832N/ACOMPONENT_ARCHIVE_URL= http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)
581N/ACOMPONENT_BUGDB= library/openexr
581N/A
1895N/ATPNO= 10771
1715N/A
581N/Ainclude ../../make-rules/prep.mk
1685N/Ainclude ../../make-rules/configure.mk
1685N/Ainclude ../../make-rules/ips.mk
1685N/A
1685N/APATCH_LEVEL = 0
1685N/A
1685N/A# there seems to be no other way to enable large files support
1715N/ACXXFLAGS += $(CPP_LARGEFILES)
1832N/A
1715N/A# it seems that --with-pic doesn't get PIC flags to the C++ compiler
1715N/ACXXFLAGS += $(CC_PIC)
1715N/A
1715N/Aifneq (, $(findstring 12.4,$(CXX)))
1715N/A CXXFLAGS += -template=extdef
1715N/Aendif
1685N/A
1685N/A# libtools seems to be forcing -nolibs, so we have to add back libc, libm,
1685N/A# libCstd and libCrun. The last two are needed because with Studio 12.2
1685N/A# (and beyond), there is a bug in the CC driver that is not correctly using
1715N/A# the '-library=Cstd,Crun' we are passing to it.
1715N/ALIBS += -lc -lm -lCstd -lCrun
1715N/A
1715N/ACOMPONENT_TEST_TRANSFORMS += \
1715N/A '-e "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g"'
1715N/A
1715N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
1715N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
1715N/ACONFIGURE_ENV += LIBS="$(LIBS)"
1685N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
1685N/A
1715N/ACONFIGURE_OPTIONS += --disable-static
1715N/ACONFIGURE_OPTIONS += --enable-threading
1895N/ACONFIGURE_OPTIONS += --enable-posix-sem
1685N/ACONFIGURE_OPTIONS += --with-pic
2318N/A
581N/APROTOPKGCONFIGDIR.32 = $(PROTOUSRLIBDIR)/pkgconfig
1685N/APROTOPKGCONFIGDIR.64 = $(PROTOUSRLIBDIR64)/pkgconfig
1895N/A
581N/ACOMPONENT_POST_INSTALL_ACTION = \
1685N/A ( cd $(PROTOPKGCONFIGDIR.$(BITS)) ; \
2318N/A $(GSED) -i "s^-L$(CONFIGURE_LIBDIR.$(BITS))^^g" OpenEXR.pc )
1685N/A
1685N/AASLR_MODE = $(ASLR_ENABLE)
1685N/A
1685N/Aconfigure: $(CONFIGURE_32_and_64)
1685N/A
1895N/Abuild: $(BUILD_32_and_64)
1685N/A
2261N/Ainstall: $(INSTALL_32_and_64)
2261N/A
2261N/Atest: $(TEST_32_and_64)
2261N/A
1685N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1685N/A
1685N/Ainclude ../../make-rules/depend.mk
1685N/A