2 # Copyright (C) 2019 Banglang Huang <banglang.huang@foxmail.com>
3 # Copyright (C) 2019 Rosy Song <rosysong@rosinson.com>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
13 PKG_RELEASE
:=$(AUTORELEASE
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_HASH
:=f5949e713cf8635fc554384ab99b04716e3430f28eed6dd7d71ad03d959b91a0
19 PKG_MAINTAINER
:=BangLang Huang
<banglang.huang@foxmail.com
>, Rosy Song
<rosysong@rosinson.com
>
20 PKG_LICENSE
:=BSD-2-Clause Apache-2.0
21 PKG_LICENSE_FILES
:=LICENSE
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
28 include $(INCLUDE_DIR
)/cmake.mk
30 define Package
/log4cplus
33 TITLE
:=A simple to use C
++ logging API
34 URL
:=https
://sourceforge.net
/p
/log4cplus
/wiki
/Home
/
38 define Package
/log4cplus
/description
39 log4cplus is a simple to use C
++11 logging API providing thread--safe
,
40 flexible
, and arbitrarily granular control over log management and
41 configuration. It is modeled after the Java log4j API.
45 -DLOG4CPLUS_BUILD_LOGGINGSERVER
:BOOL
=OFF \
46 -DLOG4CPLUS_BUILD_TESTING
:BOOL
=OFF \
47 -DLOG4CPLUS_ENABLE_DECORATED_LIBRARY_NAME
:BOOL
=OFF \
51 CMAKE_HOST_OPTIONS
+= $(OPTIONS
) -DBUILD_SHARED_LIBS
=OFF
52 CMAKE_OPTIONS
+= $(OPTIONS
) -DBUILD_SHARED_LIBS
=ON
54 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
56 define Package
/log4cplus
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liblog4cplus
*.so
* $(1)/usr
/lib
61 $(eval
$(call BuildPackage
,log4cplus
))
62 $(eval
$(call HostBuild
))