DESCRIPTION="
libdwarf and dwarfdump - library and utility for working with DWARF Debugging \
Information Format.
"
HOMEPAGE="http://reality.sgiweb.org/davea/dwarf.html"
SOURCE_URI="http://reality.sgiweb.org/davea/libdwarf-20120410.tar.gz"
CHECKSUM_MD5="77c8b351f11738bc9fa50474a69d5b36"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libelf >= 0.8.13"
BUILD()
{
		cd dwarf-20120410/libdwarf
		./configure --enable-shared --prefix=$(finddir B_COMMON_DIRECTORY)
		make
		cd ../dwarfdump
		LDFLAGS="-L../libdwarf -L/boot/common/lib" ./configure --prefix=$(finddir B_COMMON_DIRECTORY)
		LIBRARY_PATH=$LIBRARY_PATH:../libdwarf/ make
}

INSTALL()
{
		cd dwarf-20120410/libdwarf
		make install
		cd ../dwarfdump
		make install
}

LICENSE="GNU GPL v2
		GNU LGPL v2.1"
COPYRIGHT="2000,2002,2004,2005 Silicon Graphics, Inc.  All Rights Reserved.
			2007-2010 David Anderson. All Rights Reserved.
			2007-2010 Sun Microsystems, Inc. All rights reserved"
