aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-15 14:10:57 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-15 14:18:39 -0700
commite78d213175e945d90a2cd69620c95b0141ee855c (patch)
tree70168dc0fad5f000394d3de2a7ad9affbc9a800d
parentd25de95dc134d44d3a24db517702138e8380374b (diff)
downloadvcpkg-e78d213175e945d90a2cd69620c95b0141ee855c.tar.gz
vcpkg-e78d213175e945d90a2cd69620c95b0141ee855c.zip
[tinyexr] Initial port
-rw-r--r--ports/tinyexr/CONTROL3
-rw-r--r--ports/tinyexr/copyright5
-rw-r--r--ports/tinyexr/portfile.cmake14
3 files changed, 22 insertions, 0 deletions
diff --git a/ports/tinyexr/CONTROL b/ports/tinyexr/CONTROL
new file mode 100644
index 000000000..8ac085f68
--- /dev/null
+++ b/ports/tinyexr/CONTROL
@@ -0,0 +1,3 @@
+Source: tinyexr
+Version: v0.9.5-d16ea6
+Description: Library to load and save OpenEXR(.exr) images
diff --git a/ports/tinyexr/copyright b/ports/tinyexr/copyright
new file mode 100644
index 000000000..975a80794
--- /dev/null
+++ b/ports/tinyexr/copyright
@@ -0,0 +1,5 @@
+3-clause BSD
+
+tinyexr uses miniz, which is developed by Rich Geldreich richgel99@gmail.com, and licensed under public domain.
+
+tinyexr tools uses stb, which is licensed under public domain: https://github.com/nothings/stb tinyexr uses some code from OpenEXR, which is licensed under 3-clause BSD license. \ No newline at end of file
diff --git a/ports/tinyexr/portfile.cmake b/ports/tinyexr/portfile.cmake
new file mode 100644
index 000000000..bf725cddd
--- /dev/null
+++ b/ports/tinyexr/portfile.cmake
@@ -0,0 +1,14 @@
+# header-only
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyexr-d16ea6347ae78bcee984fb57cab1f023aeda4fb0)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/syoyo/tinyexr/archive/d16ea6347ae78bcee984fb57cab1f023aeda4fb0.tar.gz"
+ FILENAME "tinyexr-v0.9.5-d16ea6.tar.gz"
+ SHA512 189ab04f6c5fb50c20ac0515a83ee16cba4b0f1bca004db2926281077868d1384e0c54f81768a54b76286a17c1b0c45a0b82acaf22b7ee843dc87c654b09e950
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(COPY ${SOURCE_PATH}/tinyexr.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyexr)