diff --git a/ports/tinygltf/portfile.cmake b/ports/tinygltf/portfile.cmake index f9d1d4f25f..bf61084be6 100644 --- a/ports/tinygltf/portfile.cmake +++ b/ports/tinygltf/portfile.cmake @@ -1,19 +1,19 @@ -# Header-only library -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO syoyo/tinygltf - REF "v${VERSION}" - SHA512 3305c94aaa6f2b82ac2533bb17672b0ddd0239c413acc87b428be50dc0f9bcd4c300f6ed7f3077424ccc8237e4e75f1194d311d21f799809e0220eeb3f8900a4 - HEAD_REF master -) - -# Put the licence file where vcpkg expects it -# Copy the tinygltf header files and fix the path to json -vcpkg_replace_string("${SOURCE_PATH}/tiny_gltf.h" "#include \"json.hpp\"" "#include ") -file(INSTALL - "${SOURCE_PATH}/tiny_gltf.h" - "${SOURCE_PATH}/tiny_gltf_v3.h" - "${SOURCE_PATH}/tinygltf_json.h" - DESTINATION "${CURRENT_PACKAGES_DIR}/include" -) -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO syoyo/tinygltf + REF "v${VERSION}" + SHA512 b9a689f25284206969f31ba382abd06cd4ed69ee6a118af3484aaa17b68aebefddc97a4e722e3bde8fa39b737677cb09cbd3d3e6f2a573ac4ba1fb718478b79a + HEAD_REF master +) + +# Put the licence file where vcpkg expects it +# Copy the tinygltf header files and fix the path to json +vcpkg_replace_string("${SOURCE_PATH}/tiny_gltf.h" "#include \"json.hpp\"" "#include ") +file(INSTALL + "${SOURCE_PATH}/tiny_gltf.h" + "${SOURCE_PATH}/tiny_gltf_v3.h" + "${SOURCE_PATH}/tinygltf_json.h" + DESTINATION "${CURRENT_PACKAGES_DIR}/include" +) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/tinygltf/vcpkg.json b/ports/tinygltf/vcpkg.json index 67aa16cfdb..9c5d4528bf 100644 --- a/ports/tinygltf/vcpkg.json +++ b/ports/tinygltf/vcpkg.json @@ -1,8 +1,10 @@ { "name": "tinygltf", "version": "3.0.0", - "description": "A header only C++11 glTF 2.0 library.", + "port-version": 1, + "description": "A header-only glTF 2.0 library with a C++11 v2 API and a C++17 v3 API.", "homepage": "https://github.com/syoyo/tinygltf", + "license": "MIT AND BSL-1.0 AND Zlib", "dependencies": [ "nlohmann-json", "stb" diff --git a/versions/baseline.json b/versions/baseline.json index 1aa3fc302e..4649f9f9eb 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -10234,7 +10234,7 @@ }, "tinygltf": { "baseline": "3.0.0", - "port-version": 0 + "port-version": 1 }, "tinynpy": { "baseline": "1.1", diff --git a/versions/t-/tinygltf.json b/versions/t-/tinygltf.json index d7f408e216..e4d2a4ec38 100644 --- a/versions/t-/tinygltf.json +++ b/versions/t-/tinygltf.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "9c983959bc083131a4f5ca06ea51178a3e5a04b1", + "version": "3.0.0", + "port-version": 1 + }, { "git-tree": "43cde6d4cfbe0817d997fb8374f6c89d4959601b", "version": "3.0.0",