Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/solarus solarus: Make luajit optional. Should he...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1fec9fba73e1
branches: trunk
changeset: 434866:1fec9fba73e1
user: nia <nia%pkgsrc.org@localhost>
date: Wed Jun 24 13:28:26 2020 +0000
description:
solarus: Make luajit optional. Should help aarch64 builds.
qt5-qttools is a build dependency, not a runtime dependency.
diffstat:
games/solarus/Makefile | 12 +++++-------
games/solarus/options.mk | 19 +++++++++++++++++++
2 files changed, 24 insertions(+), 7 deletions(-)
diffs (62 lines):
diff -r 3ba0999a7beb -r 1fec9fba73e1 games/solarus/Makefile
--- a/games/solarus/Makefile Wed Jun 24 13:25:40 2020 +0000
+++ b/games/solarus/Makefile Wed Jun 24 13:28:26 2020 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.46 2020/06/02 08:23:56 adam Exp $
+# $NetBSD: Makefile,v 1.47 2020/06/24 13:28:26 nia Exp $
VERSION= 1.5.1
DISTNAME= solarus-${VERSION}-src
PKGNAME= ${DISTNAME:S/-src//1}
-PKGREVISION= 23
+PKGREVISION= 24
CATEGORIES= games
MASTER_SITES= http://www.solarus-games.org/downloads/solarus/
@@ -12,6 +12,8 @@
COMMENT= Open-source Zelda-like 2D game engine licensed under GPL
LICENSE= gnu-gpl-v3
+TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
+
WRKSRC= ${WRKDIR}/solarus-${VERSION}
USE_CMAKE= yes
USE_LANGUAGES= c c++
@@ -19,13 +21,9 @@
GCC_REQD+= 4.8
LDFLAGS.SunOS+= -lsocket -lnsl
-.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "options.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../devel/physfs/buildlink3.mk"
-.include "../../lang/LuaJIT2/buildlink3.mk"
-LUA_VERSIONS_ACCEPTED= 51
-BUILDLINK_API_DEPENDS.lua51+= lua51>=5.1.5
-.include "../../lang/lua/buildlink3.mk"
.include "../../audio/libmodplug/buildlink3.mk"
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
diff -r 3ba0999a7beb -r 1fec9fba73e1 games/solarus/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/solarus/options.mk Wed Jun 24 13:28:26 2020 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1 2020/06/24 13:28:26 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.solarus
+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)
+CMAKE_ARGS+= -DSOLARUS_USE_LUAJIT=ON
+. include "../../lang/LuaJIT2/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DSOLARUS_USE_LUAJIT=OFF
+. include "../../lang/lua51/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index