1 # Created by: ade@FreeBSD.org
8 DISTNAME= autoconf-${PORTVERSION}
10 MAINTAINER= tijl@FreeBSD.org
11 COMMENT= Automatically configure source code on many Un*x platforms
13 BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
14 help2man:${PORTSDIR}/misc/help2man
15 RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
16 autoconf-wrapper:${PORTSDIR}/devel/autoconf-wrapper
19 PLIST_SUB= BUILD_VERSION=${BUILD_VERSION}
20 USES= gmake makeinfo perl5 tar:xz
24 CONFIGURE_ENV= M4=${LOCALBASE}/bin/gm4 AWK=${AWK} \
25 ac_cv_prog_TEST_EMACS=no
26 CONFIGURE_ARGS= --program-suffix=-${BUILD_VERSION} --without-lispdir
28 GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh missing
29 GENERIC_LINKS= autoconf autoheader autom4te autoreconf autoscan autoupdate \
33 @(cd ${WRKSRC}/man && \
34 for file in *.[1x]; do \
35 ${REINPLACE_CMD} -E 's,([^-]auto)(conf|make|reconf|update|header|scan),\1\2-${BUILD_VERSION},g ; \
36 s,(config\.guess|config\.sub|ifnames),\1-${BUILD_VERSION},g' $$file ; \
38 @(cd ${WRKSRC}/doc && ${RM} -f *.info)
39 @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
40 's|@PACKAGE@$$|@PACKAGE@-@VERSION@|'
43 .for FILE in ${GENERIC_TOOLS}
44 @${INSTALL_SCRIPT} ${WRKSRC}/build-aux/${FILE} ${STAGEDIR}${PREFIX}/share/autoconf-${BUILD_VERSION}
47 .include <bsd.port.mk>