diff options
| author | Adam Martin <adam.madram@gmail.com> | 2016-10-11 16:06:41 -0500 |
|---|---|---|
| committer | Adam Martin <adam.madram@gmail.com> | 2016-10-11 16:06:41 -0500 |
| commit | 665325d741254bfb6a55b6c2005261e583a3162f (patch) | |
| tree | ccb9ffe8f739ac79eb03b635d8f4478e1473ecaf | |
| parent | 325a50f54bb9feeea25a1f4d59d9b24d32b111da (diff) | |
| download | vcpkg-665325d741254bfb6a55b6c2005261e583a3162f.tar.gz vcpkg-665325d741254bfb6a55b6c2005261e583a3162f.zip | |
[log4cplus] Initial addition
| -rw-r--r-- | ports/log4cplus/CONTROL | 3 | ||||
| -rw-r--r-- | ports/log4cplus/portfile.cmake | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/log4cplus/CONTROL b/ports/log4cplus/CONTROL new file mode 100644 index 000000000..2d367a31a --- /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 000000000..78620597a --- /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) |
