aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlenas <alenas@hotmail.com>2018-11-22 15:02:30 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-11-22 05:02:30 -0800
commit05b2110ebc610f792a08f97467783c311fbd40cf (patch)
tree8032934c9e1f0ce6c3bd5ac480a3de3039a179e5
parenteccae2adaa20c64a44034a6115c6c5f90be201be (diff)
downloadvcpkg-05b2110ebc610f792a08f97467783c311fbd40cf.tar.gz
vcpkg-05b2110ebc610f792a08f97467783c311fbd40cf.zip
easyloggingpp port (#4780)
* easyloggingpp port * [easyloggingpp] Tweak to always produce static library
-rw-r--r--ports/easyloggingpp/CONTROL3
-rw-r--r--ports/easyloggingpp/portfile.cmake23
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/easyloggingpp/CONTROL b/ports/easyloggingpp/CONTROL
new file mode 100644
index 000000000..3f462dfbd
--- /dev/null
+++ b/ports/easyloggingpp/CONTROL
@@ -0,0 +1,3 @@
+Source: easyloggingpp
+Version: 9.96.5-1
+Description: Easylogging++ is a single header efficient logging library for C++ applications. \ No newline at end of file
diff --git a/ports/easyloggingpp/portfile.cmake b/ports/easyloggingpp/portfile.cmake
new file mode 100644
index 000000000..ecb678746
--- /dev/null
+++ b/ports/easyloggingpp/portfile.cmake
@@ -0,0 +1,23 @@
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO muflihun/easyloggingpp
+ REF v9.96.5
+ SHA512 51493693095df03f8772174a8ec4fc681832319bd723224a544539efdcf73c7653d3973ec0ae0cd004e496bf98c105c278e4a72694ebf34b207c658b3225a87b
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -Dbuild_static_lib=ON
+)
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/easyloggingpp RENAME copyright)