Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/love09 love09: Add options.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a228ea298425
branches:  trunk
changeset: 435187:a228ea298425
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 01 16:39:58 2020 +0000

description:
love09: Add options.mk

diffstat:

 games/love09/options.mk |  23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r 9b2a69f7b4e1 -r a228ea298425 games/love09/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love09/options.mk   Wed Jul 01 16:39:58 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2020/07/01 16:39:58 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+=                love0.9/bin/love
+CONFIGURE_ARGS+=               --with-lua=luajit
+.  include "../../lang/LuaJIT2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=               --with-lua=lua
+CONFIGURE_ARGS+=               --with-luaversion=-5.1
+.  include "../../lang/lua51/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index