From 96b310c0ea5fd2bff398fb8b17e35900154a3db4 Mon Sep 17 00:00:00 2001 From: Luke Philpot Date: Mon, 22 Apr 2019 12:04:14 +1000 Subject: tinygltf port file --- ports/tinygltf/CONTROL | 4 ++++ ports/tinygltf/portfile.cmake | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 ports/tinygltf/CONTROL create mode 100644 ports/tinygltf/portfile.cmake diff --git a/ports/tinygltf/CONTROL b/ports/tinygltf/CONTROL new file mode 100644 index 000000000..63c23ddaf --- /dev/null +++ b/ports/tinygltf/CONTROL @@ -0,0 +1,4 @@ +Source: tinygltf +Version: 2.2.0 +Description: A header only C++11 glTF 2.0 library. +Build-Depends: stb, nlohmann-json, glew, glfw3 \ No newline at end of file diff --git a/ports/tinygltf/portfile.cmake b/ports/tinygltf/portfile.cmake new file mode 100644 index 000000000..f78f2b017 --- /dev/null +++ b/ports/tinygltf/portfile.cmake @@ -0,0 +1,17 @@ +# Header-only library +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO syoyo/tinygltf + REF v2.2.0 + SHA512 5a63fab31dd49e25fe2a32f66bbcae5a6340ced403dc51de65ee7363bb9b358e546bbecd116a53062099f90a2579a5178dcc5c4268d4b99c0afe30fac20ad7cf + HEAD_REF master +) + +# Put the licence file where vcpkg expects it +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinygltf/LICENSE) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinygltf/LICENSE ${CURRENT_PACKAGES_DIR}/share/tinygltf/copyright) + +# Copy the tinygltf header files +file(COPY ${SOURCE_PATH}/tiny_gltf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) -- cgit v1.2.3 From b2433c8848dc8bd75a176c9bf9adf8a81b31304d Mon Sep 17 00:00:00 2001 From: Luke Philpot Date: Mon, 22 Apr 2019 12:08:36 +1000 Subject: remove unneeded deps --- ports/tinygltf/CONTROL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/tinygltf/CONTROL b/ports/tinygltf/CONTROL index 63c23ddaf..4baf2cf21 100644 --- a/ports/tinygltf/CONTROL +++ b/ports/tinygltf/CONTROL @@ -1,4 +1,4 @@ Source: tinygltf Version: 2.2.0 Description: A header only C++11 glTF 2.0 library. -Build-Depends: stb, nlohmann-json, glew, glfw3 \ No newline at end of file +Build-Depends: stb, nlohmann-json \ No newline at end of file -- cgit v1.2.3