Initial bep and patch files for libelf, provided by munchausen

This commit is contained in:
Scott McCreary
2012-09-04 20:52:43 +00:00
parent 24b5621fcd
commit ab92cd5c52
2 changed files with 47 additions and 0 deletions

View File

@@ -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"

View File

@@ -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