[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / solarus

File: [cvs.NetBSD.org] / pkgsrc / games / solarus / options.mk (download)

Revision 1.2, Wed Jun 24 13:32:09 2020 UTC (15 months, 4 weeks ago) by nia
Branch: MAIN
Changes since 1.1: +2 -2 lines

Move luajit out of SUPPORTED_OPTIONS where unsupported.

# $NetBSD: options.mk,v 1.2 2020/06/24 13:32:09 nia Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.solarus

.include "../../lang/LuaJIT2/platform.mk"
.if !empty(PLATFORM_SUPPORTS_LUAJIT:M[Yy][Ee][Ss])
PKG_SUPPORTED_OPTIONS=	luajit
PKG_SUGGESTED_OPTIONS=	luajit
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mluajit)
CMAKE_ARGS+=	-DSOLARUS_USE_LUAJIT=ON
.  include "../../lang/LuaJIT2/buildlink3.mk"
.else
CMAKE_ARGS+=	-DSOLARUS_USE_LUAJIT=OFF
.  include "../../lang/lua51/buildlink3.mk"
.endif