aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/imath
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/imath')
-rw-r--r--vcpkg/ports/imath/portfile.cmake25
-rw-r--r--vcpkg/ports/imath/vcpkg.json17
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/imath/portfile.cmake b/vcpkg/ports/imath/portfile.cmake
new file mode 100644
index 0000000..5b2ad91
--- /dev/null
+++ b/vcpkg/ports/imath/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO AcademySoftwareFoundation/Imath
+ REF "v${VERSION}"
+ SHA512 492a624e4c0b59685d1ea58a3c2c63ddb4ba5ab9177c7d2a1b7e80be95d38ce02c74fafd2fe0982f7d21e5e75c938cc24a33a12d827dec32727cb8dcd5066450
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DIMATH_INSTALL_SYM_LINK=OFF
+ -DBUILD_TESTING=OFF
+ -DIMATH_INSTALL_PKG_CONFIG=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Imath)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/imath/vcpkg.json b/vcpkg/ports/imath/vcpkg.json
new file mode 100644
index 0000000..1f1623e
--- /dev/null
+++ b/vcpkg/ports/imath/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "imath",
+ "version": "3.2.2",
+ "description": "Imath is a C++ and Python library of 2D and 3D vector, matrix, and math operations for computer graphics.",
+ "homepage": "https://github.com/AcademySoftwareFoundation/Imath",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}