aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/plog/CONTROL3
-rw-r--r--ports/plog/portfile.cmake17
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/plog/CONTROL b/ports/plog/CONTROL
new file mode 100644
index 000000000..091778688
--- /dev/null
+++ b/ports/plog/CONTROL
@@ -0,0 +1,3 @@
+Source: plog
+Version: 1.1.3
+Description: Portable, simple and extensible C++ logging library.
diff --git a/ports/plog/portfile.cmake b/ports/plog/portfile.cmake
new file mode 100644
index 000000000..5cc0dfbd4
--- /dev/null
+++ b/ports/plog/portfile.cmake
@@ -0,0 +1,17 @@
+# Header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO SergiusTheBest/plog
+ REF 1.1.3
+ SHA512 9a5a455e1942158d2802313682ed007750789a9048773302d92f2591dfac0185914dba8b67fa285fed25e54dff44e2c97c92b9e7decd39fa2bca460c03549377
+ HEAD_REF master
+)
+
+# Put the licence file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/plog)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/plog/LICENSE ${CURRENT_PACKAGES_DIR}/share/plog/copyright)
+
+# Copy header files
+file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")