FreeBSD Bugzilla – Attachment 143569 Details for
Bug 190833
games/netherearth: stagify, fixes for glutInit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
stage support for games/netherearth
netherearth.patch (text/plain), 1.81 KB, created by
Oleg Ginzburg
on 2014-06-09 16:04:34 UTC
(
hide
)
Description:
stage support for games/netherearth
Filename:
MIME Type:
Creator:
Oleg Ginzburg
Created:
2014-06-09 16:04:34 UTC
Size:
1.81 KB
patch
obsolete
>diff -ruN netherearth.bak/Makefile netherearth/Makefile >--- netherearth.bak/Makefile 2014-04-18 17:21:10.000000000 +0400 >+++ netherearth/Makefile 2014-06-09 19:45:07.000000000 +0400 >@@ -15,14 +15,13 @@ > USE_GL= glut > USE_SDL= sdl mixer > >-NO_STAGE= yes > pre-install: >- if [ ! -d ${PREFIX}/share/netherearth ] ; then \ >- ${MKDIR} ${PREFIX}/share/netherearth ;\ >+ if [ ! -d ${STAGEDIR}${PREFIX}/share/netherearth ] ; then \ >+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/netherearth ;\ > fi >- ${CP} -R ${WRKSRC}/maps ${PREFIX}/share/netherearth/ >- ${CP} -R ${WRKSRC}/models ${PREFIX}/share/netherearth/ >- ${CP} -R ${WRKSRC}/sound ${PREFIX}/share/netherearth/ >- ${CP} -R ${WRKSRC}/textures ${PREFIX}/share/netherearth/ >+ ${CP} -R ${WRKSRC}/maps ${STAGEDIR}${PREFIX}/share/netherearth/ >+ ${CP} -R ${WRKSRC}/models ${STAGEDIR}${PREFIX}/share/netherearth/ >+ ${CP} -R ${WRKSRC}/sound ${STAGEDIR}${PREFIX}/share/netherearth/ >+ ${CP} -R ${WRKSRC}/textures ${STAGEDIR}${PREFIX}/share/netherearth/ > > .include <bsd.port.mk> >diff -ruN netherearth.bak/files/patch-main.cpp netherearth/files/patch-main.cpp >--- netherearth.bak/files/patch-main.cpp 1970-01-01 03:00:00.000000000 +0300 >+++ netherearth/files/patch-main.cpp 2014-06-09 19:40:27.000000000 +0400 >@@ -0,0 +1,21 @@ >+--- main.cpp.orig 2014-06-09 19:39:33.355708525 +0400 >++++ main.cpp 2014-06-09 19:40:20.729705674 +0400 >+@@ -20,6 +20,9 @@ >+ #include "piece3dobject.h" >+ #include "nether.h" >+ >++#include "GL/gl.h" >++#include "GL/glut.h" >++ >+ /* GLOBAL VARIABLES INITIALIZATION: */ >+ >+ int SCREEN_X=640; >+@@ -158,6 +161,8 @@ >+ screen_sfc = initialization((fullscreen ? SDL_FULLSCREEN : 0)); >+ if (screen_sfc==0) return 0; >+ >++ glutInit(&argc, argv); >++ >+ time=init_time=SDL_GetTicks(); >+ >+ while (!quit) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190833
: 143569