Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -476,6 +476,7 @@ SUBDIR += e00compr SUBDIR += e2fsprogs-libss SUBDIR += easygit + SUBDIR += easyloggingpp SUBDIR += eblob SUBDIR += ebnf2yacc SUBDIR += ecgi Index: devel/easyloggingpp/Makefile =================================================================== --- /dev/null +++ devel/easyloggingpp/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= easyloggingpp +DISTVERSION= 9.95.3 +CATEGORIES= devel +MASTER_SITES= https://github.com/muflihun/easyloggingpp/archive/v${DISTVERSION}/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ logging library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:outsource +USE_LDCONFIG= yes +CMAKE_ARGS= -Dbuild_shared_lib:BOOL=ON # 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 Index: devel/easyloggingpp/distinfo =================================================================== --- /dev/null +++ devel/easyloggingpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1515985025 +SHA256 (easyloggingpp-9.95.3.tar.gz) = daa1d6f09b15482d418d3698741d2330195bf0e97370bc27d02bb6cc18debfb8 +SIZE (easyloggingpp-9.95.3.tar.gz) = 747358 Index: devel/easyloggingpp/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ devel/easyloggingpp/files/patch-CMakeLists.txt @@ -0,0 +1,34 @@ +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}) Index: devel/easyloggingpp/pkg-descr =================================================================== --- /dev/null +++ devel/easyloggingpp/pkg-descr @@ -0,0 +1,7 @@ +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/