diff options
author | alnsn <alnsn@pkgsrc.org> | 2014-05-03 13:00:44 +0000 |
---|---|---|
committer | alnsn <alnsn@pkgsrc.org> | 2014-05-03 13:00:44 +0000 |
commit | da499f3dfeb25e7fe783f8ed7744f37e674f9f78 (patch) | |
tree | c339de9879e29da7d839e2bc71a8658a92217e0b /lang/lua51/buildlink3.mk | |
parent | 7e4185969545b7f45005a211a33edc8e59a7ad74 (diff) | |
download | pkgsrc-da499f3dfeb25e7fe783f8ed7744f37e674f9f78.tar.gz |
Multiversion support for Lua.
Diffstat (limited to 'lang/lua51/buildlink3.mk')
-rw-r--r-- | lang/lua51/buildlink3.mk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/lua51/buildlink3.mk b/lang/lua51/buildlink3.mk index 541a9a4323f..6463de8d92f 100644 --- a/lang/lua51/buildlink3.mk +++ b/lang/lua51/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.2 2013/10/30 08:59:36 obache Exp $ +# $NetBSD: buildlink3.mk,v 1.3 2014/05/03 13:00:44 alnsn Exp $ BUILDLINK_TREE+= lua51 @@ -8,7 +8,17 @@ LUA51_BUILDLINK3_MK:= BUILDLINK_API_DEPENDS.lua51+= lua51>=5.1.1<5.2 BUILDLINK_PKGSRCDIR.lua51?= ../../lang/lua51 -.include "../../devel/readline/buildlink3.mk" +.if defined(BUILDLINK_DEPMETHOD.lua) +BUILDLINK_DEPMETHOD.lua51?= ${BUILDLINK_DEPMETHOD.lua} +.endif + +# -llua -> -llua5.1 +BUILDLINK_TRANSFORM+= l:lua:lua5.1 +BUILDLINK_INCDIRS.lua51+= include/lua-5.1 + +BUILDLINK_FNAME_TRANSFORM.lua51+= -e 's|lib/pkgconfig/lua-5.1.pc|lib/pkgconfig/lua.pc|' + +.include "../../mk/readline.buildlink3.mk" .endif # LUA51_BUILDLINK3_MK BUILDLINK_TREE+= -lua51 |