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:
parent
cfa378bddb
commit
64a87b6516
@ -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
|
||||
|
||||
|
14
games/renpy/patches/patch-module_core_c
Normal file
14
games/renpy/patches/patch-module_core_c
Normal 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>
|
15
games/renpy/patches/patch-module_ffdecode_c
Normal file
15
games/renpy/patches/patch-module_ffdecode_c
Normal 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>
|
@ -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")
|
||||
|
15
games/renpy/patches/patch-module_subpixel_c
Normal file
15
games/renpy/patches/patch-module_subpixel_c
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user