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

File: [cvs.NetBSD.org] / pkgsrc / games / love010 / 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.love

.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)
# JIT needs WX mappings
NOT_PAX_MPROTECT_SAFE+=		love0.10/bin/love
.  include "../../lang/LuaJIT2/buildlink3.mk"
.else
CONFIGURE_ARGS+=		--with-lua=lua
CONFIGURE_ARGS+=		--with-luaversion=-5.1
.  include "../../lang/lua51/buildlink3.mk"
.endif