small library, used by some new experimental branch of GCC

allows people to manipulate elf files.
This commit is contained in:
espie 2006-07-12 08:45:58 +00:00
parent 7d211a2885
commit 59143cfe93
6 changed files with 64 additions and 0 deletions

25
devel/libelf/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/07/12 08:45:58 espie Exp $
COMMENT= 'read, modify, create ELF files on any arch'
CATEGORIES= devel
# The actual homepage is in german, this points to it.
HOMEPAGE= http://directory.fsf.org/all/libelf.html
MASTER_SITES= http://www.mr511.de/software/
DISTNAME= libelf-0.8.6
SHARED_LIBS= elf 0.0
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.13
CONFIGURE_ARGS= --disable-nls
MAKE_FLAGS= SHLIB_SFX=.so.$(LIBelf_VERSION)
FAKE_FLAGS= ${MAKE_FLAGS} instroot=${DESTDIR}
# LGPL
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
.include <bsd.port.mk>

4
devel/libelf/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (libelf-0.8.6.tar.gz) = d444fb0068cdfed01bb1fd1e91d29270
RMD160 (libelf-0.8.6.tar.gz) = f8fadd79d27f083d39c31a5b3a72655d4c0842d2
SHA1 (libelf-0.8.6.tar.gz) = 1e865a331f37cc47b5ea96e50449ed93442ecbf0
SIZE (libelf-0.8.6.tar.gz) = 144198

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2006/07/12 08:45:58 espie Exp $
--- aclocal.m4.orig Sat May 21 17:39:19 2005
+++ aclocal.m4 Wed Jul 12 10:39:55 2006
@@ -269,6 +269,14 @@ AC_DEFUN(mr_ENABLE_SHARED, [
mr_enable_shared=no
fi
;;
+ *-openbsd*)
+ PICFLAGS='-fPIC -DPIC'
+ SHLIB_SFX='.so.$(MAJOR).0'
+ SHLINK_SFX='$(SHLIB_SFX)'
+ SONAME_SFX='$(SHLIB_SFX)'
+ LINK_SHLIB='$(CC) -shared'
+ INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ ;;
sparc-sun-solaris2*)
if test "$GCC" = yes; then
PICFLAGS='-fPIC -DPIC'

1
devel/libelf/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
Light-weight alternative to BFD, but supports only ELF binaries.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/07/12 08:45:58 espie Exp $
@lib lib/libelf.so.${LIBelf_VERSION}

14
devel/libelf/pkg/PLIST Normal file
View File

@ -0,0 +1,14 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/12 08:45:58 espie Exp $
%%SHARED%%
include/gelf.h
include/libelf/
include/libelf.h
include/libelf/elf_repl.h
include/libelf/gelf.h
include/libelf/libelf.h
include/libelf/nlist.h
include/libelf/sys_elf.h
include/nlist.h
lib/libelf.a
lib/pkgconfig/
lib/pkgconfig/libelf.pc