aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-09-11 02:44:01 +0800
committerPhil Christensen <philc@microsoft.com>2019-09-10 11:44:01 -0700
commit16219224773071ecf25f61a8eb7abf7364506278 (patch)
tree3d61cd6f78c908b063edc1d6c0e32cd50ff89f41
parentdce685696ae8450c6cf6c801012feeecc1d3119d (diff)
downloadvcpkg-16219224773071ecf25f61a8eb7abf7364506278.tar.gz
vcpkg-16219224773071ecf25f61a8eb7abf7364506278.zip
[sokol] Add new port (#8107)
-rw-r--r--ports/sokol/CONTROL4
-rw-r--r--ports/sokol/portfile.cmake20
2 files changed, 24 insertions, 0 deletions
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)