freebsd-ports/devel/autoconf-wrapper/Makefile
Dag-Erling Smørgrav d435c982ea Use full path to find, sed and sort, to avoid surprises when other versions
are present (e.g. when building openwrt)

Requested by:	luigi@
Approved by:	portmgr (pav@)
2007-11-09 14:47:27 +00:00

44 lines
1,021 B
Makefile

# New ports collection makefile for: autoconf-wrapper
# Date created: 4th April 2007
# Whom: des
#
# $FreeBSD$
#
PORTNAME?= autoconf-wrapper
PORTVERSION= 20071109
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= des@FreeBSD.org
COMMENT?= Wrapper script for GNU autoconf
WRKSRC= ${WRKDIR}
NO_BUILD= YES
TOOL?= AUTOCONF
WRAPPED_TOOLS?= autoconf autoheader autom4te autoreconf autoscan \
autoupdates ifnames
.include <bsd.port.pre.mk>
TOOLS_CASE!= ${ECHO_CMD} ${WRAPPED_TOOLS} | ${TR} ' ' '|'
PLIST_FILES= bin/${PORTNAME}
.for tool in ${WRAPPED_TOOLS}
PLIST_FILES+= bin/${tool}
.endfor
do-configure:
@${SED} \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%TOOL%%,${TOOL},g' \
-e 's,%%TOOLS_CASE%%,${TOOLS_CASE},g' \
<${FILESDIR}/autotools-wrapper.sh >${WRKDIR}/${PORTNAME}.sh
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
.for tool in ${WRAPPED_TOOLS}
@${LN} -s ${PORTNAME} ${PREFIX}/bin/${tool}
.endfor
.include <bsd.port.post.mk>