2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2022 Daniel Chan
16 USE_PARALLEL_BUILD
= yes
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= OpenColorIO
22 COMPONENT_VERSION
= 2.4.1
23 COMPONENT_SUMMARY
= A color management framework for visual effects and animation
24 COMPONENT_PROJECT_URL
= https
://github.com
/AcademySoftwareFoundation
/$(COMPONENT_NAME
)
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= sha256
:d4eb15408b33dffd6ba0bba9a53328085b40bdd9319fa3d0d7348d06a8cbe842
28 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
29 COMPONENT_FMRI
= library
/opencolorio
30 COMPONENT_CLASSIFICATION
= System
/Libraries
31 COMPONENT_LICENSE
= BSD-3-Clause
32 COMPONENT_LICENSE_FILE
= LICENSE
34 include $(WS_MAKE_RULES
)/common.mk
36 # Make pkglint happy by avoiding default paths in rpath
37 CMAKE_OPTIONS
+= -DCMAKE_SKIP_RPATH
=TRUE
39 # Make sure testing finds built libOpenColorIO
40 COMPONENT_TEST_ENV
+= LD_LIBRARY_PATH
=$(BUILD_DIR_
$(BITS
))/src
/OpenColorIO
42 # Manually added optional build dependencies
43 PYTHON_REQUIRED_PACKAGES
+= library
/python
/pybind11
45 # Auto-generated dependencies
46 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
47 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
48 REQUIRED_PACKAGES
+= library
/expat
49 REQUIRED_PACKAGES
+= library
/imath
50 REQUIRED_PACKAGES
+= library
/lcms2
51 REQUIRED_PACKAGES
+= library
/minizip-ng
52 REQUIRED_PACKAGES
+= library
/openexr
53 REQUIRED_PACKAGES
+= library
/pystring
54 REQUIRED_PACKAGES
+= library
/yaml-cpp-8
55 REQUIRED_PACKAGES
+= system
/library
56 REQUIRED_PACKAGES
+= system
/library
/math