love07: Allow building without luajit. Should help aarch64 builds.
This commit is contained in:
parent
761fa6864a
commit
f0f0c2eb0b
2 changed files with 23 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.2 2020/06/05 12:49:06 jperkin Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2020/06/24 11:38:26 nia Exp $
|
||||
|
||||
DISTNAME= love-0.7.2-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love07/}
|
||||
|
@ -18,18 +18,15 @@ USE_LANGUAGES= c c++
|
|||
USE_TOOLS+= pkg-config
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
LUA_VERSIONS_INCOMPATIBLE= 52 53
|
||||
|
||||
GNU_CONFIGURE_PREFIX= ${PREFIX}/love0.7
|
||||
|
||||
.include "options.mk"
|
||||
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
||||
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
||||
.include "../../devel/SDL/buildlink3.mk"
|
||||
BUILDLINK_API_DEPENDS.physfs+= physfs>=2.0
|
||||
.include "../../devel/physfs/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"
|
||||
|
|
21
games/love07/options.mk
Normal file
21
games/love07/options.mk
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $NetBSD: options.mk,v 1.1 2020/06/24 11:38:26 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)
|
||||
. include "../../lang/LuaJIT2/buildlink3.mk"
|
||||
.else
|
||||
SUBST_CLASSES+= lua
|
||||
SUBST_STAGE.lua= pre-configure
|
||||
SUBST_FILES.lua= configure
|
||||
SUBST_SED.lua= -e 's,luajit-5.1,lua-5.1,g'
|
||||
. include "../../lang/lua51/buildlink3.mk"
|
||||
.endif
|
Loading…
Reference in a new issue