Prune devel/py-EnthoughtBase
[dports.git] / devel / autoconf / Makefile
1 # Created by: ade@FreeBSD.org
2 # $FreeBSD$
3
4 PORTNAME=       autoconf
5 PORTVERSION=    2.69
6 CATEGORIES=     devel
7 MASTER_SITES=   GNU
8 DISTNAME=       autoconf-${PORTVERSION}
9
10 MAINTAINER=     tijl@FreeBSD.org
11 COMMENT=        Automatically configure source code on many Un*x platforms
12
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
17
18 BUILD_VERSION=  2.69
19 PLIST_SUB=      BUILD_VERSION=${BUILD_VERSION}
20 USES=           gmake makeinfo perl5 tar:xz
21 INFO=           autoconf
22
23 GNU_CONFIGURE=  yes
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
27
28 GENERIC_TOOLS=  config.guess config.sub elisp-comp install-sh mdate-sh missing
29 GENERIC_LINKS=  autoconf autoheader autom4te autoreconf autoscan autoupdate \
30                 ifnames
31
32 post-patch:
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 ; \
37                 done)
38         @(cd ${WRKSRC}/doc && ${RM} -f *.info)
39         @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
40                 's|@PACKAGE@$$|@PACKAGE@-@VERSION@|'
41
42 post-install:
43 .for FILE in ${GENERIC_TOOLS}
44         @${INSTALL_SCRIPT} ${WRKSRC}/build-aux/${FILE} ${STAGEDIR}${PREFIX}/share/autoconf-${BUILD_VERSION}
45 .endfor
46
47 .include <bsd.port.mk>