1995-10-12 08:11:56 +01:00
|
|
|
# New ports collection makefile for: autoconf
|
|
|
|
# Date created: 7 October 1995
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-10-12 08:11:56 +01:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1995-10-12 08:11:56 +01:00
|
|
|
#
|
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= autoconf
|
2002-03-14 14:29:00 +01:00
|
|
|
PORTVERSION= 2.53
|
2004-02-11 20:16:27 +01:00
|
|
|
PORTREVISION= 2
|
1995-11-26 12:29:21 +01:00
|
|
|
CATEGORIES= devel
|
2001-12-23 07:50:33 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= autoconf
|
1995-10-12 08:11:56 +01:00
|
|
|
|
2003-06-10 01:40:13 +02:00
|
|
|
MAINTAINER= ade@FreeBSD.org
|
2004-02-11 20:16:27 +01:00
|
|
|
COMMENT= Automatically configure source code on many Un*x platforms (version 2.53)
|
1995-10-12 08:11:56 +01:00
|
|
|
|
2002-09-16 12:28:33 +02:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
|
|
|
help2man:${PORTSDIR}/misc/help2man
|
1998-05-04 04:41:51 +02:00
|
|
|
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
|
|
|
|
2004-02-11 20:16:27 +01:00
|
|
|
BUILD_VERSION= 253
|
|
|
|
PLIST_SUB= BUILD_VERSION=${BUILD_VERSION}
|
|
|
|
LATEST_LINK= autoconf${BUILD_VERSION}
|
2002-03-14 14:29:00 +01:00
|
|
|
USE_BZIP2= yes
|
2004-02-11 20:16:27 +01:00
|
|
|
USE_GMAKE= yes
|
2003-06-09 17:22:13 +02:00
|
|
|
USE_PERL5_RUN= yes
|
2004-02-11 20:16:27 +01:00
|
|
|
USE_REINPLACE= yes
|
2002-03-14 14:29:00 +01:00
|
|
|
|
1995-10-12 08:11:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-06-29 03:45:09 +02:00
|
|
|
CONFIGURE_ENV= CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
|
2004-02-11 20:16:27 +01:00
|
|
|
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
|
2003-06-29 03:45:09 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-09-16 12:28:33 +02:00
|
|
|
|
2003-06-29 03:45:09 +02:00
|
|
|
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
|
|
|
|
missing mkinstalldirs
|
2002-03-14 14:29:00 +01:00
|
|
|
|
2004-02-11 20:16:27 +01:00
|
|
|
MAN1_PAGES= autoconf autoheader autom4te autoreconf autoscan \
|
|
|
|
autoupdate config.guess config.sub ifnames
|
|
|
|
MAN1= ${MAN1_PAGES:S/$/${BUILD_VERSION}.1/g}
|
1997-06-13 09:33:36 +02:00
|
|
|
|
2002-10-13 13:35:47 +02:00
|
|
|
.if defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER)
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2002-10-13 13:35:47 +02:00
|
|
|
@${ECHO} ===========================================================
|
|
|
|
@${ECHO} "You have 'USE_AUTOCONF' or 'USE_AUTOCONF_VER' variables"
|
|
|
|
@${ECHO} "defined either in environment or in make(1) arguments."
|
|
|
|
@${ECHO} "Please undefine them and try again."
|
|
|
|
@${ECHO} ===========================================================
|
|
|
|
@${FALSE}
|
|
|
|
.endif # defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER)
|
|
|
|
|
2004-02-11 20:16:27 +01:00
|
|
|
post-patch:
|
|
|
|
@(cd ${WRKSRC} && ${REINPLACE_CMD} -E 's,(PACKAGE=autoconf),\1${BUILD_VERSION},' configure)
|
|
|
|
@(cd ${WRKSRC}/man && \
|
|
|
|
for file in *.[1x]; do \
|
|
|
|
${REINPLACE_CMD} -E 's,([^-]auto)(conf|make|reconf|update|header|scan),\1\2${BUILD_VERSION},g ; \
|
|
|
|
s,(config\.guess|config\.sub|ifnames),\1${BUILD_VERSION},g' $$file ; \
|
|
|
|
done)
|
|
|
|
@(cd ${WRKSRC}/doc && \
|
|
|
|
${RM} -f *.info && \
|
|
|
|
${MV} autoconf.texi autoconf${BUILD_VERSION}.texi && \
|
|
|
|
${MV} standards.texi standards${BUILD_VERSION}.texi && \
|
|
|
|
${REINPLACE_CMD} -E 's,(autoconf)\),\1${BUILD_VERSION}\),g' autoconf${BUILD_VERSION}.texi && \
|
|
|
|
${REINPLACE_CMD} -E 's,(autoconf|standards)\.(info|texi),\1${BUILD_VERSION}\.\2,g' Makefile.in)
|
|
|
|
|
2001-12-24 15:34:26 +01:00
|
|
|
post-install:
|
2002-03-14 14:29:00 +01:00
|
|
|
.for FILE in ${GENERIC_TOOLS}
|
2004-02-11 20:16:27 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config/${FILE} ${PREFIX}/share/autoconf${BUILD_VERSION}
|
2001-12-26 16:07:34 +01:00
|
|
|
.endfor
|
2001-12-24 15:34:26 +01:00
|
|
|
|
1995-10-12 08:11:56 +01:00
|
|
|
.include <bsd.port.mk>
|