From ce7ac1a8347b59a3d3eea8fe1aecd28a069584b4 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 12 Feb 2005 22:12:15 +0000 Subject: dwarfdump is a utility to display DWARF debugging information in ELF files. Needs libdwarf (and libelf in turn). --- devel/dwarfdump/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/dwarfdump/distinfo | 2 ++ devel/dwarfdump/files/patch-configure | 11 +++++++++++ devel/dwarfdump/files/patch-malloc.h | 10 ++++++++++ devel/dwarfdump/pkg-descr | 5 +++++ devel/dwarfdump/pkg-plist | 1 + 6 files changed, 62 insertions(+) create mode 100644 devel/dwarfdump/Makefile create mode 100644 devel/dwarfdump/distinfo create mode 100644 devel/dwarfdump/files/patch-configure create mode 100644 devel/dwarfdump/files/patch-malloc.h create mode 100644 devel/dwarfdump/pkg-descr create mode 100644 devel/dwarfdump/pkg-plist (limited to 'devel/dwarfdump') diff --git a/devel/dwarfdump/Makefile b/devel/dwarfdump/Makefile new file mode 100644 index 000000000000..2c53610940c8 --- /dev/null +++ b/devel/dwarfdump/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: dwarfdump +# Date created: 11 Feb 2005 +# Whom: joerg@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= dwarfdump +PORTVERSION= 20041122 +CATEGORIES= devel +MASTER_SITES= http://reality.sgi.com/davea/ +DISTNAME= libdwarf-${PORTVERSION} + +MAINTAINER= joerg@FreeBSD.org +COMMENT= A tool to display DWARF debugging information in ELF files + +BUILD_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf \ + ${LOCALBASE}/lib/libdwarf.a:${PORTSDIR}/devel/libdwarf +RUN_DEPENDS= ${LOCALBASE}/lib/libelf.so.0:${PORTSDIR}/devel/libelf + +WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/dwarfdump + +GNU_CONFIGURE= yes +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +MAN1= dwarfdump.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dwarfdump ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/dwarfdump.1 ${PREFIX}/man/man1 + +.include diff --git a/devel/dwarfdump/distinfo b/devel/dwarfdump/distinfo new file mode 100644 index 000000000000..463ae537970c --- /dev/null +++ b/devel/dwarfdump/distinfo @@ -0,0 +1,2 @@ +MD5 (libdwarf-20041122.tar.gz) = f326a50b103ecd9bb7884fd70d7d40cf +SIZE (libdwarf-20041122.tar.gz) = 792298 diff --git a/devel/dwarfdump/files/patch-configure b/devel/dwarfdump/files/patch-configure new file mode 100644 index 000000000000..7a2206dedd3f --- /dev/null +++ b/devel/dwarfdump/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Mon Nov 22 19:20:33 2004 ++++ configure Sat Feb 12 22:55:06 2005 +@@ -3029,7 +3029,7 @@ + + + +-for ac_header in elf.h getopt.h libelf.h libelf/libelf.h sgidefs.h sys/types.h ++for ac_header in getopt.h libelf.h libelf/libelf.h sgidefs.h sys/types.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/dwarfdump/files/patch-malloc.h b/devel/dwarfdump/files/patch-malloc.h new file mode 100644 index 000000000000..3dcce8424d61 --- /dev/null +++ b/devel/dwarfdump/files/patch-malloc.h @@ -0,0 +1,10 @@ +--- makename.c.orig Mon Nov 22 19:20:33 2004 ++++ makename.c Sat Feb 12 22:56:10 2005 +@@ -45,7 +45,6 @@ + */ + + #include +-#include + #include + #include + #include "makename.h" diff --git a/devel/dwarfdump/pkg-descr b/devel/dwarfdump/pkg-descr new file mode 100644 index 000000000000..0342ffa03adc --- /dev/null +++ b/devel/dwarfdump/pkg-descr @@ -0,0 +1,5 @@ +The dwarfdump tool prints the various elements of DWARF debugging +information found in ELF object files. + +WWW: http://reality.sgi.com/davea/ +Author: David Anderson of SGI diff --git a/devel/dwarfdump/pkg-plist b/devel/dwarfdump/pkg-plist new file mode 100644 index 000000000000..0a2514d8d854 --- /dev/null +++ b/devel/dwarfdump/pkg-plist @@ -0,0 +1 @@ +bin/dwarfdump -- cgit v1.2.3