File:
[cvs.NetBSD.org] /
pkgsrc /
lang /
lua54 /
buildlink3.mk
Revision
1.4:
download - view:
text,
annotated -
select for diffs
Sat Mar 25 18:55:47 2023 UTC (20 months, 2 weeks ago) by
wiz
Branches:
MAIN
CVS tags:
pkgsrc-2024Q2-base,
pkgsrc-2024Q2,
pkgsrc-2024Q1-base,
pkgsrc-2024Q1,
pkgsrc-2023Q4-base,
pkgsrc-2023Q4,
pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
HEAD
lua*: honor BUILD_USES_CMAKE
# $NetBSD: buildlink3.mk,v 1.4 2023/03/25 18:55:47 wiz Exp $
BUILDLINK_TREE+= lua54
.if !defined(LUA54_BUILDLINK3_MK)
LUA54_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lua54+= lua54>=5.4.0<5.5
BUILDLINK_PKGSRCDIR.lua54?= ../../lang/lua54
.if defined(BUILDLINK_DEPMETHOD.lua)
BUILDLINK_DEPMETHOD.lua54?= ${BUILDLINK_DEPMETHOD.lua}
.endif
# -llua -> -llua5.4
BUILDLINK_TRANSFORM+= l:lua:lua5.4
BUILDLINK_INCDIRS.lua54+= include/lua-5.4
.if defined(USE_CMAKE) || defined(BUILD_USES_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=4
.endif
.include "../../mk/readline.buildlink3.mk"
.endif # LUA54_BUILDLINK3_MK
BUILDLINK_TREE+= -lua54
CVSweb <webmaster@jp.NetBSD.org>