Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / libelf / libelf_0.8.3.oe
1 SECTION = "libs"
2 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
3 DESCRIPTION = "an ELF object file access library \
4 The elf library provides routines to access, and manipulate, Elf object \
5 files. It is still not complete, but is required for a number of programs, \
6 such as Eli (a state of the art compiler generation system), and Elk (the \
7 Extension Language Kit - an implementation of the Scheme programming \
8 language.)"
9
10 SRC_URI = "http://www.stud.uni-hannover.de/~michael/software/libelf-${PV}.tar.gz"
11
12 inherit autotools
13
14 do_configure_prepend () {
15         if test ! -e acinclude.m4; then
16                 cp aclocal.m4 acinclude.m4
17         fi
18 }
19
20 do_install () {
21         oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
22                    'libdir=${D}${libdir}' 'includedir=${D}${includedir}' \
23                    install
24 }
25
26 do_stage () {
27         oe_libinstall -so -C lib libelf ${STAGING_LIBDIR}/
28         install -d ${STAGING_INCDIR}/libelf
29         for i in libelf.h nlist.h gelf.h sys_elf.h; do
30                 install -m 0644 lib/$i ${STAGING_INCDIR}/libelf/
31         done
32         make includedir=${STAGING_INCDIR} install-compat
33 }