aboutsummaryrefslogtreecommitdiff
path: root/devel/dwarfdump
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2006-10-13 19:00:13 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2006-10-13 19:00:13 +0000
commit5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557 (patch)
treed4b74226bc6eca6dfbfc6a8274a51cff0bf6672a /devel/dwarfdump
parentfe8c122e4da57d4861f81092ce266d73e2334818 (diff)
downloadports-5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557.tar.gz
ports-5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557.zip
Notes
Diffstat (limited to 'devel/dwarfdump')
-rw-r--r--devel/dwarfdump/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/dwarfdump/Makefile b/devel/dwarfdump/Makefile
index ad5edcdd78bd..51619a5505df 100644
--- a/devel/dwarfdump/Makefile
+++ b/devel/dwarfdump/Makefile
@@ -23,11 +23,24 @@ WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/dwarfdump
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+.if (${MACHINE_ARCH} == "amd64")
+ARCH= x86_64
+.endif
MAN1= dwarfdump.1
+.include <bsd.port.pre.mk>
+
+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 ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/dwarfdump.1 ${PREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>