diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2006-10-13 19:00:13 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2006-10-13 19:00:13 +0000 |
commit | 5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557 (patch) | |
tree | d4b74226bc6eca6dfbfc6a8274a51cff0bf6672a /devel/dwarfdump | |
parent | fe8c122e4da57d4861f81092ce266d73e2334818 (diff) | |
download | ports-5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557.tar.gz ports-5a6e0a33bac66ab3a8ad69dc5a2f673d69a09557.zip |
Notes
Diffstat (limited to 'devel/dwarfdump')
-rw-r--r-- | devel/dwarfdump/Makefile | 15 |
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> |