aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/opencolorio/CONTROL6
-rw-r--r--ports/opencolorio/portfile.cmake21
-rw-r--r--ports/opencolorio/vcpkg.json29
3 files changed, 44 insertions, 12 deletions
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
+ }
+ ]
+}