mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 14:07:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_LOG4CPP
|
||||
bool "log4cpp"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Log4cpp is library of C++ classes for flexible logging to
|
||||
files, syslog, IDSA and other destinations. It is modeled
|
||||
after the Log4j Java library, staying as close to their API
|
||||
as is reasonable.
|
||||
|
||||
http://log4cpp.sourceforge.net/
|
||||
|
||||
comment "log4cpp needs a toolchain w/ C++, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,6 @@
|
||||
# From http://sourceforge.net/projects/log4cpp/files/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/
|
||||
md5 d56ef8240014528c354da5b7e93015ca log4cpp-1.1.4.tar.gz
|
||||
sha1 b32e6ec981a5d75864e1097525e1f502cc242d17 log4cpp-1.1.4.tar.gz
|
||||
# Locally computed
|
||||
sha256 696113659e426540625274a8b251052cc04306d8ee5c42a0c7639f39ca90c9d6 log4cpp-1.1.4.tar.gz
|
||||
sha256 a190dc9c8043755d90f8b0a75fa66b9e42d4af4c980bf5ddc633f0124db3cee7 log4cpp/COPYING
|
||||
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# log4cpp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LOG4CPP_VERSION_MAJOR = 1.1
|
||||
LOG4CPP_VERSION = $(LOG4CPP_VERSION_MAJOR).4
|
||||
LOG4CPP_SITE = http://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-$(LOG4CPP_VERSION_MAJOR)
|
||||
LOG4CPP_SUBDIR = log4cpp
|
||||
# The "or later" is indicated in the HTML documentation
|
||||
LOG4CPP_LICENSE = LGPL-2.1+
|
||||
LOG4CPP_LICENSE_FILES = log4cpp/COPYING
|
||||
LOG4CPP_INSTALL_STAGING = YES
|
||||
LOG4CPP_CONF_OPTS = --enable-doxygen=no --enable-dot=no
|
||||
|
||||
# The default <pkg>_CONFIG_SCRIPTS handling does not apply
|
||||
define LOG4CPP_STAGING_CONFIG_SCRIPT_FIXUP
|
||||
$(SED) 's,prefix="/usr",prefix="$(STAGING_DIR)/usr",' \
|
||||
-e 's,exec_prefix="/usr",prefix="$(STAGING_DIR)/usr",' \
|
||||
$(STAGING_DIR)/usr/bin/log4cpp-config
|
||||
endef
|
||||
|
||||
LOG4CPP_POST_INSTALL_STAGING_HOOKS += LOG4CPP_STAGING_CONFIG_SCRIPT_FIXUP
|
||||
|
||||
define LOG4CPP_TARGET_CONFIG_SCRIPT_REMOVE
|
||||
$(RM) $(TARGET_DIR)/usr/bin/log4cpp-config
|
||||
endef
|
||||
|
||||
LOG4CPP_POST_INSTALL_TARGET_HOOKS += LOG4CPP_TARGET_CONFIG_SCRIPT_REMOVE
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user