diff options
author | nia <nia@pkgsrc.org> | 2020-06-24 13:28:26 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-06-24 13:28:26 +0000 |
commit | f25c8049cd3201d177a6cdb56d2a155cfd0b0ec7 (patch) | |
tree | f7b08ea683b298b9a5588e0a21372a12f3a88458 /games/solarus | |
parent | 85cd893836528b20c9b3b452bd880f4a82bfeb11 (diff) | |
download | pkgsrc-f25c8049cd3201d177a6cdb56d2a155cfd0b0ec7.tar.gz |
solarus: Make luajit optional. Should help aarch64 builds.
qt5-qttools is a build dependency, not a runtime dependency.
Diffstat (limited to 'games/solarus')
-rw-r--r-- | games/solarus/Makefile | 12 | ||||
-rw-r--r-- | games/solarus/options.mk | 19 |
2 files changed, 24 insertions, 7 deletions
diff --git a/games/solarus/Makefile b/games/solarus/Makefile index e11f3eb0803..a3f45f5daa9 100644 --- a/games/solarus/Makefile +++ b/games/solarus/Makefile @@ -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 @@ HOMEPAGE= http://www.solarus-games.org/solarus/ 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 @@ USE_LANGUAGES= c c++ 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 --git a/games/solarus/options.mk b/games/solarus/options.mk new file mode 100644 index 00000000000..9b647cfc069 --- /dev/null +++ b/games/solarus/options.mk @@ -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 |