mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= elfio
|
|
PORTVERSION= 1.0.3
|
|
PORTREVISION= 5
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/ELFIO-sources/ELFIO-${PORTVERSION}
|
|
DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= C++ library for reading and generating files in the ELF binary format
|
|
|
|
LICENSE= LGPL21
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USES= libtool
|
|
USE_LDCONFIG= yes
|
|
USE_AUTOTOOLS= aclocal automake autoconf libtoolize
|
|
AUTOMAKE_ARGS= -a -c -f
|
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS
|
|
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
PLIST_SUB+= EXAMPLES=""
|
|
.else
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@(${FIND} ${WRKSRC}/ -name Makefile.am | \
|
|
${XARGS} ${REINPLACE_CMD} -E -e 's,(libELFIO)\.a,\1.la,g')
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in AUTHORS ChangeLog README
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.for f in elf11g.zip tutorial.docbook tutorial.pdf
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \
|
|
${STAGEDIR}${EXAMPLESDIR}/ \;
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|