From 8d4bc2e256346b407b3d8e9c7d4596e87b3075dd Mon Sep 17 00:00:00 2001 From: yumaokao Date: Mon, 22 May 2017 07:22:26 -0500 Subject: [PATCH] cscope: Add package (#1035) --- packages/cscope/build.sh | 7 +++++++ packages/cscope/errno.patch | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 packages/cscope/build.sh create mode 100644 packages/cscope/errno.patch diff --git a/packages/cscope/build.sh b/packages/cscope/build.sh new file mode 100644 index 000000000..44eb2d9fb --- /dev/null +++ b/packages/cscope/build.sh @@ -0,0 +1,7 @@ +TERMUX_PKG_HOMEPAGE=http://cscope.sourceforge.net/ +TERMUX_PKG_DESCRIPTION="A developers tool for browsing program code" +TERMUX_PKG_VERSION=15.8b +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/cscope/cscope/${TERMUX_PKG_VERSION}/cscope-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=4889d091f05aa0845384b1e4965aa31d2b20911fb2c001b2cdcffbcb7212d3af +TERMUX_PKG_DEPENDS="ncurses" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncurses=$TERMUX_PREFIX" diff --git a/packages/cscope/errno.patch b/packages/cscope/errno.patch new file mode 100644 index 000000000..6e5bcb6c7 --- /dev/null +++ b/packages/cscope/errno.patch @@ -0,0 +1,14 @@ +--- src/src/snprintf.c 2009-04-10 13:39:23.000000000 +0000 ++++ patches/snprintf.c 2017-05-19 07:45:08.926751318 +0000 +@@ -522,7 +522,11 @@ + static UINTMAX_T myround(LDOUBLE); + static LDOUBLE mypow10(int); + ++#ifdef __ANDROID__ ++extern volatile int errno; ++#else + extern int errno; ++#endif + + int + rpl_vsnprintf(char *str, size_t size, const char *format, va_list args)