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

(-)games/gillo/Makefile (-6 / +8 lines)
Lines 11-28 Link Here
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	Players are cars throwing a magnetic fuzzy ball into a goal
12
COMMENT=	Players are cars throwing a magnetic fuzzy ball into a goal
13
13
14
LICENSE=	GPLv2
15
14
BUILD_DEPENDS=	${JAM}:${PORTSDIR}/devel/jam \
16
BUILD_DEPENDS=	${JAM}:${PORTSDIR}/devel/jam \
15
		${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode \
17
		${LOCALBASE}/lib/libode.a:${PORTSDIR}/devel/ode \
16
		${LOCALBASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib
18
		${LOCALBASE}/lib/libplibsg.a:${PORTSDIR}/x11-toolkits/plib
17
19
20
WRKSRC=		${WRKDIR}/${PORTNAME}
21
18
USE_BZIP2=	yes
22
USE_BZIP2=	yes
19
USE_GL=		gl
23
USE_GL=		gl
20
USE_SDL=	yes
24
USE_SDL=	yes
21
WRKSRC=		${WRKDIR}/${PORTNAME}
22
25
23
JAM?=		${LOCALBASE}/bin/jam
26
JAM?=		${LOCALBASE}/bin/jam
24
27
25
NO_STAGE=	yes
26
post-patch:
28
post-patch:
27
	@${REINPLACE_CMD} -i '' -e 's|SDL/||g' ${WRKSRC}/src/*
29
	@${REINPLACE_CMD} -i '' -e 's|SDL/||g' ${WRKSRC}/src/*
28
	@${REINPLACE_CMD} -e 's|%%SDL_CFLAGS%%|`${SDL_CONFIG} --cflags`|' \
30
	@${REINPLACE_CMD} -e 's|%%SDL_CFLAGS%%|`${SDL_CONFIG} --cflags`|' \
Lines 33-43 Link Here
33
do-build:
35
do-build:
34
	cd ${WRKSRC} && ${SETENV} "C++=${CC}" "LOCALBASE=${LOCALBASE}" \
36
	cd ${WRKSRC} && ${SETENV} "C++=${CC}" "LOCALBASE=${LOCALBASE}" \
35
		"CFLAGS=${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \
37
		"CFLAGS=${CFLAGS} -DDATADIR=\\\"${PREFIX}/share\\\"" \
36
	${JAM} -dx -sPREFIX=${PREFIX}
38
		${JAM} -dx -sPREFIX=${PREFIX}
37
39
38
do-install:
40
do-install:
39
	${INSTALL_PROGRAM} ${WRKSRC}/src/gillo3 ${PREFIX}/bin
41
	(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} gillo3 ${STAGEDIR}${PREFIX}/bin)
40
	@${MKDIR} ${DATADIR}
42
	@${MKDIR} ${STAGEDIR}${DATADIR}
41
	${INSTALL_DATA} ${WRKSRC}/data/*.* ${DATADIR}
43
	(cd ${WRKSRC}/data && ${INSTALL_DATA} *.* ${STAGEDIR}${DATADIR})
42
44
43
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)games/gillo/files/patch-src__goal.cpp (+11 lines)
Line 0 Link Here
1
--- src/goal.cpp.orig
2
+++ src/goal.cpp
3
@@ -22,6 +22,8 @@
4
 
5
 namespace gillo {
6
 
7
+const float Goal::areaRadius = ODE_GOAL_DISTANCE;
8
+
9
 Goal::Goal(Context& c)
10
  : Entity(c)
11
 {
(-)games/gillo/files/patch-src__goal.h (+11 lines)
Line 0 Link Here
1
--- src/goal.h.orig
2
+++ src/goal.h
3
@@ -32,7 +32,7 @@
4
 */
5
 class Goal : public Entity
6
 {
7
-	static const float areaRadius = ODE_GOAL_DISTANCE;
8
+	static const float areaRadius;
9
 	dGeomID		gids[6];
10
 public:
11
     Goal(Context& c);
(-)games/gillo/files/patch-src__simpleball.cpp (+11 lines)
Line 0 Link Here
1
--- src/simpleball.cpp.orig
2
+++ src/simpleball.cpp
3
@@ -26,6 +26,8 @@
4
 const sgVec4 SimpleBall::p1[3] = { {0.3, 0.0, 0.0, 1.0}, {1.0, 0.0, 0.0, 1.0}, {1.0, 0.4, 0.4, 1.0} };
5
 const sgVec4 SimpleBall::ne[3] = { {0.0, 0.0, 0.0, 1}, {0.6, 0.6, 0.6, 1}, {1.0, 1.0, 1.0, 1} };
6
 const sgVec4 SimpleBall::p2[3] = { {0.0, 0.0, 0.3, 1}, {0.0, 0.0, 1.0, 1}, {0.4, 0.4, 1.0, 1} };
7
+const double SimpleBall::weight = ODE_BALL_MASS;
8
+const double SimpleBall::radius = ODE_BALL_RADIUS;
9
 
10
 SimpleBall::SimpleBall(Context& c)
11
 : Entity(c), ballEffectPtr(NULL), possessionIncrement(0), targetSize(2*radius), currentSize(2*radius)
(-)games/gillo/files/patch-src__simpleball.h (+13 lines)
Line 0 Link Here
1
--- src/simpleball.h.orig
2
+++ src/simpleball.h
3
@@ -37,8 +37,8 @@
4
 	static const sgVec4 p1[3];
5
 	static const sgVec4 ne[3];
6
 	static const sgVec4 p2[3];
7
-	static const double weight = ODE_BALL_MASS;
8
-	static const double radius = ODE_BALL_RADIUS;
9
+	static const double weight;
10
+	static const double radius;
11
     
12
 	SimpleBall(Context& c);
13
 	SimpleBall(Context& c, float size, ssgSimpleState* state);

Return to bug 184836