From bdaf8c95c809a0cb1aa5dc62fed49ec4df0070b2 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 19 Feb 2019 16:05:37 +0000 Subject: [PATCH] - Fix build by not redefining any OpenGL types --- games/sea-defender/Makefile | 3 +++ games/sea-defender/files/patch-snoutlib_gldefs.h | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 games/sea-defender/files/patch-snoutlib_gldefs.h diff --git a/games/sea-defender/Makefile b/games/sea-defender/Makefile index c2afdda3fc73..4b554f18a69f 100644 --- a/games/sea-defender/Makefile +++ b/games/sea-defender/Makefile @@ -44,6 +44,9 @@ DESKTOP_ENTRIES="Sea Defender" \ OPTIONS_DEFINE= DOCS +post-patch: + @${REINPLACE_CMD} -e '/typedef/ d' ${WRKSRC}/snoutlib/gldefs.h + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sea ${STAGEDIR}${PREFIX}/libexec/${PORTNAME} ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} diff --git a/games/sea-defender/files/patch-snoutlib_gldefs.h b/games/sea-defender/files/patch-snoutlib_gldefs.h deleted file mode 100644 index ef24e8028c9e..000000000000 --- a/games/sea-defender/files/patch-snoutlib_gldefs.h +++ /dev/null @@ -1,11 +0,0 @@ ---- snoutlib/gldefs.h.orig 2013-09-28 23:51:46.789551906 +0200 -+++ snoutlib/gldefs.h 2013-09-28 23:52:40.941548852 +0200 -@@ -94,7 +94,7 @@ - typedef GLboolean (GLFUNCDEF PFNGLISPROGRAMPROC) (GLuint); - typedef GLboolean (GLFUNCDEF PFNGLISSHADERPROC) (GLuint); - typedef void (GLFUNCDEF PFNGLLINKPROGRAMPROC) (GLuint); --typedef void (GLFUNCDEF PFNGLSHADERSOURCEPROC) (GLuint, GLsizei, const GLchar* *, const GLint *); -+typedef void (GLFUNCDEF PFNGLSHADERSOURCEPROC) (GLuint, GLsizei, const GLchar* const *, const GLint *); - typedef void (GLFUNCDEF PFNGLUSEPROGRAMPROC) (GLuint); - typedef void (GLFUNCDEF PFNGLUNIFORM1FPROC) (GLint, GLfloat); - typedef void (GLFUNCDEF PFNGLUNIFORM2FPROC) (GLint, GLfloat, GLfloat);