blob: 1cc7b3be9fc29ea2d9f1e374d8bc3d2abadfbd23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Created by: joerg@FreeBSD.org
# $FreeBSD$
PORTNAME= dwarfdump
PORTVERSION= 20130207
CATEGORIES= devel
MASTER_SITES= http://www.prevanders.net/
DISTNAME= libdwarf-${PORTVERSION}
MAINTAINER= joerg@FreeBSD.org
COMMENT= Tool to display DWARF debugging information in ELF files
BUILD_DEPENDS= ${LOCALBASE}/lib/libdwarf.a:devel/libdwarf
WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/dwarfdump
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
PLIST_FILES= bin/dwarfdump man/man1/dwarfdump.1.gz
.include <bsd.port.pre.mk>
.if (${ARCH} == "amd64")
ARCH= x86_64
.endif
FILES_TO_PATCH=print_reloc.c
post-patch:
${REINPLACE_CMD} \
-e 's/Elf64_Xword/Elf64_Word/g' \
-e 's/Elf64_Sxword/Elf64_Sword/g' \
${FILES_TO_PATCH:S,^,${WRKSRC}/,}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dwarfdump ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/dwarfdump.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.post.mk>
|