diff options
Diffstat (limited to 'games/love11/options.mk')
-rw-r--r-- | games/love11/options.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/love11/options.mk b/games/love11/options.mk new file mode 100644 index 00000000000..85f8bca12d9 --- /dev/null +++ b/games/love11/options.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.mk,v 1.1 2020/06/29 13:04:14 nia Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.love +PKG_SUPPORTED_OPTIONS= luajit + +.include "../../lang/LuaJIT2/platform.mk" +.if !empty(PLATFORM_SUPPORTS_LUAJIT:M[Yy][Ee][Ss]) +PKG_SUGGESTED_OPTIONS= luajit +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mluajit) +# JIT needs WX mappings +NOT_PAX_MPROTECT_SAFE+= love11/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 |