Annotation of pkgsrc/lang/lua/module.mk, revision 1.6

1.6     ! alnsn       1: # $NetBSD: module.mk,v 1.5 2013/10/30 06:18:09 dholland 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: 
        !            53: LUA_EXAMPLESDIR=       share/examples/${PKGBASE}
        !            54: PLIST_SUBST+=          LUA_EXAMPLESDIR=${LUA_EXAMPLESDIR}
        !            55: 
1.1       minskim    56: .endif  # LUA_MODULE_MK

CVSweb <webmaster@jp.NetBSD.org>