Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[openembedded.git] / recipes / libelf / libelf_0.8.6.bb
1 DESCRIPTION = "libelf is an ELF object file access library. \
2 The elf library provides routines to access, and manipulate, Elf object files."
3 LICENSE = "LGPL"
4 SECTION = "libs"
5
6 SRC_URI = "http://www.mr511.de/software/libelf-${PV}.tar.gz \
7            http://www.stud.uni-hannover.de/~michael/software/libelf-${PV}.tar.gz"
8
9 inherit autotools
10
11 PARALLEL_MAKE = ""
12
13 do_configure_prepend () {
14         if test ! -e acinclude.m4; then
15                 cp aclocal.m4 acinclude.m4
16         fi
17 }
18
19 do_install () {
20         oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
21                    'libdir=${D}${libdir}' 'includedir=${D}${includedir}' \
22                    install
23 }
24
25 do_stage () {
26         oe_libinstall -so -C lib libelf ${STAGING_LIBDIR}/
27         install -d ${STAGING_INCDIR}/libelf
28         for i in libelf.h nlist.h gelf.h sys_elf.h; do
29                 install -m 0644 lib/$i ${STAGING_INCDIR}/libelf/
30         done
31         make includedir=${STAGING_INCDIR} install-compat
32 }