mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
8915e85728
- Use proper command for manpage installation - Update WWW Approved by: portmgr blanket
43 lines
923 B
Makefile
43 lines
923 B
Makefile
# Created by: joerg@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dwarfdump
|
|
PORTVERSION= 20161124
|
|
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
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libdwarf.a:devel/libdwarf
|
|
|
|
WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/dwarfdump
|
|
|
|
USES= localbase:ldflags
|
|
GNU_CONFIGURE= yes
|
|
|
|
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_MAN} ${WRKSRC}/dwarfdump.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.post.mk>
|