summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/nana/nana_2.5.bb
blob: 19a90ff07b29e5654ca23af5b51f5837e0f64376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SUMMARY = "Support for assertion checking and logging in GNU C/C++"
DESCRIPTION = "GNU Nana is a free library providing improved support for assertion\
checking (as in assert.h) and logging (printf style debugging) in \
GNU C and C++."
SECTION = "Development/Languages/C and C++"

SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${BP}.tar.gz \
    file://change-mandir-to-DESTDIR.patch \
    file://modify-acinclude.m4-and-configure.in.patch \
"
SRC_URI[md5sum] = "66c88aa0ad095b2e67673773135475f1"
SRC_URI[sha256sum] = "fd1819ffea94b209513959447e4802afe2719600e7d161cd78b265a42812affa"

LICENSE = "BSD-2-Clause"

LIC_FILES_CHKSUM = "file://COPYING;md5=16aa57f3b7fdda870cee597275bd5d11"

inherit autotools-brokensep pkgconfig

EXTRA_OEMAKE = "DESTDIR=${D}"

do_configure_prepend_class-nativesdk() {
    sed -i -e 's:@CPP@:\$\{CXX\} \$\{CXXFLAGS\} \-E:g' ${S}/src/nana.in
    sed -i -e 's:@CC@:\$\{CC\} \$\{CFLAGS\} \-E:g' ${S}/src/nana-clg.in
    sed -i -e 's:@CXX@::g' ${S}/src/nana-c++lg.in
    sed -i -e 's:@GDB@:\$\{GDB\}:g' ${S}/src/nana-run.in
}

do_install_prepend() {
    install -d ${D}${mandir}/man1
    install -d ${D}${mandir}/man3
    install -d ${D}${datadir}/info
}
BBCLASSEXTEND = "native nativesdk"