[cgltf] Add new port (#6369)

This commit is contained in:
myd7349 2019-05-10 02:48:06 +08:00 committed by Phil Christensen
parent 4825f3ba61
commit 04616db27e
2 changed files with 19 additions and 0 deletions

3
ports/cgltf/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: cgltf
Version: 2019-04-30
Description: Single-file glTF 2.0 parser written in C99

View File

@ -0,0 +1,16 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jkuhlmann/cgltf
REF 093ef81bf63ec18ba6d9f61073da8881fb7619b3
SHA512 8801c13ee98780e845c7d28b27d523af86ab2a49499bbb235ee67a91dfacda3c7fddc9503d91918001a432267f890e82c2204a9c1462c64467034d334b0eadf2
HEAD_REF master
)
file(COPY ${SOURCE_PATH}/cgltf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)