2001-07-26 11:59:37 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: elfio
|
|
|
|
# Date created: Jul 26, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-07-21 21:12:37 +00:00
|
|
|
PORTNAME= elfio
|
2005-11-18 15:37:49 +00:00
|
|
|
PORTVERSION= 1.0.3
|
2007-09-30 04:47:36 +00:00
|
|
|
PORTREVISION= 2
|
2001-07-26 11:59:37 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2006-07-21 21:12:37 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
|
2001-07-26 11:59:37 +00:00
|
|
|
|
2007-03-27 22:12:03 +00:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= C++ library for reading and generating files in the ELF binary format
|
2001-07-26 11:59:37 +00:00
|
|
|
|
2007-06-24 14:32:53 +00:00
|
|
|
BUILD_DEPENDS= libtoolize:${PORTSDIR}/devel/libtool15
|
|
|
|
|
2003-01-01 22:09:42 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-07-21 21:12:37 +00:00
|
|
|
USE_GNOME= gnometarget
|
2007-06-24 14:32:53 +00:00
|
|
|
USE_LDCONFIG= yes
|
2008-08-20 00:57:32 +00:00
|
|
|
USE_AUTOTOOLS= aclocal:19 automake:19 autoconf:262 libtool:15
|
2007-06-24 14:32:53 +00:00
|
|
|
AUTOMAKE_ARGS= -c -a
|
|
|
|
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
|
2006-07-21 21:12:37 +00:00
|
|
|
|
|
|
|
OPTIONS= EXAMPLES "Install sample programms" on
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_EXAMPLES)
|
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.endif
|
2001-07-26 11:59:37 +00:00
|
|
|
|
2007-06-24 14:32:53 +00: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 22:09:42 +00:00
|
|
|
post-install:
|
2005-06-03 23:08:23 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-01-01 22:09:42 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-06-03 23:08:23 +00:00
|
|
|
.for file in AUTHORS ChangeLog README
|
2003-01-01 22:09:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
2005-11-18 15:37:49 +00:00
|
|
|
.for f in elf11g.zip tutorial.docbook tutorial.pdf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
2003-01-01 22:09:42 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2006-07-21 21:12:37 +00:00
|
|
|
.if !defined(WITHOUT_EXAMPLES)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \
|
|
|
|
${EXAMPLESDIR}/ \;
|
|
|
|
.endif
|
2001-07-26 11:59:37 +00:00
|
|
|
|
2006-07-21 21:12:37 +00:00
|
|
|
.include <bsd.port.post.mk>
|