diff --git a/dev-libs/libelf/libelf-0.8.13.bep b/dev-libs/libelf/libelf-0.8.13.bep new file mode 100644 index 000000000..d1a0c7ebb --- /dev/null +++ b/dev-libs/libelf/libelf-0.8.13.bep @@ -0,0 +1,22 @@ +DESCRIPTION="libelf - ELF object file access library" +HOMEPAGE="http://www.mr511.de/software/english.html" +SRC_URI="http://www.mr511.de/software/libelf-0.8.13.tar.gz" +CHECKSUM_MD5="4136d7b4c04df68b686570afa26988ac" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd libelf-0.8.13 + libtoolize -fci + autoreconf + ./configure --enable-gnu-names --prefix=$(finddir B_COMMON_DIRECTORY) + make +} + +INSTALL { + cd libelf-0.8.13 + make install instroot=$DESTDIR + make install-compat instroot=$DESTDIR +} +LICENSE="GNU LGPL v2" +COPYRIGHT="1995-2008 Michael Riepe" diff --git a/dev-libs/libelf/patches/libelf-0.8.13.patch b/dev-libs/libelf/patches/libelf-0.8.13.patch new file mode 100644 index 000000000..3122add35 --- /dev/null +++ b/dev-libs/libelf/patches/libelf-0.8.13.patch @@ -0,0 +1,25 @@ +diff -Naur libelf-0.8.13/aclocal.m4 libelf-0.8.13-haiku/aclocal.m4 +--- libelf-0.8.13/aclocal.m4 2008-05-23 08:17:56.050593792 +0000 ++++ libelf-0.8.13-haiku/aclocal.m4 2012-08-21 14:55:07.622854144 +0000 +@@ -235,7 +235,7 @@ + AC_REQUIRE([AC_PROG_CC]) + AC_PATH_PROG(LD, ld, ld) + case "$host" in +- *-linux*|*-gnu*) ++ *-linux*|*-gnu*|*-haiku*) + if test "$GCC" = yes; then + mr_TARGET_ELF + if test "$mr_cv_target_elf" = yes; then +@@ -248,7 +248,11 @@ + SONAME_SFX='.so.$(MAJOR)' + LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)' + INSTALL_SHLIB='$(INSTALL_PROGRAM)' +- DEPSHLIBS='-lc' ++ case "$host" in ++ *-linux*|*-gnu*) ++ DEPSHLIBS='-lc' ++ ;; ++ esac + else + AC_MSG_WARN([shared libraries not supported for $host]) + mr_enable_shared=no