aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/entt/CONTROL3
-rw-r--r--ports/entt/portfile.cmake18
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/entt/CONTROL b/ports/entt/CONTROL
new file mode 100644
index 000000000..4e4c44334
--- /dev/null
+++ b/ports/entt/CONTROL
@@ -0,0 +1,3 @@
+Source: entt
+Version: 2.4.2-1
+Description: Gaming meets modern C++ - a fast and reliable entity-component system and much more. <https://github.com/skypjack/entt>
diff --git a/ports/entt/portfile.cmake b/ports/entt/portfile.cmake
new file mode 100644
index 000000000..e67824162
--- /dev/null
+++ b/ports/entt/portfile.cmake
@@ -0,0 +1,18 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO skypjack/entt
+ REF v2.4.2
+ SHA512 fd532f2c180c328d396f557386b70e961c122af11e379ce57db3709d20345280ada200dadde136ae3557ad25daa944d8a86f7868cd0bedea78427d42c27d6e6d
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/src/entt
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include
+)
+
+# Handle copyright/readme/package files
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/entt RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/entt)