Annotation of pkgsrc/lang/lua/module.mk, revision 1.8
1.8 ! nia 1: # $NetBSD: module.mk,v 1.7 2015/03/05 14:15:45 ryoon Exp $
1.1 minskim 2: #
3: # This Makefile fragment is intended to be included by packages that
1.6 alnsn 4: # install Lua modules.
5: #
6: # === Defined variables ===
7: #
8: # LUA_LDIR
9: # Path where Lua modules are installed.
10: #
11: # LUA_CDIR
12: # Path where Lua C modules are installed. Not defined if
13: # NO_BUILD variable is set to "yes".
14: #
15: # LUA_DOCDIR
16: # Path where documentation files are installed.
17: #
18: # LUA_EXAMPLESDIR
19: # Path where example files are installed.
20: #
21: # Keywords: lua
22: #
1.1 minskim 23:
24: .if !defined(LUA_MODULE_MK)
25: LUA_MODULE_MK= # defined
26:
1.6 alnsn 27: .if !defined(LUA_LUAVERSION_MK)
1.5 dholland 28: .include "../../lang/lua/luaversion.mk"
1.6 alnsn 29: .endif
1.1 minskim 30:
1.5 dholland 31: LUA_LDIR= share/lua/${_LUA_DOT_VERSION}
1.1 minskim 32: PLIST_SUBST+= LUA_LDIR=${LUA_LDIR}
33:
1.6 alnsn 34: PRINT_PLIST_AWK+= /^${LUA_LDIR:S|/|\\/|g}/ \
35: { gsub(/${LUA_LDIR:S|/|\\/|g}/, "$${LUA_LDIR}") }
36:
1.1 minskim 37: .if defined(NO_BUILD) && empty(NO_BUILD:M[Nn][Oo])
1.5 dholland 38: DEPENDS+= ${LUA_BASEDEPENDS}
39:
1.1 minskim 40: .else
1.5 dholland 41: LUA_CDIR= lib/lua/${_LUA_DOT_VERSION}
1.1 minskim 42: PLIST_SUBST+= LUA_CDIR=${LUA_CDIR}
43:
1.4 joerg 44: PRINT_PLIST_AWK+= /^${LUA_CDIR:S|/|\\/|g}/ \
45: { gsub(/${LUA_CDIR:S|/|\\/|g}/, "$${LUA_CDIR}") }
46:
1.5 dholland 47: .include "${LUA_PKGSRCDIR}/buildlink3.mk"
1.1 minskim 48: .endif
49:
1.6 alnsn 50: LUA_DOCDIR= share/doc/${PKGBASE}
51: PLIST_SUBST+= LUA_DOCDIR=${LUA_DOCDIR}
52:
1.8 ! nia 53: PRINT_PLIST_AWK+= /^${LUA_DOCDIR:S|/|\\/|g}/ \
! 54: { gsub(/${LUA_DOCDIR:S|/|\\/|g}/, "$${LUA_DOCDIR}") }
! 55:
1.6 alnsn 56: LUA_EXAMPLESDIR= share/examples/${PKGBASE}
57: PLIST_SUBST+= LUA_EXAMPLESDIR=${LUA_EXAMPLESDIR}
58:
1.7 ryoon 59: LDFLAGS.Cygwin+= -llua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
60:
1.1 minskim 61: .endif # LUA_MODULE_MK
CVSweb <webmaster@jp.NetBSD.org>