xref: /OK3568_Linux_fs/buildroot/package/log4cpp/log4cpp.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# log4cpp
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunLOG4CPP_VERSION_MAJOR = 1.1
8*4882a593SmuzhiyunLOG4CPP_VERSION = $(LOG4CPP_VERSION_MAJOR).3
9*4882a593SmuzhiyunLOG4CPP_SITE = http://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-$(LOG4CPP_VERSION_MAJOR)
10*4882a593SmuzhiyunLOG4CPP_SUBDIR = log4cpp
11*4882a593Smuzhiyun# The "or later" is indicated in the HTML documentation
12*4882a593SmuzhiyunLOG4CPP_LICENSE = LGPL-2.1+
13*4882a593SmuzhiyunLOG4CPP_LICENSE_FILES = log4cpp/COPYING
14*4882a593SmuzhiyunLOG4CPP_INSTALL_STAGING = YES
15*4882a593SmuzhiyunLOG4CPP_CONF_OPTS = --enable-doxygen=no --enable-dot=no
16*4882a593Smuzhiyun# needed to fix broken configure script
17*4882a593SmuzhiyunLOG4CPP_AUTORECONF = YES
18*4882a593SmuzhiyunLOG4CPP_AUTORECONF_OPTS = -I m4
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# The default <pkg>_CONFIG_SCRIPTS handling does not apply
21*4882a593Smuzhiyundefine LOG4CPP_STAGING_CONFIG_SCRIPT_FIXUP
22*4882a593Smuzhiyun	$(SED) 's,prefix="/usr",prefix="$(STAGING_DIR)/usr",' \
23*4882a593Smuzhiyun		-e 's,exec_prefix="/usr",prefix="$(STAGING_DIR)/usr",' \
24*4882a593Smuzhiyun		$(STAGING_DIR)/usr/bin/log4cpp-config
25*4882a593Smuzhiyunendef
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunLOG4CPP_POST_INSTALL_STAGING_HOOKS += LOG4CPP_STAGING_CONFIG_SCRIPT_FIXUP
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundefine LOG4CPP_TARGET_CONFIG_SCRIPT_REMOVE
30*4882a593Smuzhiyun	$(RM) $(TARGET_DIR)/usr/bin/log4cpp-config
31*4882a593Smuzhiyunendef
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunLOG4CPP_POST_INSTALL_TARGET_HOOKS += LOG4CPP_TARGET_CONFIG_SCRIPT_REMOVE
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun$(eval $(autotools-package))
36