vim: update to 9.1.0984
[oi-userland.git] / components / library / openexr / Makefile
blob3c23232c79eb2196b9058c22ca195eb0fa41b456
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2022, Daniel Chan
25 # Copyright 2023, Niklas Poslovski
27 BUILD_STYLE= cmake
28 USE_DEFAULT_TEST_TRANSFORMS= yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= openexr
32 COMPONENT_VERSION= 3.2.4
33 COMPONENT_SUMMARY= OpenEXR header files and libraries used to read and write OpenEXR images
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_PROJECT_URL= https://www.openexr.com/
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
37 COMPONENT_ARCHIVE_HASH= sha256:81e6518f2c4656fdeaf18a018f135e96a96e7f66dbe1c1f05860dd94772176cc
38 COMPONENT_ARCHIVE_URL= https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
39 COMPONENT_FMRI= library/openexr
40 COMPONENT_CLASSIFICATION=System/Libraries
41 COMPONENT_LICENSE= BSD
42 COMPONENT_LICENSE_FILE= LICENSE.md
44 include $(WS_MAKE_RULES)/common.mk
46 CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(USRDIR)
47 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=None
48 CMAKE_OPTIONS += -DOPENEXR_FORCE_INTERNAL_IMATH=OFF
49 CMAKE_OPTIONS += -DOPENEXR_FORCE_INTERNAL_ZLIB=OFF
50 CMAKE_OPTIONS += -DOPENEXR_USE_DEFAULT_VISIBILITY=OFF
51 CMAKE_OPTIONS += -DCMAKE_INSTALL_BINDIR=bin/$(MACH64)
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
55 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
56 REQUIRED_PACKAGES += library/imath
57 REQUIRED_PACKAGES += system/library
58 REQUIRED_PACKAGES += system/library/math