2013-09-20 19:03:26 +02:00
|
|
|
# Created by: ijliao
|
2001-07-26 13:59:37 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-07-21 23:12:37 +02:00
|
|
|
PORTNAME= elfio
|
2005-11-18 16:37:49 +01:00
|
|
|
PORTVERSION= 1.0.3
|
2014-03-18 02:01:35 +01:00
|
|
|
PORTREVISION= 4
|
2001-07-26 13:59:37 +02:00
|
|
|
CATEGORIES= devel
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/ELFIO-sources/ELFIO-${PORTVERSION}
|
2014-05-05 11:45:36 +02:00
|
|
|
DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
|
2001-07-26 13:59:37 +02:00
|
|
|
|
2011-10-24 05:33:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= C++ library for reading and generating files in the ELF binary format
|
2001-07-26 13:59:37 +02:00
|
|
|
|
2014-03-18 02:01:35 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2010-12-08 20:58:49 +01:00
|
|
|
BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool
|
2007-06-24 16:32:53 +02:00
|
|
|
|
2003-01-01 23:09:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-06-24 16:32:53 +02:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= aclocal automake autoconf libtool
|
2007-06-24 16:32:53 +02:00
|
|
|
AUTOMAKE_ARGS= -c -a
|
2013-07-16 07:42:36 +02:00
|
|
|
ACLOCAL_ARGS= --automake-acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
|
2006-07-21 23:12:37 +02:00
|
|
|
|
2014-07-15 16:36:12 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS
|
2006-07-21 23:12:37 +02:00
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-07-21 23:12:37 +02:00
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2006-07-21 23:12:37 +02:00
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.endif
|
2001-07-26 13:59:37 +02:00
|
|
|
|
2007-06-24 16:32:53 +02:00
|
|
|
post-patch:
|
|
|
|
@(${FIND} ${WRKSRC}/ -name Makefile.am | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -E -e 's,(libELFIO)\.a,.libs/\1.so,g')
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@(cd ${WRKSRC}/ && \
|
|
|
|
${LIBTOOLIZE} --force --copy --automake)
|
|
|
|
|
2003-01-01 23:09:42 +01:00
|
|
|
post-install:
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-03-18 02:01:35 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-06-04 01:08:23 +02:00
|
|
|
.for file in AUTHORS ChangeLog README
|
2014-03-18 02:01:35 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
2003-01-01 23:09:42 +01:00
|
|
|
.endfor
|
2005-11-18 16:37:49 +01:00
|
|
|
.for f in elf11g.zip tutorial.docbook tutorial.pdf
|
2014-03-18 02:01:35 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
2003-01-01 23:09:42 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2012-06-12 11:17:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-03-18 02:01:35 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2006-07-21 23:12:37 +02:00
|
|
|
@${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \
|
2014-03-18 02:01:35 +01:00
|
|
|
${STAGEDIR}${EXAMPLESDIR}/ \;
|
2006-07-21 23:12:37 +02:00
|
|
|
.endif
|
2001-07-26 13:59:37 +02:00
|
|
|
|
2012-06-12 11:17:03 +02:00
|
|
|
.include <bsd.port.mk>
|