diff options
-rw-r--r-- | games/Makefile | 3 | ||||
-rw-r--r-- | games/love010/Makefile | 4 | ||||
-rw-r--r-- | games/love07/Makefile | 4 | ||||
-rw-r--r-- | games/love08/Makefile | 4 | ||||
-rw-r--r-- | games/love09/Makefile | 12 | ||||
-rw-r--r-- | games/love11/DESCR | 4 | ||||
-rw-r--r-- | games/love11/Makefile | 42 | ||||
-rw-r--r-- | games/love11/PLIST | 8 | ||||
-rw-r--r-- | games/love11/distinfo | 7 | ||||
-rw-r--r-- | games/love11/options.mk | 21 | ||||
-rw-r--r-- | games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c | 20 |
11 files changed, 113 insertions, 16 deletions
diff --git a/games/Makefile b/games/Makefile index e8f702de4e3..2f7878b7fab 100644 --- a/games/Makefile +++ b/games/Makefile @@ -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 diff --git a/games/love010/Makefile b/games/love010/Makefile index 2af0c3e8229..dc0d3d133f8 100644 --- a/games/love010/Makefile +++ b/games/love010/Makefile @@ -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//} diff --git a/games/love07/Makefile b/games/love07/Makefile index a7822a74a65..1413be01a96 100644 --- a/games/love07/Makefile +++ b/games/love07/Makefile @@ -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 diff --git a/games/love08/Makefile b/games/love08/Makefile index 0a8fffe9bb3..7e9806f585d 100644 --- a/games/love08/Makefile +++ b/games/love08/Makefile @@ -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//} diff --git a/games/love09/Makefile b/games/love09/Makefile index 383a9ff1202..b38db54dd98 100644 --- a/games/love09/Makefile +++ b/games/love09/Makefile @@ -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" diff --git a/games/love11/DESCR b/games/love11/DESCR new file mode 100644 index 00000000000..98f668291da --- /dev/null +++ b/games/love11/DESCR @@ -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 --git a/games/love11/Makefile b/games/love11/Makefile new file mode 100644 index 00000000000..94ad4ae2147 --- /dev/null +++ b/games/love11/Makefile @@ -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" diff --git a/games/love11/PLIST b/games/love11/PLIST new file mode 100644 index 00000000000..c35d5697556 --- /dev/null +++ b/games/love11/PLIST @@ -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 --git a/games/love11/distinfo b/games/love11/distinfo new file mode 100644 index 00000000000..68b523a2f8c --- /dev/null +++ b/games/love11/distinfo @@ -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 --git a/games/love11/options.mk b/games/love11/options.mk new file mode 100644 index 00000000000..85f8bca12d9 --- /dev/null +++ b/games/love11/options.mk @@ -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 --git a/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c b/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c new file mode 100644 index 00000000000..5f4a97b2ea9 --- /dev/null +++ b/games/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c @@ -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++) |