mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
log4cpp: new package
Signed-off-by: Damien Lanson <damien@kal-host.com> [Thomas: - Rewrap Config.in help text. - Add missing new line at the end of the Config.in help text. - Use 80 # signs for the .mk file header. - Use <pkg>_SUBDIR = log4cpp instead of moving things around during the extract step. - Fix typo in the license (it's LGPL, not GLPL), and make it LGPLv2.1+, since it's what the HTML documentation says. - In addition to removing the log4cpp-config script from the target, tweak the variant installed in staging so that it behaves properly for cross-compilation. Unfortunately, the <pkg>_CONFIG_SCRIPTS generic mechanism doesn't work for this config script.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
9252721e8d
commit
8a4922c6b9
32
package/log4cpp/log4cpp.mk
Executable file
32
package/log4cpp/log4cpp.mk
Executable file
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# log4cpp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LOG4CPP_VERSION_MAJOR = 1.1
|
||||
LOG4CPP_VERSION = $(LOG4CPP_VERSION_MAJOR).1
|
||||
LOG4CPP_SOURCE = log4cpp-$(LOG4CPP_VERSION).tar.gz
|
||||
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 = LGPLv2.1+
|
||||
LOG4CPP_LICENSE_FILES = COPYING
|
||||
LOG4CPP_INSTALL_STAGING = YES
|
||||
|
||||
# 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