[Midnightbsd-cvs] mports [22346] trunk/Mk/extensions/autoreconf.mk: add autoreconf env var

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Feb 25 12:02:54 EST 2017


Revision: 22346
          http://svnweb.midnightbsd.org/mports/?rev=22346
Author:   laffer1
Date:     2017-02-25 12:02:54 -0500 (Sat, 25 Feb 2017)
Log Message:
-----------
add autoreconf env var

Modified Paths:
--------------
    trunk/Mk/extensions/autoreconf.mk

Modified: trunk/Mk/extensions/autoreconf.mk
===================================================================
--- trunk/Mk/extensions/autoreconf.mk	2017-02-25 16:57:54 UTC (rev 22345)
+++ trunk/Mk/extensions/autoreconf.mk	2017-02-25 17:02:54 UTC (rev 22346)
@@ -55,16 +55,19 @@
 _INCLUDE_USES_AUTORECONF_MK=	yes
 _USES_POST+=	autoreconf
 
-BUILD_DEPENDS+=	autoconf-2.69:${PORTSDIR}/devel/autoconf \
-		autoheader-2.69:${PORTSDIR}/devel/autoconf \
-		autoreconf-2.69:${PORTSDIR}/devel/autoconf \
-		aclocal-1.15:${PORTSDIR}/devel/automake \
-		automake-1.15:${PORTSDIR}/devel/automake
+BUILD_DEPENDS+=	autoconf-2.69:devel/autoconf \
+		autoheader-2.69:devel/autoconf \
+		autoreconf-2.69:devel/autoconf \
+		aclocal-1.15:devel/automake \
+		automake-1.15:devel/automake
 
 .if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild)
-BUILD_DEPENDS+=	libtoolize:${PORTSDIR}/devel/libtool
+BUILD_DEPENDS+=	libtoolize:devel/libtool
 .endif
 
+AUTORECONF?=	${LOCALBASE}/bin/autoreconf
+AUTORECONF_WRKSRC?=	${WRKSRC}
+
 .endif
 
 .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_AUTORECONF_POST_MK)
@@ -74,16 +77,16 @@
 do-autoreconf:
 .for f in AUTHORS ChangeLog INSTALL NEWS README
 # Don't modify time stamps if the files already exist
-	@test -e ${CONFIGURE_WRKSRC}/${f} || ${TOUCH} ${CONFIGURE_WRKSRC}/${f}
+	@test -e ${AUTORECONF_WRKSRC}/${f} || ${TOUCH} ${AUTORECONF_WRKSRC}/${f}
 .endfor
 .if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool}
-	@(cd ${CONFIGURE_WRKSRC} && \
+	@(cd ${AUTORECONF_WRKSRC} && \
 		if test -f configure.ac; then configure=configure.ac; \
 		else configure=configure.in; fi && \
 		if ${EGREP} -q '^(AC|IT)_PROG_INTLTOOL' $${configure}; \
 		then ${LOCALBASE}/bin/intltoolize -f -c; fi)
 .endif
-	@(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/autoreconf -f -i)
+	@(cd ${AUTORECONF_WRKSRC} && ${AUTORECONF} -f -i)
 .endif
 
 .endif



More information about the Midnightbsd-cvs mailing list