summaryrefslogtreecommitdiff
path: root/lang/guile22
diff options
context:
space:
mode:
authorng0 <ng0@pkgsrc.org>2019-11-12 12:41:19 +0000
committerng0 <ng0@pkgsrc.org>2019-11-12 12:41:19 +0000
commitd9b71220665ac4fed5eade39a13fc3193e960c51 (patch)
treee48528f3cabe81196d055e6db2ab71177d91d642 /lang/guile22
parent5faf5329010bb48e3b877f3d7ac56f30d8a55f80 (diff)
downloadpkgsrc-d9b71220665ac4fed5eade39a13fc3193e960c51.tar.gz
guile22: Add module.mk for commonly shared operations.
Diffstat (limited to 'lang/guile22')
-rw-r--r--lang/guile22/module.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/guile22/module.mk b/lang/guile22/module.mk
new file mode 100644
index 00000000000..d8706b107ef
--- /dev/null
+++ b/lang/guile22/module.mk
@@ -0,0 +1,24 @@
+# $NetBSD: module.mk,v 1.1 2019/11/12 12:41:19 ng0 Exp $
+#
+# Common build logic for Guile 2.2 modules using gnu configure.
+#
+# === Package-settable-variables ===
+#
+# GUILE_NEED_BOOTSTRAP
+# Whether the package requires a bootstrap run of autotools
+# or not.
+#
+# Possible values: yes no
+
+.if defined(GNU_CONFIGURE)
+GNU_CONFIGURE_PREFIX= ${PREFIX}/guile/2.2
+CONFIGURE_ARGS+= --libdir=${PREFIX}/guile/2.2/lib
+
+.if defined(GUILE_NEED_BOOTSTRAP)
+USE_TOOLS+= automake autoconf autoreconf
+pre-configure:
+ (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoreconf -I${PREFIX}/guile/2.2/share/aclocal -vif)
+.endif
+
+.include "../../lang/guile22/buildlink3.mk"
+.endif