summaryrefslogtreecommitdiff
path: root/mk/autoconf.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/autoconf.mk
parent52d8cd5f57f5bff8c2a7e06f67b31df9bb5e2d84 (diff)
downloadpkgsrc-5e15133d7d293a1fca92fcd314162823d51d1fab.tar.gz
add makefile fragments for packages that need automake / autoconf to build.
Diffstat (limited to 'mk/autoconf.mk')
-rw-r--r--mk/autoconf.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/mk/autoconf.mk b/mk/autoconf.mk
new file mode 100644
index 00000000000..eb875d68fed
--- /dev/null
+++ b/mk/autoconf.mk
@@ -0,0 +1,27 @@
+# $NetBSD: autoconf.mk,v 1.1 2002/10/02 18:10:15 dillo Exp $
+#
+# makefile fragment for packages that use autoconf
+# AUTOCONF_REQD can be set to the minimum version required.
+# It adds a build dependency on the appropriate autoconf package
+# and sets the following variables:
+# AUTOCONF: autoconf binary to use
+# AUTOHEADER; autoheader binary to use
+#
+
+.if !defined(AUTOCONF_MK)
+AUTOCONF_MK= # defined
+
+# minimal required version
+AUTOCONF_REQD?= 2.50
+
+.if ${AUTOCONF_REQD:M2.1[0-9]*} == ""
+BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf-devel
+AUTOCONF= ${LOCALBASE}/bin/autoconf
+AUTOHEADER= ${LOCALBASE}/bin/autoheader
+.else
+BUILD_DEPENDS+= autoconf>=${AUTOCONF_REQD}:../../devel/autoconf
+AUTOCONF= ${LOCALBASE}/bin/autoconf
+AUTOHEADER= ${LOCALBASE}/bin/autoheader
+.endif
+
+.endif # AUTOCONF_MK