File:
[cvs.NetBSD.org] /
pkgsrc /
lang /
lua52 /
buildlink3.mk
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Thu Jul 2 21:42:23 2020 UTC (4 years, 5 months ago) by
nia
Branches:
MAIN
CVS tags:
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
HEAD
lua: move cmake bits to per-interpreter buildlink3s
# $NetBSD: buildlink3.mk,v 1.5 2020/07/02 21:42:23 nia Exp $
BUILDLINK_TREE+= lua52
.if !defined(LUA52_BUILDLINK3_MK)
LUA52_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lua52+= lua52>=5.2.0<5.3
BUILDLINK_PKGSRCDIR.lua52?= ../../lang/lua52
.if defined(BUILDLINK_DEPMETHOD.lua)
BUILDLINK_DEPMETHOD.lua52?= ${BUILDLINK_DEPMETHOD.lua}
.endif
# -llua -> -llua5.2
BUILDLINK_TRANSFORM+= l:lua:lua5.2
BUILDLINK_INCDIRS.lua52+= include/lua-5.2
.if defined(USE_CMAKE)
# used by FindLua.cmake
CMAKE_ARGS+= -DLua_FIND_VERSION_EXACT=ON
CMAKE_ARGS+= -DLua_FIND_VERSION_COUNT=2
CMAKE_ARGS+= -DLua_FIND_VERSION_MAJOR=5
CMAKE_ARGS+= -DLua_FIND_VERSION_MINOR=2
.endif
.include "../../mk/readline.buildlink3.mk"
.endif # LUA52_BUILDLINK3_MK
BUILDLINK_TREE+= -lua52
CVSweb <webmaster@jp.NetBSD.org>