new package: liblog4c

This commit is contained in:
Tee KOBAYASHI 2021-12-21 20:22:14 +09:00 committed by Leonid Pliushch
parent 888ab97a30
commit 124931d400
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,25 @@
TERMUX_PKG_HOMEPAGE=http://log4c.sourceforge.net/
TERMUX_PKG_DESCRIPTION="A C library for flexible logging to files, syslog and other destinations"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.2.4
TERMUX_PKG_SRCURL=http://prdownloads.sourceforge.net/log4c/log4c-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=5991020192f52cc40fa852fbf6bbf5bd5db5d5d00aa9905c67f6f0eadeed48ea
TERMUX_PKG_DEPENDS="libexpat"
termux_step_pre_configure() {
autoreconf -fi
_NEED_DUMMY_LIBPTHREAD_A=
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
if [ ! -e $_LIBPTHREAD_A ]; then
_NEED_DUMMY_LIBPTHREAD_A=true
echo '!<arch>' > $_LIBPTHREAD_A
fi
}
termux_step_post_make_install() {
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
rm -f $_LIBPTHREAD_A
fi
}

View File

@ -0,0 +1,10 @@
--- a/src/sd/malloc.h
+++ b/src/sd/malloc.h
@@ -8,6 +8,7 @@
#ifndef __sd_malloc_h
#define __sd_malloc_h
+#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <sd/defs.h>

View File

@ -0,0 +1,10 @@
--- a/src/sd/stack.h
+++ b/src/sd/stack.h
@@ -17,6 +17,7 @@
* @todo API homogeneity with sd_list and sd_hash
*/
+#include <stdint.h>
#include <stddef.h>
#include <sd/defs.h>