games: Add love11. Based on work by myself and cfkoch in wip
LOVE is a framework for making 2D games in the Lua programming language. LOVE is totally free, and can be used in anything from friendly open-source hobby projects, to evil, closed-source commercial ones.
This commit is contained in:
parent
5733970d7f
commit
72553a79d1
11 changed files with 113 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.490 2020/05/21 08:42:57 plunky Exp $
|
||||
# $NetBSD: Makefile,v 1.491 2020/06/29 13:04:14 nia Exp $
|
||||
#
|
||||
|
||||
COMMENT= Games
|
||||
|
@ -262,6 +262,7 @@ SUBDIR+= love010
|
|||
SUBDIR+= love07
|
||||
SUBDIR+= love08
|
||||
SUBDIR+= love09
|
||||
SUBDIR+= love11
|
||||
SUBDIR+= lpairs
|
||||
SUBDIR+= lskat
|
||||
SUBDIR+= ltris
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2020/06/24 11:24:45 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
DISTNAME= love-0.10.2-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love010/}
|
||||
|
@ -8,7 +8,7 @@ MASTER_SITES= https://bitbucket.org/rude/love/downloads/
|
|||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://love2d.org/
|
||||
COMMENT= Framework for making 2D games in Lua
|
||||
COMMENT= Framework for making 2D games in Lua (version 0.10)
|
||||
LICENSE= zlib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-linux-src//}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2020/06/24 12:34:02 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
DISTNAME= love-0.7.2-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love07/}
|
||||
|
@ -8,7 +8,7 @@ MASTER_SITES= https://bitbucket.org/rude/love/downloads/
|
|||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://love2d.org/
|
||||
COMMENT= Framework for making 2D games in Lua
|
||||
COMMENT= Framework for making 2D games in Lua (version 0.7)
|
||||
LICENSE= zlib
|
||||
|
||||
WRKSRC= ${WRKDIR}/love-HEAD
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2020/06/24 12:30:56 nia Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
DISTNAME= love-0.8.0-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love08/}
|
||||
|
@ -8,7 +8,7 @@ MASTER_SITES= https://bitbucket.org/rude/love/downloads/
|
|||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://love2d.org/
|
||||
COMMENT= Framework for making 2D games in Lua
|
||||
COMMENT= Framework for making 2D games in Lua (version 0.8)
|
||||
LICENSE= zlib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-linux-src//}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.4 2020/06/05 12:49:06 jperkin Exp $
|
||||
# $NetBSD: Makefile,v 1.5 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
DISTNAME= love-0.9.2-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love09/}
|
||||
|
@ -8,7 +8,7 @@ MASTER_SITES= https://bitbucket.org/rude/love/downloads/
|
|||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://love2d.org/
|
||||
COMMENT= Framework for making 2D games in Lua
|
||||
COMMENT= Framework for making 2D games in Lua (version 0.9)
|
||||
LICENSE= zlib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-linux-src//}
|
||||
|
@ -18,24 +18,18 @@ USE_LANGUAGES= c c++
|
|||
USE_TOOLS+= pkg-config
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
LUA_VERSIONS_INCOMPATIBLE= 52
|
||||
|
||||
# JIT needs WX mappings
|
||||
NOT_PAX_MPROTECT_SAFE+= love0.9/bin/love
|
||||
|
||||
GNU_CONFIGURE_PREFIX= ${PREFIX}/love0.9
|
||||
GNU_CONFIGURE_MANDIR= ${PREFIX}/love0.9/${PKGMANDIR}/
|
||||
BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/love0.9/lib
|
||||
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/love0.9/lib
|
||||
|
||||
.include "options.mk"
|
||||
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
||||
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
||||
.include "../../devel/SDL2/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"
|
||||
|
|
4
games/love11/DESCR
Normal file
4
games/love11/DESCR
Normal file
|
@ -0,0 +1,4 @@
|
|||
LOVE is a framework for making 2D games in the Lua programming
|
||||
language. LOVE is totally free, and can be used in anything from
|
||||
friendly open-source hobby projects, to evil, closed-source commercial
|
||||
ones.
|
42
games/love11/Makefile
Normal file
42
games/love11/Makefile
Normal file
|
@ -0,0 +1,42 @@
|
|||
# $NetBSD: Makefile,v 1.1 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
DISTNAME= love-11.3-linux-src
|
||||
PKGNAME= ${DISTNAME:S/-linux-src//:S/love/love11/}
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=love2d/}
|
||||
GITHUB_PROJECT= love
|
||||
GITHUB_RELEASE= ${PKGVERSION_NOREV}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://love2d.org/
|
||||
COMMENT= Framework for making 2D games in Lua (version 11.0)
|
||||
LICENSE= zlib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-linux-src//}
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LANGUAGES= c c++
|
||||
|
||||
# checking whether gcc version is at least 4.7...
|
||||
GCC_REQD+= 4.7
|
||||
|
||||
USE_TOOLS+= pkg-config
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
GNU_CONFIGURE_PREFIX= ${PREFIX}/love11
|
||||
GNU_CONFIGURE_MANDIR= ${PREFIX}/love11/${PKGMANDIR}/
|
||||
BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/love11/lib
|
||||
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/love11/lib
|
||||
|
||||
.include "options.mk"
|
||||
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
||||
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
||||
.include "../../devel/SDL2/buildlink3.mk"
|
||||
.include "../../devel/zlib/buildlink3.mk"
|
||||
.include "../../audio/libmodplug/buildlink3.mk"
|
||||
.include "../../audio/libvorbis/buildlink3.mk"
|
||||
.include "../../audio/mpg123/buildlink3.mk"
|
||||
.include "../../audio/openal-soft/buildlink3.mk"
|
||||
.include "../../devel/libltdl/buildlink3.mk"
|
||||
.include "../../graphics/freetype2/buildlink3.mk"
|
||||
.include "../../multimedia/libtheora/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
8
games/love11/PLIST
Normal file
8
games/love11/PLIST
Normal file
|
@ -0,0 +1,8 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2020/06/29 13:04:14 nia Exp $
|
||||
love11/bin/love
|
||||
love11/lib/liblove.la
|
||||
love11/man/man1/love.1
|
||||
love11/share/applications/love.desktop
|
||||
love11/share/icons/hicolor/scalable/mimetypes/application-x-love-game.svg
|
||||
love11/share/mime/packages/love.xml
|
||||
love11/share/pixmaps/love.svg
|
7
games/love11/distinfo
Normal file
7
games/love11/distinfo
Normal file
|
@ -0,0 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.1 2020/06/29 13:04:14 nia Exp $
|
||||
|
||||
SHA1 (love-11.3-linux-src.tar.gz) = d4615bc1ccfbf0de34f4354827e369887fa1d78e
|
||||
RMD160 (love-11.3-linux-src.tar.gz) = a757d77ab58f93e043de32917205ab67ef1075f9
|
||||
SHA512 (love-11.3-linux-src.tar.gz) = d02900bbad658da7127bdbc52ceb8282a725b32d6a17fc51962327411be94f81b2c871d21b3c4bd8492a4ca355c3cfb1f04a7fe010d6c69ae35c7c5d64579e1b
|
||||
Size (love-11.3-linux-src.tar.gz) = 2898851 bytes
|
||||
SHA1 (patch-src_libraries_physfs_physfs_platform_unix.c) = 2a22ef68fa86e2c96d084eb8dce493ab1f4b1009
|
21
games/love11/options.mk
Normal file
21
games/love11/options.mk
Normal file
|
@ -0,0 +1,21 @@
|
|||
# $NetBSD: options.mk,v 1.1 2020/06/29 13:04:14 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+= love11/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
|
|
@ -0,0 +1,20 @@
|
|||
$NetBSD: patch-src_libraries_physfs_physfs_platform_unix.c,v 1.1 2020/06/29 13:04:15 nia Exp $
|
||||
|
||||
NetBSD calls it statvfs instead of statfs.
|
||||
|
||||
--- src/libraries/physfs/physfs_platform_unix.c.orig 2019-03-06 18:03:19.940432285 -0800
|
||||
+++ src/libraries/physfs/physfs_platform_unix.c 2019-03-06 18:04:27.934900028 -0800
|
||||
@@ -79,7 +79,13 @@
|
||||
|
||||
#elif (defined PHYSFS_HAVE_SYS_UCRED_H)
|
||||
int i;
|
||||
+
|
||||
+#if __NetBSD__
|
||||
+ struct statvfs *mntbufp = NULL;
|
||||
+#else
|
||||
struct statfs *mntbufp = NULL;
|
||||
+#endif
|
||||
+
|
||||
int mounts = getmntinfo(&mntbufp, MNT_NOWAIT);
|
||||
|
||||
for (i = 0; i < mounts; i++)
|
Loading…
Reference in a new issue