diff options
author | obache <obache@pkgsrc.org> | 2009-01-24 02:56:19 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-01-24 02:56:19 +0000 |
commit | e4a95c963b9e2efda46ab6be89ebe29463666f27 (patch) | |
tree | c998fcaaf4683998f790cde9efec1afacb2dd1a8 /lang/lua | |
parent | 96dbba66e9ba90c78468ee392a9aa6d09bb4fa2b (diff) | |
download | pkgsrc-e4a95c963b9e2efda46ab6be89ebe29463666f27.tar.gz |
Add to PRINT_PLIST_AWK for LUA_LDIR and LUA_CDIR.
Diffstat (limited to 'lang/lua')
-rw-r--r-- | lang/lua/module.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/lua/module.mk b/lang/lua/module.mk index fa330b9c0b5..b3348dee96c 100644 --- a/lang/lua/module.mk +++ b/lang/lua/module.mk @@ -1,4 +1,4 @@ -# $NetBSD: module.mk,v 1.1 2009/01/11 23:15:55 minskim Exp $ +# $NetBSD: module.mk,v 1.2 2009/01/24 02:56:19 obache Exp $ # # This Makefile fragment is intended to be included by packages that # install Lua packages. @@ -14,6 +14,11 @@ LUA_PKGPREFIX= lua LUA_LDIR= share/lua/${_LUA_VERSION} PLIST_SUBST+= LUA_LDIR=${LUA_LDIR} +PRINT_PLIST_AWK+= /^@dirrm share\/lua$$/ { next; } +PRINT_PLIST_AWK+= /^@dirrm ${LUA_LDIR:S|/|\\/|g}$$/ { next; } +PRINT_PLIST_AWK+= /^(@dirrm )?${LUA_LDIR:S|/|\\/|g}/ \ + { gsub(/${LUA_LDIR:S|/|\\/|g}/, "$${LUA_LDIR}"); print; next; } + .if defined(NO_BUILD) && empty(NO_BUILD:M[Nn][Oo]) DEPENDS+= lua-${_LUA_VERSION}.*:../../lang/lua .else @@ -22,6 +27,11 @@ PLIST_SUBST+= LUA_CDIR=${LUA_CDIR} BUILDLINK_API_DEPENDS.lua+= lua-${_LUA_VERSION}.* +PRINT_PLIST_AWK+= /^@dirrm lib\/lua$$/ { next; } +PRINT_PLIST_AWK+= /^@dirrm ${LUA_CDIR:S|/|\\/|g}$$/ { next; } +PRINT_PLIST_AWK+= /^(@dirrm )?${LUA_CDIR:S|/|\\/|g}/ \ + { gsub(/${LUA_CDIR:S|/|\\/|g}/, "$${LUA_CDIR}"); print; next; } + .include "../../lang/lua/buildlink3.mk" .endif |