aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-10-03 23:33:39 +0800
committertijl <tijl@FreeBSD.org>2014-10-03 23:33:39 +0800
commit751f714f50ac3ccf6e2d9fcd0b94b7f270a49b63 (patch)
treeaacc7e51cf4c8a713e3241b854f16a5ab2cc886c /Mk/Uses
parent70c0982efb45a897747dbf07ed637afbf874c819 (diff)
downloadfreebsd-ports-gnome-751f714f50ac3ccf6e2d9fcd0b94b7f270a49b63.tar.gz
freebsd-ports-gnome-751f714f50ac3ccf6e2d9fcd0b94b7f270a49b63.tar.zst
freebsd-ports-gnome-751f714f50ac3ccf6e2d9fcd0b94b7f270a49b63.zip
Autoreconf runs automake in GNU mode which requires files like AUTHORS,
NEWS and ChangeLog to exist. Let USES=autoreconf deal with that so ports don't have to.
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/autoreconf.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Uses/autoreconf.mk b/Mk/Uses/autoreconf.mk
index 067e3556b03e..ecd3c9ddd90a 100644
--- a/Mk/Uses/autoreconf.mk
+++ b/Mk/Uses/autoreconf.mk
@@ -75,6 +75,10 @@ _INCLUDE_USES_AUTORECONF_POST_MK= yes
.if ! ${autoreconf_ARGS:Mbuild}
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}
+.endfor
@(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/autoreconf -f -i)
.endif