- Fix build by not redefining any OpenGL types

This commit is contained in:
Dmitry Marakasov 2019-02-19 16:05:37 +00:00
parent 3eb5c6a3df
commit bdaf8c95c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=493371
2 changed files with 3 additions and 11 deletions

View File

@ -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}

View File

@ -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);