aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinyexr/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/tinyexr/portfile.cmake')
-rw-r--r--vcpkg/ports/tinyexr/portfile.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/tinyexr/portfile.cmake b/vcpkg/ports/tinyexr/portfile.cmake
new file mode 100644
index 0000000..fb7437f
--- /dev/null
+++ b/vcpkg/ports/tinyexr/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO syoyo/tinyexr
+ REF "v${VERSION}"
+ SHA512 74b9b72f58198ebf09c41f1bea04d24f9c13996411cb55f21ddb7732646ca9ddee7cf1fd538888a26d670fa73e168ad901c2a92fb23c7839a2821a79855a2350
+ HEAD_REF master
+ PATCHES
+ fixtargets.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DTINYEXR_BUILD_SAMPLE=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)