diff options
author | obache <obache> | 2009-01-24 02:56:19 +0000 |
---|---|---|
committer | obache <obache> | 2009-01-24 02:56:19 +0000 |
commit | 566b76811c14d54e21f08f35bdf63ad032693d2c (patch) | |
tree | c998fcaaf4683998f790cde9efec1afacb2dd1a8 /lang | |
parent | 349f746a8a2ab015f64abb87ad98bf25a3304f8d (diff) | |
download | pkgsrc-566b76811c14d54e21f08f35bdf63ad032693d2c.tar.gz |
Add to PRINT_PLIST_AWK for LUA_LDIR and LUA_CDIR.
Diffstat (limited to 'lang')
-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 |