kumquat-buildroot/package/log4cpp/log4cpp.mk
Bernd Kuhls 6e58dc74d7 package/log4cpp: fix legal-info
The source code files are stored in log4cpp/.
Apparently LOG4CPP_LICENSE_FILES does not take LOG4CPP_SUBDIR into
account so we need to fix LOG4CPP_LICENSE_FILES itself.

Fixes
http://autobuild.buildroot.net/results/a80/a80e83ca58b22afedb8f2573513d373913c6a488/
http://autobuild.buildroot.net/results/9eb/9ebb2ed5171d5a1be2db06497a210e552bfad078/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-06-11 23:52:39 +02:00

33 lines
1.1 KiB
Makefile
Executable File

################################################################################
#
# 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 = log4cpp/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))