pkgsrc-Changes archive

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

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Jun 29 13:04:15 UTC 2020

Modified Files:
        pkgsrc/games: Makefile
        pkgsrc/games/love010: Makefile
        pkgsrc/games/love07: Makefile
        pkgsrc/games/love08: Makefile
        pkgsrc/games/love09: Makefile
Added Files:
        pkgsrc/games/love11: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/games/love11/patches:
            patch-src_libraries_physfs_physfs_platform_unix.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.490 -r1.491 pkgsrc/games/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/love010/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/love07/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/love08/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/love09/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/love11/DESCR pkgsrc/games/love11/Makefile \
    pkgsrc/games/love11/PLIST pkgsrc/games/love11/distinfo \
    pkgsrc/games/love11/options.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.490 pkgsrc/games/Makefile:1.491
--- pkgsrc/games/Makefile:1.490 Thu May 21 08:42:57 2020
+++ pkgsrc/games/Makefile       Mon Jun 29 13:04:14 2020
@@ -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

Index: pkgsrc/games/love010/Makefile
diff -u pkgsrc/games/love010/Makefile:1.4 pkgsrc/games/love010/Makefile:1.5
--- pkgsrc/games/love010/Makefile:1.4   Wed Jun 24 11:24:45 2020
+++ pkgsrc/games/love010/Makefile       Mon Jun 29 13:04:14 2020
@@ -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
 
 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//}

Index: pkgsrc/games/love07/Makefile
diff -u pkgsrc/games/love07/Makefile:1.4 pkgsrc/games/love07/Makefile:1.5
--- pkgsrc/games/love07/Makefile:1.4    Wed Jun 24 12:34:02 2020
+++ pkgsrc/games/love07/Makefile        Mon Jun 29 13:04:14 2020
@@ -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
 
 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

Index: pkgsrc/games/love08/Makefile
diff -u pkgsrc/games/love08/Makefile:1.4 pkgsrc/games/love08/Makefile:1.5
--- pkgsrc/games/love08/Makefile:1.4    Wed Jun 24 12:30:56 2020
+++ pkgsrc/games/love08/Makefile        Mon Jun 29 13:04:14 2020
@@ -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
 
 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//}

Index: pkgsrc/games/love09/Makefile
diff -u pkgsrc/games/love09/Makefile:1.4 pkgsrc/games/love09/Makefile:1.5
--- pkgsrc/games/love09/Makefile:1.4    Fri Jun  5 12:49:06 2020
+++ pkgsrc/games/love09/Makefile        Mon Jun 29 13:04:14 2020
@@ -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
 
 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_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"

Added files:

Index: pkgsrc/games/love11/DESCR
diff -u /dev/null pkgsrc/games/love11/DESCR:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/DESCR   Mon Jun 29 13:04:14 2020
@@ -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.
Index: pkgsrc/games/love11/Makefile
diff -u /dev/null pkgsrc/games/love11/Makefile:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/Makefile        Mon Jun 29 13:04:14 2020
@@ -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"
Index: pkgsrc/games/love11/PLIST
diff -u /dev/null pkgsrc/games/love11/PLIST:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/PLIST   Mon Jun 29 13:04:14 2020
@@ -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
Index: pkgsrc/games/love11/distinfo
diff -u /dev/null pkgsrc/games/love11/distinfo:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/distinfo        Mon Jun 29 13:04:14 2020
@@ -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
Index: pkgsrc/games/love11/options.mk
diff -u /dev/null pkgsrc/games/love11/options.mk:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/options.mk      Mon Jun 29 13:04:14 2020
@@ -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

Index: pkgsrc/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c
diff -u /dev/null pkgsrc/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c:1.1
--- /dev/null   Mon Jun 29 13:04:15 2020
+++ pkgsrc/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c       Mon Jun 29 13:04:15 2020
@@ -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