summaryrefslogtreecommitdiffstats
path: root/devel/libdwarf
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2005-02-12 22:09:59 +0000
committerjoerg <joerg@FreeBSD.org>2005-02-12 22:09:59 +0000
commit9b0c8129e1213dddccc858beeacd045848b9449a (patch)
treef7613cef498a4ca8034959140f35dce71148a630 /devel/libdwarf
parenta77763d10abe670c30d3e736b657d78c75d11e2d (diff)
downloadFreeBSD-ports-9b0c8129e1213dddccc858beeacd045848b9449a.zip
FreeBSD-ports-9b0c8129e1213dddccc858beeacd045848b9449a.tar.gz
libdwarf is a library to analyze (and even produce) DWARF debugging
information in ELF files.
Diffstat (limited to 'devel/libdwarf')
-rw-r--r--devel/libdwarf/Makefile35
-rw-r--r--devel/libdwarf/distinfo2
-rw-r--r--devel/libdwarf/files/patch-configure11
-rw-r--r--devel/libdwarf/files/patch-malloc.h30
-rw-r--r--devel/libdwarf/files/patch-pro_incl.h21
-rw-r--r--devel/libdwarf/pkg-descr6
-rw-r--r--devel/libdwarf/pkg-plist9
7 files changed, 114 insertions, 0 deletions
diff --git a/devel/libdwarf/Makefile b/devel/libdwarf/Makefile
new file mode 100644
index 0000000..93ebc07
--- /dev/null
+++ b/devel/libdwarf/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: libdwarf
+# Date created: 11 Feb 2005
+# Whom: joerg@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= libdwarf
+PORTVERSION= 20041122
+CATEGORIES= devel
+MASTER_SITES= http://reality.sgi.com/davea/
+
+MAINTAINER= joerg@FreeBSD.org
+COMMENT= A library to analyze DWARF debugging information in ELF files
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf
+
+WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/libdwarf
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+PS_FILES= dwarf.v2.ps index.v2.ps libdwarf2.1.ps libdwarf2p.1.ps mips_extensions.ps
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libdwarf.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/dwarf.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/libdwarf.h ${PREFIX}/include
+ ${MKDIR} ${PREFIX}/share/doc/libdwarf
+ for f in ${PS_FILES}; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/libdwarf ; \
+ done
+
+.include <bsd.port.mk>
diff --git a/devel/libdwarf/distinfo b/devel/libdwarf/distinfo
new file mode 100644
index 0000000..463ae53
--- /dev/null
+++ b/devel/libdwarf/distinfo
@@ -0,0 +1,2 @@
+MD5 (libdwarf-20041122.tar.gz) = f326a50b103ecd9bb7884fd70d7d40cf
+SIZE (libdwarf-20041122.tar.gz) = 792298
diff --git a/devel/libdwarf/files/patch-configure b/devel/libdwarf/files/patch-configure
new file mode 100644
index 0000000..031bf18
--- /dev/null
+++ b/devel/libdwarf/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Mon Nov 22 19:20:35 2004
++++ configure Sat Feb 12 22:06:36 2005
+@@ -3255,7 +3255,7 @@
+
+
+
+-for ac_header in alloca.h elf.h elfaccess.h libelf.h libelf/libelf.h sys/types.h sys/ia64/elf.h
++for ac_header in alloca.h elfaccess.h libelf.h libelf/libelf.h sys/types.h sys/ia64/elf.h
+ do
+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
diff --git a/devel/libdwarf/files/patch-malloc.h b/devel/libdwarf/files/patch-malloc.h
new file mode 100644
index 0000000..cfd7e3f
--- /dev/null
+++ b/devel/libdwarf/files/patch-malloc.h
@@ -0,0 +1,30 @@
+--- dwarf_alloc.c.orig Mon Nov 22 19:20:35 2004
++++ dwarf_alloc.c Fri Feb 11 22:22:22 2005
+@@ -41,7 +41,6 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <malloc.h>
+
+ /*
+ These files are included to get the sizes
+--- dwarf_init_finish.c.orig Mon Nov 22 19:20:33 2004
++++ dwarf_init_finish.c Fri Feb 11 22:22:30 2005
+@@ -57,7 +57,6 @@
+ #include <sys/types.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+
+ #include "dwarf_incl.h"
+
+--- dwarf_sort_line.c.orig Mon Nov 22 19:20:35 2004
++++ dwarf_sort_line.c Fri Feb 11 22:22:39 2005
+@@ -43,7 +43,6 @@
+ #ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
+ #endif
+-#include <malloc.h>
+
+ #define MINIMUM_POSSIBLE_PROLOG_LEN 10 /* 10 is based on */
+ /* the definition of the DWARF2/3 line table prolog.
diff --git a/devel/libdwarf/files/patch-pro_incl.h b/devel/libdwarf/files/patch-pro_incl.h
new file mode 100644
index 0000000..15cbdef
--- /dev/null
+++ b/devel/libdwarf/files/patch-pro_incl.h
@@ -0,0 +1,21 @@
+--- pro_incl.h.orig Mon Nov 22 19:20:35 2004
++++ pro_incl.h Sat Feb 12 22:17:11 2005
+@@ -38,6 +38,18 @@
+ #ifdef HAVE_ELF_H
+ #include <elf.h>
+ #endif
++#ifdef __SGI_FAST_LIBELF
++#include <libelf_sgi.h>
++#else
++#ifdef HAVE_LIBELF_H
++#include <libelf.h>
++#else
++#ifdef HAVE_LIBELF_LIBELF_H
++#include <libelf/libelf.h>
++#endif
++#endif
++#endif /* !defined(__SGI_FAST_LIBELF) */
++
+
+ /* The target address is given: the place in the source integer
+ is to be determined.
diff --git a/devel/libdwarf/pkg-descr b/devel/libdwarf/pkg-descr
new file mode 100644
index 0000000..b846cf2
--- /dev/null
+++ b/devel/libdwarf/pkg-descr
@@ -0,0 +1,6 @@
+The libdwarf library is the base for the dwarfdump utility
+by the same author. It implements routines to access the
+DWARF debugging information found in ELF object files.
+
+WWW: http://reality.sgi.com/davea/
+Author: David Anderson of SGI
diff --git a/devel/libdwarf/pkg-plist b/devel/libdwarf/pkg-plist
new file mode 100644
index 0000000..5c3c775
--- /dev/null
+++ b/devel/libdwarf/pkg-plist
@@ -0,0 +1,9 @@
+include/dwarf.h
+include/libdwarf.h
+lib/libdwarf.a
+share/doc/libdwarf/dwarf.v2.ps
+share/doc/libdwarf/index.v2.ps
+share/doc/libdwarf/libdwarf2.1.ps
+share/doc/libdwarf/libdwarf2p.1.ps
+share/doc/libdwarf/mips_extensions.ps
+@dirrm share/doc/libdwarf
OpenPOWER on IntegriCloud