SUMMARY="libelf - ELF object file access library"
DESCRIPTION="
Libelf lets you read, modify or create ELF files in an architecture-independent \
way. The library takes care of size and endian issues, e.g. you can process a \
file for SPARC processors on an Intel-based system. This library is a \
clean-room rewrite of the System V Release 4 library and is source code \
compatible with it.
"
HOMEPAGE="http://www.mr511.de/software/english.html"
SRC_URI="http://www.mr511.de/software/libelf-0.8.13.tar.gz"
CHECKSUM_MD5="4136d7b4c04df68b686570afa26988ac"
LICENSE="GNU LGPL v2"
COPYRIGHT="1995-2008 Michael Riepe"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="libelf-0.8.13.patch"

PROVIDES="
	lib:libelf$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:libtoolize
	cmd:autoreconf
	cmd:make
	"

BUILD()
{
	libtoolize -fci
	autoreconf
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	make install-compat
	prepareInstalledDevelLib libelf
	packageEntries devel $developDir
}

PROVIDES_devel="
	libelf${secondaryArchSuffix}_devel = $portVersion
	devel:libelf$secondaryArchSuffix = $portVersion
	"

REQUIRES_devel="
	lib:libelf$secondaryArchSuffix == $portVersion base
	"
