summaryrefslogtreecommitdiff
path: root/lang/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lang/lua')
-rw-r--r--lang/lua/module.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/lua/module.mk b/lang/lua/module.mk
index 51705af236c..0b52994006a 100644
--- a/lang/lua/module.mk
+++ b/lang/lua/module.mk
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.7 2015/03/05 14:15:45 ryoon Exp $
+# $NetBSD: module.mk,v 1.8 2020/07/09 15:01:53 nia Exp $
#
# This Makefile fragment is intended to be included by packages that
# install Lua modules.
@@ -50,6 +50,9 @@ PRINT_PLIST_AWK+= /^${LUA_CDIR:S|/|\\/|g}/ \
LUA_DOCDIR= share/doc/${PKGBASE}
PLIST_SUBST+= LUA_DOCDIR=${LUA_DOCDIR}
+PRINT_PLIST_AWK+= /^${LUA_DOCDIR:S|/|\\/|g}/ \
+ { gsub(/${LUA_DOCDIR:S|/|\\/|g}/, "$${LUA_DOCDIR}") }
+
LUA_EXAMPLESDIR= share/examples/${PKGBASE}
PLIST_SUBST+= LUA_EXAMPLESDIR=${LUA_EXAMPLESDIR}