Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | # Copyright (c) 2013 LG Electronics, Inc. |
| 2 | |
| 3 | SUMMARY = "libnih library" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 4 | HOMEPAGE = "https://launchpad.net/libnih" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 5 | DESCRIPTION = "libnih is a small library for C application development \ |
| 6 | containing functions that, despite its name, are not implemented \ |
| 7 | elsewhere in the standard library set. \ |
| 8 | \ |
| 9 | libnih is roughly equivalent to other C libraries such as glib, \ |
| 10 | except that its focus is on a small size and intended for \ |
| 11 | applications that sit very low in the software stack, especially \ |
| 12 | outside of /usr. \ |
| 13 | \ |
| 14 | It expressly does not reimplement functions that already exist in \ |
| 15 | libraries ordinarily shipped in /lib such libc6, and does not do \ |
| 16 | foolish things like invent arbitrary typedefs for perfectly good C types." |
| 17 | |
| 18 | SECTION = "libs" |
| 19 | |
| 20 | LICENSE = "GPL-2.0" |
| 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 22 | |
| 23 | DEPENDS = "dbus libnih-native" |
| 24 | DEPENDS_class-native = "dbus-native" |
| 25 | |
| 26 | SRC_URI = "https://launchpad.net/${BPN}/1.0/${PV}/+download/${BP}.tar.gz \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | file://libnih_1.0.3-4ubuntu16.patch \ |
| 28 | file://0001-signal.c-SIGCLD-and-SIGCHILD-are-same-on-sytem-V-sys.patch \ |
| 29 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | |
| 31 | SRC_URI[md5sum] = "db7990ce55e01daffe19006524a1ccb0" |
| 32 | SRC_URI[sha256sum] = "897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405" |
| 33 | |
| 34 | inherit autotools |
| 35 | inherit gettext |
| 36 | |
Armin Kuster | 066be20 | 2018-07-08 14:58:53 -0700 | [diff] [blame^] | 37 | do_configure_append () { |
| 38 | sed -i -e 's,lib/pkgconfig,${baselib}/pkgconfig,g' ${S}/nih/Makefile.in ${S}/nih-dbus/Makefile.in |
| 39 | } |
| 40 | |
| 41 | FILES_${PN}-dev += "${libdir}/pkgconfig/* \ |
| 42 | ${includedir}/* \ |
| 43 | ${libdir}/*.so \ |
| 44 | ${datadir}/* \ |
| 45 | " |
| 46 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 47 | # target libnih requires native nih-dbus-tool |
| 48 | BBCLASSEXTEND = "native" |