bfe67690cc
Approved by: portmgr (blanket)
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# Created by: joerg@FreeBSD.org
|
|
|
|
PORTNAME= libdwarf
|
|
PORTVERSION= 20161124
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://www.prevanders.net/ \
|
|
http://pkgs.fedoraproject.org/repo/pkgs/libdwarf/
|
|
|
|
MAINTAINER= joerg@FreeBSD.org
|
|
COMMENT= Library to analyze DWARF debugging information in ELF files
|
|
|
|
LICENSE= LGPL21
|
|
|
|
CONFLICTS_INSTALL= bsdlibdwarf*
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/dwarf-${PORTVERSION}/libdwarf
|
|
|
|
GNU_CONFIGURE= yes
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I. -I${LOCALBASE}/include
|
|
|
|
USES= cpe dos2unix
|
|
CPE_VENDOR= ${PORTNAME}_project
|
|
DOS2UNIX_GLOB= *.h
|
|
|
|
PS_FILES= libdwarf2.1.pdf libdwarf2p.1.pdf mips_extensions.pdf
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/libdwarf.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/dwarf.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libdwarf.h ${STAGEDIR}${PREFIX}/include
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/libdwarf
|
|
.for f in ${PS_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/share/doc/libdwarf
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|