[opencolorio] Install OpenColorIOConfig.cmake and change version scheme to semver (#15764)

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
ras0219 2021-01-19 22:11:26 -08:00 committed by GitHub
parent 4ed2cfd1a3
commit e9650349fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 13 deletions

View File

@ -4194,7 +4194,7 @@
},
"opencolorio": {
"baseline": "1.1.1",
"port-version": 4
"port-version": 5
},
"opencolorio-tools": {
"baseline": "1.1.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c011ef89b247b0bc54a08016fe23793defd398a5",
"version-semver": "1.1.1",
"port-version": 5
},
{
"git-tree": "6f60ef16979a651554f0b59663f4180229b5c662",
"version-string": "1.1.1",

View File

@ -1,6 +0,0 @@
Source: opencolorio
Version: 1.1.1
Port-Version: 4
Homepage: https://opencolorio.org/
Description: OpenColorIO (OCIO) is a complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation. OCIO provides a straightforward and consistent user experience across all supporting applications while allowing for sophisticated back-end configuration options suitable for high-end production usage. OCIO is compatible with the Academy Color Encoding Specification (ACES) and is LUT-format agnostic, supporting many popular formats.
Build-Depends: glew[core], freeglut[core], lcms[core], yaml-cpp[core], tinyxml[core]

View File

@ -51,14 +51,23 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake")
vcpkg_copy_pdbs()
# Clean redundant files
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(READ "${CURRENT_PACKAGES_DIR}/OpenColorIOConfig.cmake" _contents)
string(REPLACE
[=[get_filename_component(OpenColorIO_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)]=]
[=[get_filename_component(OpenColorIO_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(OpenColorIO_DIR "${OpenColorIO_DIR}" PATH)
get_filename_component(OpenColorIO_DIR "${OpenColorIO_DIR}" PATH)]=]
_contents
"${_contents}")
string(REPLACE "/cmake/OpenColorIO.cmake" "/share/opencolorio/OpenColorIO.cmake" _contents "${_contents}")
file(WRITE "${CURRENT_PACKAGES_DIR}/share/opencolorio/OpenColorIOConfig.cmake" "${_contents}")
# CMake Configs leftovers
file(REMOVE
${CURRENT_PACKAGES_DIR}/OpenColorIOConfig.cmake
# Clean redundant files
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share
${CURRENT_PACKAGES_DIR}/debug/OpenColorIOConfig.cmake
${CURRENT_PACKAGES_DIR}/OpenColorIOConfig.cmake
)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

View File

@ -0,0 +1,29 @@
{
"name": "opencolorio",
"version-semver": "1.1.1",
"port-version": 5,
"description": "OpenColorIO (OCIO) is a complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation. OCIO provides a straightforward and consistent user experience across all supporting applications while allowing for sophisticated back-end configuration options suitable for high-end production usage. OCIO is compatible with the Academy Color Encoding Specification (ACES) and is LUT-format agnostic, supporting many popular formats.",
"homepage": "https://opencolorio.org/",
"dependencies": [
{
"name": "freeglut",
"default-features": false
},
{
"name": "glew",
"default-features": false
},
{
"name": "lcms",
"default-features": false
},
{
"name": "tinyxml",
"default-features": false
},
{
"name": "yaml-cpp",
"default-features": false
}
]
}