From 665325d741254bfb6a55b6c2005261e583a3162f Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Tue, 11 Oct 2016 16:06:41 -0500 Subject: [PATCH] [log4cplus] Initial addition --- ports/log4cplus/CONTROL | 3 +++ ports/log4cplus/portfile.cmake | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ports/log4cplus/CONTROL create mode 100644 ports/log4cplus/portfile.cmake diff --git a/ports/log4cplus/CONTROL b/ports/log4cplus/CONTROL new file mode 100644 index 0000000000..2d367a31ae --- /dev/null +++ b/ports/log4cplus/CONTROL @@ -0,0 +1,3 @@ +Source: log4cplus +Version: 1.1.3-RC7 +Description: A simple to use C++ logging API providing thread--safe, flexible, and arbitrarily granular control over log management and configuration diff --git a/ports/log4cplus/portfile.cmake b/ports/log4cplus/portfile.cmake new file mode 100644 index 0000000000..78620597aa --- /dev/null +++ b/ports/log4cplus/portfile.cmake @@ -0,0 +1,22 @@ +include(${CMAKE_TRIPLET_FILE}) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/log4cplus-REL_1_1_3-RC7) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/log4cplus/log4cplus/archive/REL_1_1_3-RC7.zip" + FILENAME "REL_1_1_3-RC7.zip" + SHA512 06320cb2ab6e18e91c6d79a943c9fdcd82b984e8e908e232f0e0e8eca69496f1f3845913107218bc2be356473315f8dfb822a5993bab8efcadfc4819532da823 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DLOG4CPLUS_BUILD_TESTING=OFF -DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF -DWITH_UNIT_TESTS=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/log4cplus) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/log4cplus/LICENSE ${CURRENT_PACKAGES_DIR}/share/log4cplus/copyright)