View | Details | Raw Unified | Return to bug 190833
Collapse All | Expand All

(-)netherearth/Makefile (-7 / +6 lines)
Lines 15-28 Link Here
15
USE_GL=		glut
15
USE_GL=		glut
16
USE_SDL=	sdl mixer
16
USE_SDL=	sdl mixer
17
17
18
NO_STAGE=	yes
19
pre-install:
18
pre-install:
20
	if [ ! -d ${PREFIX}/share/netherearth ] ; then \
19
	if [ ! -d ${STAGEDIR}${PREFIX}/share/netherearth ] ; then \
21
		${MKDIR} ${PREFIX}/share/netherearth ;\
20
		${MKDIR} ${STAGEDIR}${PREFIX}/share/netherearth ;\
22
	fi
21
	fi
23
	${CP} -R ${WRKSRC}/maps ${PREFIX}/share/netherearth/
22
	${CP} -R ${WRKSRC}/maps ${STAGEDIR}${PREFIX}/share/netherearth/
24
	${CP} -R ${WRKSRC}/models ${PREFIX}/share/netherearth/
23
	${CP} -R ${WRKSRC}/models ${STAGEDIR}${PREFIX}/share/netherearth/
25
	${CP} -R ${WRKSRC}/sound ${PREFIX}/share/netherearth/
24
	${CP} -R ${WRKSRC}/sound ${STAGEDIR}${PREFIX}/share/netherearth/
26
	${CP} -R ${WRKSRC}/textures ${PREFIX}/share/netherearth/
25
	${CP} -R ${WRKSRC}/textures ${STAGEDIR}${PREFIX}/share/netherearth/
27
26
28
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)netherearth/files/patch-main.cpp (+21 lines)
Line 0 Link Here
1
--- main.cpp.orig	2014-06-09 19:39:33.355708525 +0400
2
+++ main.cpp	2014-06-09 19:40:20.729705674 +0400
3
@@ -20,6 +20,9 @@
4
 #include "piece3dobject.h"
5
 #include "nether.h"
6
 
7
+#include "GL/gl.h"
8
+#include "GL/glut.h"
9
+
10
 /*                                              GLOBAL VARIABLES INITIALIZATION:                                                        */ 
11
 
12
 int SCREEN_X=640;
13
@@ -158,6 +161,8 @@
14
 	screen_sfc = initialization((fullscreen ? SDL_FULLSCREEN : 0));
15
 	if (screen_sfc==0) return 0;
16
 
17
+	glutInit(&argc, argv);
18
+
19
 	time=init_time=SDL_GetTicks();
20
 
21
 	while (!quit) {

Return to bug 190833