aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2006-10-14 03:00:13 +0800
committerjoerg <joerg@FreeBSD.org>2006-10-14 03:00:13 +0800
commit0139b463bc501c08971e2b04f246ac4998d6b03d (patch)
tree65de9b8cfa89186acd63a318845c866d73508c85 /devel
parente0555a9378db1438e7738bf05f2c6733bedaded3 (diff)
downloadfreebsd-ports-graphics-0139b463bc501c08971e2b04f246ac4998d6b03d.tar.gz
freebsd-ports-graphics-0139b463bc501c08971e2b04f246ac4998d6b03d.tar.zst
freebsd-ports-graphics-0139b463bc501c08971e2b04f246ac4998d6b03d.zip
Fix build on amd64. The workaround for Elf64_Xword has been "borrowed"
from devel/libelf. Approved by: portmgr (erwin)
Diffstat (limited to 'devel')
-rw-r--r--devel/dwarfdump/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/dwarfdump/Makefile b/devel/dwarfdump/Makefile
index ad5edcdd78b..51619a5505d 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>