diff options
author | nia <nia@pkgsrc.org> | 2020-06-24 11:24:45 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-06-24 11:24:45 +0000 |
commit | 9df817be41b00081a819212ef2a7f8d327c6a0fb (patch) | |
tree | 088819fe9ccd6fe2c150d1201588b79b1f9193c9 /games | |
parent | b4086ed3ec0c5f787103cf073783148bdd7b73fc (diff) | |
download | pkgsrc-9df817be41b00081a819212ef2a7f8d327c6a0fb.tar.gz |
love010: Allow building without luajit. Should help aarch64 builds.
Diffstat (limited to 'games')
-rw-r--r-- | games/love010/Makefile | 10 | ||||
-rw-r--r-- | games/love010/options.mk | 21 |
2 files changed, 23 insertions, 8 deletions
diff --git a/games/love010/Makefile b/games/love010/Makefile index 0fdb6ebe4c6..2af0c3e8229 100644 --- a/games/love010/Makefile +++ b/games/love010/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2020/06/05 12:49:05 jperkin Exp $ +# $NetBSD: Makefile,v 1.4 2020/06/24 11:24:45 nia Exp $ DISTNAME= love-0.10.2-linux-src PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love010/} @@ -18,16 +18,12 @@ USE_LANGUAGES= c c++ USE_TOOLS+= pkg-config USE_LIBTOOL= yes -LUA_VERSIONS_INCOMPATIBLE= 52 - -# JIT needs WX mappings -NOT_PAX_MPROTECT_SAFE+= love0.10/bin/love - GNU_CONFIGURE_PREFIX= ${PREFIX}/love0.10 GNU_CONFIGURE_MANDIR= ${PREFIX}/love0.10/${PKGMANDIR}/ BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/love0.10/lib BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/love0.10/lib +.include "options.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" .include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../devel/SDL2/buildlink3.mk" @@ -35,8 +31,6 @@ BUILDLINK_API_DEPENDS.physfs+= physfs>=2.0 .include "../../devel/physfs/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../audio/openal-soft/buildlink3.mk" -.include "../../lang/lua/buildlink3.mk" -.include "../../lang/LuaJIT2/buildlink3.mk" .include "../../devel/devIL/buildlink3.mk" .include "../../devel/libltdl/buildlink3.mk" .include "../../audio/libmodplug/buildlink3.mk" diff --git a/games/love010/options.mk b/games/love010/options.mk new file mode 100644 index 00000000000..a4d77860fd8 --- /dev/null +++ b/games/love010/options.mk @@ -0,0 +1,21 @@ +# $NetBSD: options.mk,v 1.1 2020/06/24 11:24:45 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.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 |