Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games games: Add love11. Based on work by myself and c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2489c2952c5b
branches:  trunk
changeset: 434978:2489c2952c5b
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jun 29 13:04:14 2020 +0000

description:
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.

diffstat:

 games/Makefile                                                         |   3 +-
 games/love010/Makefile                                                 |   4 +-
 games/love07/Makefile                                                  |   4 +-
 games/love08/Makefile                                                  |   4 +-
 games/love09/Makefile                                                  |  12 +--
 games/love11/DESCR                                                     |   4 +
 games/love11/Makefile                                                  |  42 ++++++++++
 games/love11/PLIST                                                     |   8 +
 games/love11/distinfo                                                  |   7 +
 games/love11/options.mk                                                |  21 +++++
 games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c |  20 ++++
 11 files changed, 113 insertions(+), 16 deletions(-)

diffs (241 lines):

diff -r 362506d70ae5 -r 2489c2952c5b games/Makefile
--- a/games/Makefile    Mon Jun 29 13:04:01 2020 +0000
+++ b/games/Makefile    Mon Jun 29 13:04:14 2020 +0000
@@ -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+=       love07
 SUBDIR+=       love08
 SUBDIR+=       love09
+SUBDIR+=       love11
 SUBDIR+=       lpairs
 SUBDIR+=       lskat
 SUBDIR+=       ltris
diff -r 362506d70ae5 -r 2489c2952c5b games/love010/Makefile
--- a/games/love010/Makefile    Mon Jun 29 13:04:01 2020 +0000
+++ b/games/love010/Makefile    Mon Jun 29 13:04:14 2020 +0000
@@ -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 @@
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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//}
diff -r 362506d70ae5 -r 2489c2952c5b games/love07/Makefile
--- a/games/love07/Makefile     Mon Jun 29 13:04:01 2020 +0000
+++ b/games/love07/Makefile     Mon Jun 29 13:04:14 2020 +0000
@@ -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 @@
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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
diff -r 362506d70ae5 -r 2489c2952c5b games/love08/Makefile
--- a/games/love08/Makefile     Mon Jun 29 13:04:01 2020 +0000
+++ b/games/love08/Makefile     Mon Jun 29 13:04:14 2020 +0000
@@ -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 @@
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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//}
diff -r 362506d70ae5 -r 2489c2952c5b games/love09/Makefile
--- a/games/love09/Makefile     Mon Jun 29 13:04:01 2020 +0000
+++ b/games/love09/Makefile     Mon Jun 29 13:04:14 2020 +0000
@@ -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 @@
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 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_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"
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/DESCR        Mon Jun 29 13:04:14 2020 +0000
@@ -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.
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/Makefile     Mon Jun 29 13:04:14 2020 +0000
@@ -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@localhost
+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"
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/PLIST        Mon Jun 29 13:04:14 2020 +0000
@@ -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
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/distinfo     Mon Jun 29 13:04:14 2020 +0000
@@ -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
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/options.mk   Mon Jun 29 13:04:14 2020 +0000
@@ -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
diff -r 362506d70ae5 -r 2489c2952c5b games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c    Mon Jun 29 13:04:14 2020 +0000
@@ -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++)



Home | Main Index | Thread Index | Old Index