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

(-)games/glaxium/Makefile (-17 / +13 lines)
Lines 15-43 Link Here
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	An OpenGL based space-ship "shoot-em-up" game
16
COMMENT=	An OpenGL based space-ship "shoot-em-up" game
17
17
18
LIB_DEPENDS=	glut.4:${PORTSDIR}/graphics/libglut \
18
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
19
		png.5:${PORTSDIR}/graphics/png
20
19
20
USE_GNOME=	gnometarget
21
USE_SDL=	sdl mixer
22
USE_GL=		glut
21
USE_GMAKE=	yes
23
USE_GMAKE=	yes
22
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
USE_GL=		yes
25
USE_SDL=	sdl mixer
26
ALL_TARGET=	${PORTNAME}
25
ALL_TARGET=	${PORTNAME}
27
26
28
MAN6=		glaxium.6
27
MAN6=		glaxium.6
29
28
30
.include <bsd.port.pre.mk>
31
32
.if ${OSVERSION} >= 700042
33
BROKEN=		Broken with gcc 4.2
34
.endif
35
36
post-patch:
29
post-patch:
37
	@${REINPLACE_CMD} -i '' -e 's|/usr/X11R6|${X11BASE}|g; \
30
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g; \
38
		s|\$datadir/games/glaxium|\$datadir/glaxium|g' \
31
		 s|/games/glaxium|/glaxium|g' ${WRKSRC}/configure
39
		${WRKSRC}/configure
32
	@${REINPLACE_CMD} -e 's|gcc -g -o|$$(CC) -o|g ; \
40
	@${REINPLACE_CMD} -i '' -e 's|%%X11BASE%%|${X11BASE}|g' \
33
		 s|/games/glaxium|/glaxium|g' ${WRKSRC}/Makefile.in
41
		${WRKSRC}/Makefile.in
34
	@${REINPLACE_CMD} -e 's|Scratcher:: Scratcher|Scratcher|g' \
35
		${WRKSRC}/scratcher.hpp
36
	@${REINPLACE_CMD} -e 's|TankFire::TankFire|TankFire|g' \
37
		${WRKSRC}/tank.hpp
42
38
43
.include <bsd.port.post.mk>
39
.include <bsd.port.mk>
(-)games/glaxium/files/patch-Makefile.in (-16 lines)
Lines 1-16 Link Here
1
--- Makefile.in.orig
2
+++ Makefile.in
3
@@ -15,11 +15,11 @@
4
 
5
 GLAXIUM_INSTALLDIR=$(bindir)
6
 DATA_DIRS=samples textures
7
-GLAXIUM_HOME=$(datadir)/games/glaxium
8
+GLAXIUM_HOME=$(datadir)/glaxium
9
 MAN_DIR=$(mandir)
10
 
11
 glaxium : $(OBJ)
12
-	gcc -g -o glaxium $(OBJ) $(LIB)
13
+	$(CC) -g -o glaxium $(OBJ) $(LIB)
14
 
15
 
16
 
(-)games/glaxium/files/patch-configure.in (-22 lines)
Lines 1-22 Link Here
1
--- configure.in.orig
2
+++ configure.in
3
@@ -10,8 +10,8 @@
4
 dnl Check for SDL
5
 AM_PATH_SDL(1.1.5, , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
6
 
7
-LIBS="$LIBS -L/usr/X11R6/lib $SDL_LIBS"
8
-CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include $SDL_CFLAGS"
9
+LIBS="$LIBS -L%%X11BASE%%/lib $SDL_LIBS"
10
+CPPFLAGS="$CPPFLAGS -I%%X11BASE%%/include $SDL_CFLAGS"
11
 
12
 AC_CHECK_HEADER(SDL.h,  , echo "No SDL.h header... cannot do anything !";exit 12 )
13
 
14
@@ -41,7 +41,7 @@
15
 AC_EGREP_HEADER(PFNGLBINDPROGRAMNVPROC, GL/glext.h,  ,echo "Glaxium won't compile: get a newer version of your openGL header GL/glext.h at <http://oss.sgi.com/projects/ogl-sample/registry/>";exit 12)
16
 
17
 dnl Expand DATADIR
18
-FC_EXPAND_DIR(DATADIR, "$datadir/games/glaxium")
19
+FC_EXPAND_DIR(DATADIR, "$datadir/glaxium")
20
 AC_DEFINE_UNQUOTED(DATADIR, "$DATADIR")
21
 
22
 AC_OUTPUT(Makefile)

Return to bug 113769