From 16219224773071ecf25f61a8eb7abf7364506278 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Wed, 11 Sep 2019 02:44:01 +0800 Subject: [sokol] Add new port (#8107) --- ports/sokol/CONTROL | 4 ++++ ports/sokol/portfile.cmake | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ports/sokol/CONTROL create mode 100644 ports/sokol/portfile.cmake diff --git a/ports/sokol/CONTROL b/ports/sokol/CONTROL new file mode 100644 index 000000000..4caa796cc --- /dev/null +++ b/ports/sokol/CONTROL @@ -0,0 +1,4 @@ +Source: sokol +Version: 2019-09-09 +Description: Minimal cross-platform standalone C headers +Homepage: https://github.com/floooh/sokol diff --git a/ports/sokol/portfile.cmake b/ports/sokol/portfile.cmake new file mode 100644 index 000000000..92eee036d --- /dev/null +++ b/ports/sokol/portfile.cmake @@ -0,0 +1,20 @@ +# header-only library + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO floooh/sokol + REF 425e906d2af8c976c30f7e925a303fea9f0bf879 + SHA512 4606735b9466637f3b676402cc2d7ef96e4152836c901d7a84039c52951aec27922726de21a537e0fef2d2218f48e3a9a3c32c3bc67076c10d199f067f50dad9 + HEAD_REF master +) + +file(GLOB SOKOL_INCLUDE_FILES ${SOURCE_PATH}/*.h) +file(COPY ${SOKOL_INCLUDE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(GLOB SOKOL_UTIL_INCLUDE_FILES ${SOURCE_PATH}/util/*.h) +file(COPY ${SOKOL_UTIL_INCLUDE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/util) + +# Handle copyright +configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) -- cgit v1.2.3