aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2021-01-19 22:11:26 -0800
committerGitHub <noreply@github.com>2021-01-19 22:11:26 -0800
commite9650349fb4a1d3d6fcf5ab8728d5133c7b6d1f1 (patch)
tree05b4ce2c0cd9fb279741ffdaca95ef04682c22ff
parent4ed2cfd1a339c44d608c918738fb9c81e64d3462 (diff)
downloadvcpkg-e9650349fb4a1d3d6fcf5ab8728d5133c7b6d1f1.tar.gz
vcpkg-e9650349fb4a1d3d6fcf5ab8728d5133c7b6d1f1.zip
[opencolorio] Install OpenColorIOConfig.cmake and change version scheme to semver (#15764)
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
-rw-r--r--port_versions/baseline.json2
-rw-r--r--port_versions/o-/opencolorio.json5
-rw-r--r--ports/opencolorio/CONTROL6
-rw-r--r--ports/opencolorio/portfile.cmake21
-rw-r--r--ports/opencolorio/vcpkg.json29
5 files changed, 50 insertions, 13 deletions
diff --git a/port_versions/baseline.json b/port_versions/baseline.json
index 7585d297a..55ad5a2dc 100644
--- a/port_versions/baseline.json
+++ b/port_versions/baseline.json
@@ -4194,7 +4194,7 @@
},
"opencolorio": {
"baseline": "1.1.1",
- "port-version": 4
+ "port-version": 5
},
"opencolorio-tools": {
"baseline": "1.1.1",
diff --git a/port_versions/o-/opencolorio.json b/port_versions/o-/opencolorio.json
index 367a8489c..f4d3afa7d 100644
--- a/port_versions/o-/opencolorio.json
+++ b/port_versions/o-/opencolorio.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "c011ef89b247b0bc54a08016fe23793defd398a5",
+ "version-semver": "1.1.1",
+ "port-version": 5
+ },
+ {
"git-tree": "6f60ef16979a651554f0b59663f4180229b5c662",
"version-string": "1.1.1",
"port-version": 4
diff --git a/ports/opencolorio/CONTROL b/ports/opencolorio/CONTROL
deleted file mode 100644
index 9380823b2..000000000
--- a/ports/opencolorio/CONTROL
+++ /dev/null
@@ -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] \ No newline at end of file
diff --git a/ports/opencolorio/portfile.cmake b/ports/opencolorio/portfile.cmake
index 6d970d3a6..dcbac39b2 100644
--- a/ports/opencolorio/portfile.cmake
+++ b/ports/opencolorio/portfile.cmake
@@ -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) \ No newline at end of file
diff --git a/ports/opencolorio/vcpkg.json b/ports/opencolorio/vcpkg.json
new file mode 100644
index 000000000..e942e139e
--- /dev/null
+++ b/ports/opencolorio/vcpkg.json
@@ -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
+ }
+ ]
+}