pkgsrc-WIP-changes archive

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

Import LOVE 11.2.



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <cfkoch%edgebsd.org@localhost>
Pushed By:	cfkoch
Date:		Wed Mar 6 18:27:19 2019 -0800
Changeset:	abc0d3dd79aa9eba33e971b1dc40cdd9e376a5c7

Modified Files:
	Makefile
Added Files:
	love11/DESCR
	love11/Makefile
	love11/PLIST
	love11/distinfo
	love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c

Log Message:
Import LOVE 11.2.

Basically copy-pasted Maya's work altogether, hehe

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=abc0d3dd79aa9eba33e971b1dc40cdd9e376a5c7

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

diffstat:
 Makefile                                           |  1 +
 love11/DESCR                                       |  4 ++
 love11/Makefile                                    | 50 ++++++++++++++++++++++
 love11/PLIST                                       |  8 ++++
 love11/distinfo                                    |  7 +++
 ...tch-src_libraries_physfs_physfs_platform_unix.c | 18 ++++++++
 6 files changed, 88 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index a92457435f..db288115c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2018,6 +2018,7 @@ SUBDIR+=	logfmon-git
 SUBDIR+=	logrotate-git
 SUBDIR+=	logwatch
 SUBDIR+=	lorder
+SUBDIR+=	love11
 SUBDIR+=	lpdsrv
 SUBDIR+=	lrslib
 SUBDIR+=	lscpu
diff --git a/love11/DESCR b/love11/DESCR
new file mode 100644
index 0000000000..98f668291d
--- /dev/null
+++ b/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/love11/Makefile b/love11/Makefile
new file mode 100644
index 0000000000..d90880c725
--- /dev/null
+++ b/love11/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD$
+
+DISTNAME=	love-11.2-linux-src
+PKGNAME=	${DISTNAME:S/-linux-src//:S/love/love11/}
+CATEGORIES=	games
+MASTER_SITES=	https://bitbucket.org/rude/love/downloads/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://love2d.org/
+COMMENT=	Framework for making 2D games in Lua
+LICENSE=	zlib
+
+WRKSRC=		${WRKDIR}/${DISTNAME:S/-linux-src//}
+GNU_CONFIGURE=	yes
+USE_LANGUAGES=	c c++
+
+USE_TOOLS+=	pkg-config
+USE_LIBTOOL=	yes
+
+LUA_VERSIONS_INCOMPATIBLE=	52 53
+
+# JIT needs WX mappings
+NOT_PAX_MPROTECT_SAFE+=		love11/bin/love
+
+GNU_CONFIGURE_PREFIX=		${PREFIX}/love11
+GNU_CONFIGURE_MANDIR=		${PREFIX}/love11/${PKGMANDIR}/
+BUILDLINK_PASSTHRU_DIRS+=	${PREFIX}/love11/lib
+BUILDLINK_PASSTHRU_RPATHDIRS+=	${PREFIX}/love11/lib
+
+.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 "../../devel/zlib/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"
+.include "../../multimedia/libtheora/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../audio/mpg123/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../graphics/mng/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXcursor/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/love11/PLIST b/love11/PLIST
new file mode 100644
index 0000000000..eb4c5bf1ff
--- /dev/null
+++ b/love11/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+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/love11/distinfo b/love11/distinfo
new file mode 100644
index 0000000000..e02ba01e2c
--- /dev/null
+++ b/love11/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (love-11.2-linux-src.tar.gz) = 4511232e7dcd3fcd529e34d4403784d76b658b07
+RMD160 (love-11.2-linux-src.tar.gz) = d988a3ea1c3011fa98a1e40597c6688da7f4971a
+SHA512 (love-11.2-linux-src.tar.gz) = f72148abc890cfb3daf0e3fae564eba0726ae7591e2d2e32b9072ef53a9ca0bda481ee6dadc9cb171ae6ec48d15780daa269dd74ea548b2084a7b9229e7c1509
+Size (love-11.2-linux-src.tar.gz) = 2766364 bytes
+SHA1 (patch-src_libraries_physfs_physfs_platform_unix.c) = 3beac368e70909dd3df64d5046abfd6af8b4e2a4
diff --git a/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c b/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c
new file mode 100644
index 0000000000..6bf6cdd396
--- /dev/null
+++ b/love11/patches/patch-src_libraries_physfs_physfs_platform_unix.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- 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