blob: 21bbcab3d34482d6b5418b8a41e09e179937d0dc [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
Patrick Williamsc0f7c042017-02-23 20:41:17 -06004SUMMARY = "Glibc hierarchical argument parsing standalone library"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005HOMEPAGE = "http://www.lysator.liu.se/~nisse/misc/"
6LICENSE = "LGPL-2.1"
7LIC_FILES_CHKSUM = "file://argp.h;beginline=1;endline=20;md5=008b7e53dea6f9e1d9fdef0d9cf3184a"
8SECTION = "libs"
9
10SRC_URI = "http://www.lysator.liu.se/~nisse/misc/argp-standalone-${PV}.tar.gz \
11 file://0001-throw-in-funcdef.patch \
12 file://0002-isprint.patch \
13 file://out_of_tree_build.patch \
14 "
15SRC_URI[md5sum] = "720704bac078d067111b32444e24ba69"
16SRC_URI[sha256sum] = "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be"
17
18inherit autotools
19
20CFLAGS += "-fPIC -U__OPTIMIZE__"
21
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022RDEPENDS_${PN}-dev = ""
23RDEPENDS_${PN}-staticdev = ""
24
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025do_install() {
26 install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a
27 install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
28}
29#
30# We will skip parsing for non-musl systems
31#
32COMPATIBLE_HOST = ".*-musl.*"