Commit b8f9b44c authored by yuri's avatar yuri
Browse files

New port: devel/easyloggingpp: C++ logging library

Approved by:	tcberner (mentor), adamw (mentor)
Differential Revision:	D13912
parent 0d80c9bd
......@@ -477,6 +477,7 @@
SUBDIR += e00compr
SUBDIR += e2fsprogs-libss
SUBDIR += easygit
SUBDIR += easyloggingpp
SUBDIR += eblob
SUBDIR += ebnf2yacc
SUBDIR += ecgi
......
# $FreeBSD$
PORTNAME= easyloggingpp
DISTVERSIONPREFIX= v
DISTVERSION= 9.95.3
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ logging library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake:outsource
USE_GITHUB= yes
GH_ACCOUNT= muflihun
USE_LDCONFIG= yes
CMAKE_ON= build_shared_lib # patched in, requested such option in https://github.com/muflihun/easyloggingpp/issues/603
PLIST_FILES= include/easylogging++.h \
include/easylogging++.cc \
lib/libeasyloggingpp.so
.include <bsd.port.mk>
TIMESTAMP = 1516061458
SHA256 (muflihun-easyloggingpp-v9.95.3_GH0.tar.gz) = daa1d6f09b15482d418d3698741d2330195bf0e97370bc27d02bb6cc18debfb8
SIZE (muflihun-easyloggingpp-v9.95.3_GH0.tar.gz) = 747358
Suggested the same to the upstream: https://github.com/muflihun/easyloggingpp/issues/603
--- CMakeLists.txt.orig 2017-10-13 00:35:14 UTC
+++ CMakeLists.txt
@@ -22,7 +22,7 @@ macro(require_cpp11)
endmacro()
option(test "Build all tests" OFF)
-option(build_static_lib "Build easyloggingpp as a static library" OFF)
+option(build_shared_lib "Build easyloggingpp as a shared library" OFF)
option(lib_utc_datetime "Build library with UTC date/time logging" OFF)
set(ELPP_MAJOR_VERSION "9")
@@ -40,17 +40,17 @@ install(FILES
DESTINATION "${ELPP_INCLUDE_INSTALL_DIR}"
COMPONENT dev)
-if (build_static_lib)
+if (build_shared_lib)
if (lib_utc_datetime)
add_definitions(-DELPP_UTC_DATETIME)
endif()
require_cpp11()
- add_library(easyloggingpp STATIC src/easylogging++.cc)
+ add_library(easyloggingpp SHARED src/easylogging++.cc)
install(TARGETS
easyloggingpp
- ARCHIVE DESTINATION lib)
+ DESTINATION lib)
endif()
export(PACKAGE ${PROJECT_NAME})
Single header C++ logging library. It is extremely powerful, extendable,
light-weight, fast performing, thread and type safe and consists of many
built-in features. It provides ability to write logs in your own customized
format. It also provide support for logging your classes, third-party
libraries, STL and third-party containers etc.
WWW: https://muflihun.github.io/easyloggingpp/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment