summaryrefslogtreecommitdiff
path: root/mk/automake.mk
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2002-10-02 18:10:15 +0000
committerdillo <dillo@pkgsrc.org>2002-10-02 18:10:15 +0000
commit5e15133d7d293a1fca92fcd314162823d51d1fab (patch)
tree0abd86344edecbc04108dad19b551763b72081d2 /mk/automake.mk
parent52d8cd5f57f5bff8c2a7e06f67b31df9bb5e2d84 (diff)
downloadpkgsrc-5e15133d7d293a1fca92fcd314162823d51d1fab.tar.gz
add makefile fragments for packages that need automake / autoconf to build.
Diffstat (limited to 'mk/automake.mk')
-rw-r--r--mk/automake.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/mk/automake.mk b/mk/automake.mk
new file mode 100644
index 00000000000..d64abd84f1a
--- /dev/null
+++ b/mk/automake.mk
@@ -0,0 +1,34 @@
+# $NetBSD: automake.mk,v 1.1 2002/10/02 18:10:16 dillo Exp $
+#
+# makefile fragment for packages that use automake
+# AUTOMAKE_REQD can be set to the minimum version required.
+# It adds a build dependency on the appropriate automake and autoconf
+# packages and sets the following variables:
+# AUTOMAKE: automake binary to use
+# ACLOCAL: aclocal binary to use
+# autoconf required version will default to 2.13 if automake 1.4* is used,
+# and to 2.50 otherwise.
+#
+
+.if !defined(AUTOMAKE_MK)
+AUTOMAKE_MK= # defined
+
+# minimal required version
+AUTOMAKE_REQD?= 1.7
+
+.if ${AUTOMAKE_REQD:M1.4*} == ""
+BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake-devel
+_AUTOMAKE_API_VERSION= 1.7
+AUTOCONF_REQD?= 2.50
+.else
+BUILD_DEPENDS+= automake>=${AUTOMAKE_REQD}:../../devel/automake
+_AUTOMAKE_API_VERSION= 1.4
+AUTOCONF_REQD?= 2.13
+.endif
+
+AUTOMAKE= ${LOCALBASE}/bin/automake-${_AUTOMAKE_API_VERSION}
+ACLOCAL= ${LOCALBASE}/bin/aclocal-${_AUTOMAKE_API_VERSION}
+#AUTOMAKE_SHAREPATH= ${LOCALBASE}/share/automake-${_AUTOMAKE_API_VERSION}
+
+.include "../../mk/autoconf.mk"
+.endif # AUTOMAKE_MK