1995-10-12 07:11:56 +00:00
|
|
|
# New ports collection makefile for: autoconf
|
|
|
|
# Date created: 7 October 1995
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-10-12 07:11:56 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1995-10-12 07:11:56 +00:00
|
|
|
#
|
|
|
|
|
2003-06-29 01:45:09 +00:00
|
|
|
PORTNAME= autoconf
|
2003-02-13 23:36:02 +00:00
|
|
|
PORTVERSION= 2.57
|
2002-10-15 05:50:31 +00:00
|
|
|
PORTREVISION= 0
|
1995-11-26 11:29:21 +00:00
|
|
|
CATEGORIES= devel
|
2001-12-23 06:50:33 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= autoconf
|
2003-02-13 23:36:02 +00:00
|
|
|
DISTNAME= autoconf-${PORTVERSION}
|
1995-10-12 07:11:56 +00:00
|
|
|
|
2003-06-09 23:40:13 +00:00
|
|
|
MAINTAINER= ade@FreeBSD.org
|
2003-02-19 10:20:44 +00:00
|
|
|
COMMENT= Automatically configure source code on many Un*x platforms
|
1995-10-12 07:11:56 +00:00
|
|
|
|
2002-09-16 10:28:33 +00:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
|
|
|
|
help2man:${PORTSDIR}/misc/help2man
|
1998-05-04 02:41:51 +00:00
|
|
|
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
|
|
|
|
2003-06-29 01:45:09 +00:00
|
|
|
BUILD_VERSION= 257
|
|
|
|
PLIST_SUB= BUILD_VERSION=${BUILD_VERSION}
|
|
|
|
LATEST_LINK= autoconf${BUILD_VERSION}
|
2002-03-14 13:29:00 +00:00
|
|
|
USE_BZIP2= yes
|
2002-10-15 05:50:31 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PERL5= yes
|
2003-06-29 01:45:09 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-03-14 13:29:00 +00:00
|
|
|
|
1995-10-12 07:11:56 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-19 10:20:44 +00:00
|
|
|
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
|
2002-10-20 20:48:20 +00:00
|
|
|
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
|
2003-06-29 01:45:09 +00:00
|
|
|
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-09-16 10:28:33 +00:00
|
|
|
|
2003-06-29 01:45:09 +00:00
|
|
|
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
|
|
|
|
missing mkinstalldirs
|
2002-03-14 13:29:00 +00:00
|
|
|
|
2003-06-29 01:45:09 +00:00
|
|
|
MAN1_PAGES= autoconf autoheader autom4te autoreconf autoscan \
|
|
|
|
autoupdate config.guess config.sub ifnames
|
|
|
|
MAN1= ${MAN1_PAGES:S/$/${BUILD_VERSION}.1/g}
|
1995-10-12 07:11:56 +00:00
|
|
|
|
2002-10-13 11:35:47 +00:00
|
|
|
.if defined(USE_AUTOCONF) || defined(USE_AUTOCONF_VER)
|
2003-02-28 22:53:02 +00:00
|
|
|
pre-everything::
|
2002-10-13 11:35:47 +00: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)
|
|
|
|
|
2003-06-29 01:45:09 +00: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 14:34:26 +00:00
|
|
|
post-install:
|
2002-03-14 13:29:00 +00:00
|
|
|
.for FILE in ${GENERIC_TOOLS}
|
2003-06-29 01:45:09 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config/${FILE} ${PREFIX}/share/autoconf${BUILD_VERSION}
|
2001-12-26 15:07:34 +00:00
|
|
|
.endfor
|
2001-12-24 14:34:26 +00:00
|
|
|
|
2003-06-29 01:45:09 +00:00
|
|
|
.include <bsd.port.mk>
|