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

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

Revision 1.1, Mon Jun 29 13:04:14 2020 UTC (3 months, 4 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD

games: Add love11. Based on work by myself and cfkoch in wip

LOVE is a framework for making 2D games in the Lua programming
language. LOVE is totally free, and can be used in anything from
friendly open-source hobby projects, to evil, closed-source commercial
ones.

# $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