aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.autotools.mk
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2005-06-16 21:52:56 +0000
committerAde Lovett <ade@FreeBSD.org>2005-06-16 21:52:56 +0000
commit130b8f23176c3f3b2724ecedcf7f62fe4df11d2c (patch)
treedbfdea6c404f9b01d7faea6bdf9c0d6ab06ea963 /Mk/bsd.autotools.mk
parent8e963e079989aed4f0e7a1ae3d3303585e0a55c3 (diff)
downloadports-130b8f23176c3f3b2724ecedcf7f62fe4df11d2c.tar.gz
ports-130b8f23176c3f3b2724ecedcf7f62fe4df11d2c.zip
Notes
Diffstat (limited to 'Mk/bsd.autotools.mk')
-rw-r--r--Mk/bsd.autotools.mk26
1 files changed, 23 insertions, 3 deletions
diff --git a/Mk/bsd.autotools.mk b/Mk/bsd.autotools.mk
index caed6ad08831..43004b0b2fac 100644
--- a/Mk/bsd.autotools.mk
+++ b/Mk/bsd.autotools.mk
@@ -33,12 +33,21 @@ Autotools_Include_MAINTAINER= ade@FreeBSD.org
# - Port wishes to use automake, including the configuration step
# - Implies GNU_CONFIGURE?=yes and WANT_AUTOMAKE_VER=<value>
#
+# USE_ACLOCAL_VER=<value>
+# - Port wishes to use aclocal, including the configuration step
+# - Implies GNU_CONFIGURE?=yes and WANT_AUTOMAKE_VER=<value>
+#
# WANT_AUTOMAKE_VER=<value>
# - Port needs access to the automake build environment
#
# AUTOMAKE_ARGS=...
# - Extra arguments passed to automake during configure step
#
+# ACLOCAL_ARGS=...
+# - Arguments passed to aclocal during configure step
+# Defaults to "--acdir=${ACLOCAL_DIR}" if USE_ACLOCAL_VER specified,
+# empty (and unused) otherwise
+#
#---------------------------------------------------------------------------
#
# USE_AUTOCONF_VER=<value>
@@ -100,7 +109,7 @@ BROKEN= "WANT_${i} deprecated: replace with WANT_${i}_VER=..."
.endfor
#---------------------------------------------------------------------------
-# AUTOMAKE
+# AUTOMAKE/ACLOCAL
#---------------------------------------------------------------------------
.if defined(USE_AUTOMAKE_VER)
@@ -108,6 +117,11 @@ WANT_AUTOMAKE_VER?= ${USE_AUTOMAKE_VER}
GNU_CONFIGURE?= yes
.endif
+.if defined(USE_ACLOCAL_VER)
+WANT_AUTOMAKE_VER?= ${USE_ACLOCAL_VER}
+GNU_CONFIGURE?= yes
+.endif
+
.if defined(WANT_AUTOMAKE_VER)
AUTOMAKE_SUFFIX= ${WANT_AUTOMAKE_VER}
@@ -130,12 +144,14 @@ AUTOMAKE_VERSION= ${WANT_AUTOMAKE_VER}
AUTOMAKE_DEPENDS= ${AUTOMAKE}:${PORTSDIR}/devel/automake${AUTOMAKE_SUFFIX}
BUILD_DEPENDS+= ${AUTOMAKE_DEPENDS}
-# XXX: here be dragons, for some reason
-#
. if ${WANT_AUTOMAKE_VER} == 14
AUTOMAKE_ARGS+= -i
. endif
+. if defined(USE_ACLOCAL_VER)
+ACLOCAL_ARGS?= --acdir=${ACLOCAL_DIR}
+. endif
+
.endif
#---------------------------------------------------------------------------
@@ -300,6 +316,10 @@ AUTOHEADER_ENV+=${AUTOTOOLS_VARS}
#
.if !target(run-autotools)
run-autotools:
+. if defined(USE_ACLOCAL_VER)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \
+ ${ACLOCAL_ARGS})
+. endif
. if defined(USE_AUTOMAKE_VER)
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} \
${AUTOMAKE_ARGS})