diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-12-17 08:51:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 23:42:46 +0000 |
commit | d2bb8bb1406ef1ca53539912a463bd518211110a (patch) | |
tree | f29152b64329882658df747c1639cde99407bfdb /meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | |
parent | f02a8228db795f2c6c8d81cfd7e0b88bf355c1b8 (diff) | |
download | openembedded-core-contrib-d2bb8bb1406ef1ca53539912a463bd518211110a.tar.gz |
argp-standalone: Add recipe
This helps packages like gnutls to compile with musl
any package that needs glibc's implementation of argp
can link to this library
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-support/argp-standalone/argp-standalone_1.3.bb')
-rw-r--r-- | meta/recipes-support/argp-standalone/argp-standalone_1.3.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb new file mode 100644 index 0000000000..a5d20d30a4 --- /dev/null +++ b/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb @@ -0,0 +1,28 @@ +# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Glibc hierarchical argument parsing standalone library" +HOMEPAGE = "http://www.lysator.liu.se/~nisse/misc/" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://argp.h;beginline=1;endline=20;md5=008b7e53dea6f9e1d9fdef0d9cf3184a" +SECTION = "libs" + +SRC_URI = "http://www.lysator.liu.se/~nisse/misc/argp-standalone-${PV}.tar.gz \ + file://0001-throw-in-funcdef.patch \ + file://0002-isprint.patch \ + " +SRC_URI[md5sum] = "720704bac078d067111b32444e24ba69" +SRC_URI[sha256sum] = "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be" + +inherit autotools + +CFLAGS += "-fPIC -U__OPTIMIZE__" + +do_install() { + install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a + install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h +} +# +# We will skip parsing for non-musl systems +# +COMPATIBLE_HOST = ".*-musl.*" |