Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | # Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | SUMMARY = "Glibc hierarchical argument parsing standalone library" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 5 | DESCRIPTION = "Standalone version of arguments parsing functions from GLIBC" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/misc/" |
| 7 | LICENSE = "LGPL-2.1" |
| 8 | LIC_FILES_CHKSUM = "file://argp.h;beginline=1;endline=20;md5=008b7e53dea6f9e1d9fdef0d9cf3184a" |
| 9 | SECTION = "libs" |
| 10 | |
| 11 | SRC_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 | " |
| 16 | SRC_URI[md5sum] = "720704bac078d067111b32444e24ba69" |
| 17 | SRC_URI[sha256sum] = "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be" |
| 18 | |
| 19 | inherit autotools |
| 20 | |
| 21 | CFLAGS += "-fPIC -U__OPTIMIZE__" |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 23 | RDEPENDS:${PN}-dev = "" |
| 24 | RDEPENDS:${PN}-staticdev = "" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 26 | do_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 | # |
| 33 | COMPATIBLE_HOST = ".*-musl.*" |