xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/argp-standalone/argp-standalone_1.3.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "Glibc hierarchical argument parsing standalone library"
5DESCRIPTION = "Standalone version of arguments parsing functions from GLIBC"
6HOMEPAGE = "http://www.lysator.liu.se/~nisse/misc/"
7LICENSE = "LGPL-2.1-only"
8LIC_FILES_CHKSUM = "file://argp.h;beginline=1;endline=20;md5=008b7e53dea6f9e1d9fdef0d9cf3184a"
9SECTION = "libs"
10
11SRC_URI = "http://www.lysator.liu.se/~nisse/misc/argp-standalone-${PV}.tar.gz \
12           file://0001-throw-in-funcdef.patch \
13           file://0002-isprint.patch \
14           file://out_of_tree_build.patch \
15          "
16SRC_URI[md5sum] = "720704bac078d067111b32444e24ba69"
17SRC_URI[sha256sum] = "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be"
18
19inherit autotools
20
21CFLAGS += "-fPIC -U__OPTIMIZE__"
22
23RDEPENDS:${PN}-dev = ""
24RDEPENDS:${PN}-staticdev = ""
25
26do_install() {
27	install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a
28	install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
29}
30#
31# We will skip parsing for non-musl systems
32#
33COMPATIBLE_HOST = ".*-musl.*"
34