diff options
author | nia <nia@pkgsrc.org> | 2020-06-24 12:34:02 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-06-24 12:34:02 +0000 |
commit | 5b0caa391925413756a6ad588cf6c0d50c1400df (patch) | |
tree | 733e53d3eec90bcec825d58353c49fa559251527 /games | |
parent | 309b16e1b8b3003d6cf2fc446c5b359831999930 (diff) | |
download | pkgsrc-5b0caa391925413756a6ad588cf6c0d50c1400df.tar.gz |
love07: Detect Lua properly, etc.
I mistakenly enabled LuaJIT support on supported platforms.
It doesn't actually work in this version of LOVE (oops).
The previous inclusion of LuaJIT's buildlink3.mk was a mistake,
instead the exact version of lua51 should be included and the library
name corrected.
Bump PKGREVISION.
Diffstat (limited to 'games')
-rw-r--r-- | games/love07/Makefile | 12 | ||||
-rw-r--r-- | games/love07/options.mk | 22 |
2 files changed, 9 insertions, 25 deletions
diff --git a/games/love07/Makefile b/games/love07/Makefile index e435de73b17..a7822a74a65 100644 --- a/games/love07/Makefile +++ b/games/love07/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.3 2020/06/24 11:38:26 nia Exp $ +# $NetBSD: Makefile,v 1.4 2020/06/24 12:34:02 nia Exp $ DISTNAME= love-0.7.2-linux-src PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love07/} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= games MASTER_SITES= https://bitbucket.org/rude/love/downloads/ @@ -18,15 +18,21 @@ USE_LANGUAGES= c c++ USE_TOOLS+= pkg-config USE_LIBTOOL= yes +# Avoid detecting unversioned lua in NetBSD. +SUBST_CLASSES+= lua +SUBST_STAGE.lua= pre-configure +SUBST_FILES.lua= configure +SUBST_SED.lua= -e 's,lua lua5.1,lua5.1,g' + 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/lua51/buildlink3.mk" .include "../../devel/devIL/buildlink3.mk" .include "../../devel/libltdl/buildlink3.mk" .include "../../audio/libmodplug/buildlink3.mk" diff --git a/games/love07/options.mk b/games/love07/options.mk deleted file mode 100644 index a535d918382..00000000000 --- a/games/love07/options.mk +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: options.mk,v 1.2 2020/06/24 11:43:54 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) -CONFIGURE_ARGS+= --enable-luajit -. 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 |