Fix build with py-game 1.9.3.

A bit hackish, but newer renpy versions even forked their own version of
py-game..
This commit is contained in:
landry 2018-04-01 09:30:18 +00:00
parent cfa378bddb
commit 64a87b6516
5 changed files with 51 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2014/08/21 00:49:16 bentley Exp $
# $OpenBSD: Makefile,v 1.10 2018/04/01 09:30:18 landry Exp $
COMMENT = visual novel engine
@ -6,6 +6,7 @@ V = 6.17.7
MODPY_EGG_VERSION = ${V}.521
DISTNAME = renpy-${V}-source
PKGNAME = ${DISTNAME:S/-source//}
REVISION = 0
CATEGORIES = games

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-module_core_c,v 1.1 2018/04/01 09:30:18 landry Exp $
Fix build with pygame 1.9.3
Index: module/core.c
--- module/core.c.orig
+++ module/core.c
@@ -1,5 +1,6 @@
#include "renpy.h"
#include "IMG_savepng.h"
+#define PYGAME_H
#include <pygame/pygame.h>
#include <stdio.h>
#include <math.h>

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-module_ffdecode_c,v 1.3 2018/04/01 09:30:18 landry Exp $
Fix build with pygame 1.9.3
Index: module/ffdecode.c
--- module/ffdecode.c.orig
+++ module/ffdecode.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define NO_PYGAME_C_API
#include <pygame/pygame.h>
#include <math.h>
#include <limits.h>

View File

@ -1,7 +1,8 @@
$OpenBSD: patch-module_setup_py,v 1.1 2014/01/10 18:41:50 landry Exp $
--- module/setup.py.orig Fri Jan 10 19:33:43 2014
+++ module/setup.py Fri Jan 10 19:34:39 2014
@@ -31,6 +31,7 @@ include("libavformat/avformat.h")
$OpenBSD: patch-module_setup_py,v 1.2 2018/04/01 09:30:18 landry Exp $
Index: module/setup.py
--- module/setup.py.orig
+++ module/setup.py
@@ -72,6 +72,7 @@ include("libavformat/avformat.h")
include("libavcodec/avcodec.h")
include("libswscale/swscale.h")
include("GL/glew.h")

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-module_subpixel_c,v 1.1 2018/04/01 09:30:18 landry Exp $
Fix build with pygame 1.9.3
Index: module/subpixel.c
--- module/subpixel.c.orig
+++ module/subpixel.c
@@ -7,6 +7,7 @@
*/
#include "renpy.h"
+#define NO_PYGAME_C_API
#include <pygame/pygame.h>
#include <stdio.h>
#include <math.h>