aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Tassoux <rt2@rt2.fr>2018-01-04 04:45:30 +0100
committerRémy Tassoux <rt2@rt2.fr>2018-01-04 04:45:30 +0100
commited1304b21ddb93a6de8d7acff499dd5836b3b7d9 (patch)
tree910846c8e988e0d78f4ffbee46a7ee80a489efb0
parentb899067edba25c5464a96a5dd2c5cfac5901b785 (diff)
downloadvcpkg-ed1304b21ddb93a6de8d7acff499dd5836b3b7d9.tar.gz
vcpkg-ed1304b21ddb93a6de8d7acff499dd5836b3b7d9.zip
[Sol] Initial port
-rw-r--r--ports/sol/CONTROL3
-rw-r--r--ports/sol/portfile.cmake25
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/sol/CONTROL b/ports/sol/CONTROL
new file mode 100644
index 000000000..f1bd57fa3
--- /dev/null
+++ b/ports/sol/CONTROL
@@ -0,0 +1,3 @@
+Source: sol
+Version: 2.18.7
+Description: Sol v2.0 - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great
diff --git a/ports/sol/portfile.cmake b/ports/sol/portfile.cmake
new file mode 100644
index 000000000..83d59becc
--- /dev/null
+++ b/ports/sol/portfile.cmake
@@ -0,0 +1,25 @@
+# Common Ambient Variables:
+# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
+# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
+# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
+# PORT = current port name (zlib, etc)
+# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
+# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
+# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
+# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
+# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
+#
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ThePhD/sol2
+ REF v2.18.7
+ SHA512 747dbcba2da4e44bfb365c0fd0c8df916d0e5d0ddbaa9df514838d84a8fd4261c87db7d14d9683b708b874cd6a73586e7854d9a784743a737858b73acdd78f1c
+ HEAD_REF develop
+)
+
+file(INSTALL ${SOURCE_PATH}/single/sol/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sol RENAME copyright)