New package liblog4c-localtime
authorAlexander Varnin <fenixk19@mail.ru>
Wed, 10 Oct 2012 23:34:26 +0000 (23:34 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 21 Oct 2012 19:10:17 +0000 (21:10 +0200)
[Peter: minor fixes]
Signed-off-by: Alexander Varnin <fenixk19@mail.ru>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/liblog4c-localtime/Config.in [new file with mode: 0644]
package/liblog4c-localtime/liblog4c-localtime.mk [new file with mode: 0644]

index b78d98071c7e97c427b5f36ff852cc21cb4e87be..2ba68cf3d740112367e55baca54815934e72de0b 100644 (file)
@@ -485,6 +485,7 @@ source "package/poco/Config.in"
 source "package/protobuf/Config.in"
 source "package/schifra/Config.in"
 source "package/startup-notification/Config.in"
+source "package/liblog4c-localtime/Config.in"
 endmenu
 
 menu "Text and terminal handling"
diff --git a/package/liblog4c-localtime/Config.in b/package/liblog4c-localtime/Config.in
new file mode 100644 (file)
index 0000000..a2b7a84
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBLOG4C_LOCALTIME
+       bool "liblog4c-localtime"
+       select BR2_PACKAGE_EXPAT
+       help
+         Log4c is a library of C for flexible logging to files, syslog
+         and other destinations.
+         This version is with localtime patch, to make lib show times in
+         local timezone.
+
+         https://github.com/rcmadruga/log4c-localtime
+         http://log4c.sourceforge.net/
diff --git a/package/liblog4c-localtime/liblog4c-localtime.mk b/package/liblog4c-localtime/liblog4c-localtime.mk
new file mode 100644 (file)
index 0000000..3b1642c
--- /dev/null
@@ -0,0 +1,18 @@
+ #############################################################
+ #
+ # liblog4c
+ #
+ #############################################################
+ LIBLOG4C_LOCALTIME_VERSION = 1.0
+ LIBLOG4C_LOCALTIME_SITE    = https://github.com/rcmadruga/log4c-localtime/tarball/v$(LIBLOG4C_LOCALTIME_VERSION)
+ LIBLOG4C_LOCALTIME_INSTALL_STAGING = YES
+ LIBLOG4C_LOCALTIME_CONF_OPT = --disable-expattest
+ LIBLOG4C_LOCALTIME_DEPENDENCIES = expat
+
+define LIBLOG4C_LOCALTIME_FIX_CONFIGURE_PERMS
+       chmod +x $(@D)/configure
+endef
+
+LIBLOG4C_LOCALTIME_PRE_CONFIGURE_HOOKS += LIBLOG4C_LOCALTIME_FIX_CONFIGURE_PERMS
+
+ $(eval $(autotools-package))