Initial Commit
- initial default booting image
This commit is contained in:
35
package/log4cxx/Config.in
Normal file
35
package/log4cxx/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
config BR2_PACKAGE_LOG4CXX
|
||||
bool "log4cxx"
|
||||
# apr really needs shared library support
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_WCHAR # mbsinit
|
||||
depends on BR2_USE_MMU # apr
|
||||
depends on BR2_USE_WCHAR || BR2_TOOLCHAIN_GCC_AT_LEAST_7 # boost
|
||||
depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS || BR2_TOOLCHAIN_GCC_AT_LEAST_7 # boost-thread
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 || BR2_TOOLCHAIN_GCC_AT_LEAST_7 # boost-thread
|
||||
select BR2_PACKAGE_APR
|
||||
select BR2_PACKAGE_APR_UTIL
|
||||
select BR2_PACKAGE_BOOST if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
select BR2_PACKAGE_BOOST_ATOMIC if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
select BR2_PACKAGE_BOOST_CHRONO if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
select BR2_PACKAGE_BOOST_THREAD if !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
help
|
||||
Apache log4cxx is a logging framework for C++ patterned
|
||||
after Apache log4j.
|
||||
|
||||
https://logging.apache.org/log4cxx/
|
||||
|
||||
comment "log4cxx needs a toolchain w/ C++, threads, dynamic library, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
comment "log4cxx needs a toolchain w/ wchar or gcc >= 7"
|
||||
depends on !(BR2_USE_WCHAR || BR2_TOOLCHAIN_GCC_AT_LEAST_7)
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
comment "log4cxx needs a toolchain not affected by GCC bug 64735"
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
4
package/log4cxx/log4cxx.hash
Normal file
4
package/log4cxx/log4cxx.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://downloads.apache.org/logging/log4cxx/1.7.0/apache-log4cxx-1.7.0.tar.gz.sha512
|
||||
sha512 0e94946457423689af6d85074ab97b717e0cec85a4f548e6650b060e8f98b780f980b7d4a7780410fa64681376fb4bc62fab6ed9068fc944e07f9f32ac0413af apache-log4cxx-1.7.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
||||
45
package/log4cxx/log4cxx.mk
Normal file
45
package/log4cxx/log4cxx.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# log4cxx
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LOG4CXX_VERSION = 1.7.0
|
||||
LOG4CXX_SITE = https://archive.apache.org/dist/logging/log4cxx/$(LOG4CXX_VERSION)
|
||||
LOG4CXX_SOURCE = apache-log4cxx-$(LOG4CXX_VERSION).tar.gz
|
||||
LOG4CXX_INSTALL_STAGING = YES
|
||||
LOG4CXX_LICENSE = Apache-2.0
|
||||
LOG4CXX_LICENSE_FILES = LICENSE
|
||||
LOG4CXX_CPE_ID_VENDOR = apache
|
||||
|
||||
LOG4CXX_CONF_OPTS = \
|
||||
-DAPR_CONFIG_EXECUTABLE=$(STAGING_DIR)/usr/bin/apr-1-config \
|
||||
-DAPR_UTIL_CONFIG_EXECUTABLE=$(STAGING_DIR)/usr/bin/apu-1-config
|
||||
|
||||
LOG4CXX_DEPENDENCIES = apr apr-util
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BOOST),y)
|
||||
LOG4CXX_DEPENDENCIES += boost
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBESMTP),y)
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ESMTP=ON
|
||||
LOG4CXX_DEPENDENCIES += libesmtp
|
||||
else
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ESMTP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UNIXODBC),y)
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ODBC=ON
|
||||
LOG4CXX_DEPENDENCIES += unixodbc
|
||||
else
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_ENABLE_ODBC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_USE_WCHAR),y)
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_WCHAR_T=ON
|
||||
else
|
||||
LOG4CXX_CONF_OPTS += -DLOG4CXX_WCHAR_T=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user