argp: Add package (closes #1883)

This commit is contained in:
Fredrik Fornwall 2017-12-05 23:31:43 +01:00
parent 2523abf65c
commit 07ec1ef17b
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- ./argp-fmtstream.h.orig 2003-12-11 09:37:05.000000000 +0100
+++ ./argp-fmtstream.h 2011-08-12 11:56:43.000000000 +0200
@@ -192,7 +192,7 @@
extern int _argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
-#ifdef __OPTIMIZE__
+#if defined(__OPTIMIZE__) && !defined(__clang__)
/* Inline versions of above routines. */
#if !_LIBC

12
packages/argp/build.sh Normal file
View File

@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://www.lysator.liu.se/~nisse/misc/
TERMUX_PKG_DESCRIPTION="Standalone version of arguments parsing functions from GLIBC"
TERMUX_PKG_VERSION=1.3
TERMUX_PKG_SHA256=dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be
TERMUX_PKG_SRCURL=https://www.lysator.liu.se/~nisse/misc/argp-standalone-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
TERMUX_PKG_NO_DEVELSPLIT=true
termux_step_post_make_install() {
cp libargp.a $TERMUX_PREFIX/lib
cp $TERMUX_PKG_SRCDIR/argp.h $TERMUX_PREFIX/include
}