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

(-)qonk/Makefile (-32 / +13 lines)
Lines 6-49 Link Here
6
#
6
#
7
7
8
PORTNAME=	qonk
8
PORTNAME=	qonk
9
DISTVERSION=	0.0.2beta1
9
PORTVERSION=	0.3.1
10
PORTREVISION=	1
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	http://anthony.liekens.net/pub/files/
11
MASTER_SITES=	SF
13
12
14
MAINTAINER=	alepulver@FreeBSD.org
13
MAINTAINER=	alepulver@FreeBSD.org
15
COMMENT=	Small build and conquer strategy game
14
COMMENT=	Small space build and conquer strategy game
16
15
16
GNU_CONFIGURE=	yes
17
USE_GMAKE=	yes
17
USE_GMAKE=	yes
18
USE_SDL=	gfx sdl ttf
18
USE_SDL=	sdl gfx ttf image
19
19
20
OPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
20
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
21
21
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
22
.include <bsd.port.pre.mk>
22
		LDFLAGS="-L${LOCALBASE}/lib"
23
23
24
post-patch:
24
post-patch:
25
# Fix Makefile.
25
	@${REINPLACE_CMD} -e 's|-lSDL |`${SDL_CONFIG} --libs` |' \
26
	@${REINPLACE_CMD} -e 's|g++|${CXX}| ; \
26
		${WRKSRC}/configure
27
		s|sdl-config|${SDL_CONFIG}| ; \
27
	@${REINPLACE_CMD} -e 's|settings.h|../&|; s|canvas.h|../&|' \
28
		s|\(-O3\)|${CFLAGS} \1|' \
28
		${WRKSRC}/src/ui/menusystem.cpp
29
		${WRKSRC}/${MAKEFILE}
30
31
# Fix paths to ${DATADIR}.
32
	@${REINPLACE_CMD} -e 's|\(font\.ttf\)|${DATADIR}/\1|' \
33
		${WRKSRC}/main.cpp ${WRKSRC}/messages.cpp
34
35
# Enable/disable compilation optimizations.
36
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
37
	@${REINPLACE_CMD} -e 's|-O3||' \
38
		${WRKSRC}/${MAKEFILE}
39
.endif
40
41
do-install:
42
# Program.
43
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
44
45
# Data.
46
	${MKDIR} ${DATADIR}
47
	${INSTALL_DATA} ${WRKSRC}/font.ttf ${DATADIR}
48
29
49
.include <bsd.port.post.mk>
30
.include <bsd.port.mk>
(-)qonk/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qonk-0.0.2beta1.tar.gz) = d3f445f94c11c5d2ac1c4ca4533ba412
1
MD5 (qonk-0.3.1.tar.gz) = 9491980477ac5beb5bba6b8234d2ddfd
2
SHA256 (qonk-0.0.2beta1.tar.gz) = 3dd5add09f1fc4c9c3d00e125509197b13b70d586c3595f01f565a794eca8f64
2
SHA256 (qonk-0.3.1.tar.gz) = b327f46410ab7a83d33746a91b82a0fea6eb08e414e48c8923e30c6ebb910806
3
SIZE (qonk-0.0.2beta1.tar.gz) = 92832
3
SIZE (qonk-0.3.1.tar.gz) = 339374
(-)qonk/files/patch-SDL_gfxPrimitives.h (-11 lines)
Lines 1-11 Link Here
1
--- SDL_gfxPrimitives.h.orig	Sat Aug  6 08:53:38 2005
2
+++ SDL_gfxPrimitives.h	Thu Apr 13 23:20:20 2006
3
@@ -14,7 +14,7 @@
4
 #define M_PI	3.141592654
5
 #endif
6
 
7
-#include <SDL/SDL.h>
8
+#include <SDL.h>
9
 
10
 /* Set up for C function definitions, even when using C++ */
11
 #ifdef __cplusplus
(-)qonk/files/patch-main.cpp (-10 lines)
Lines 1-10 Link Here
1
--- main.cpp.orig	Wed Jul 13 13:40:12 2005
2
+++ main.cpp	Wed Jul 13 13:41:13 2005
3
@@ -1,5 +1,7 @@
4
 // Copyright 2005 by Anthony Liekens anthony@liekens.net
5
 
6
+#include <time.h>
7
+
8
 #include "coordinate.h"
9
 #include "stars.h"
10
 #include "planets.h"
(-)qonk/files/patch-src-menumanager.h (+11 lines)
Line 0 Link Here
1
--- src/menumanager.h.orig	Thu Sep 20 22:01:32 2007
2
+++ src/menumanager.h	Thu Sep 20 21:58:13 2007
3
@@ -7,6 +7,8 @@
4
 #ifndef MENUMANAGER_H
5
 #define MENUMANAGER_H
6
 
7
+#include "ui/menuaction.h"
8
+
9
 class Main;
10
 
11
 class ControlOptions;
(-)qonk/pkg-descr (-1 / +3 lines)
Lines 1-3 Link Here
1
(Original description for version 0.0.2beta1)
2
1
Qonk is a small game I wrote to learn some SDL basics. The game is a small
3
Qonk is a small game I wrote to learn some SDL basics. The game is a small
2
build-and-conquer strategy game with very simple rules. A complete game only
4
build-and-conquer strategy game with very simple rules. A complete game only
3
lasts for a few minutes and can be a fun break away from work or whatever
5
lasts for a few minutes and can be a fun break away from work or whatever
Lines 15-21 Link Here
15
things have to be added to make this a mature game (like menus and stuff), but
17
things have to be added to make this a mature game (like menus and stuff), but
16
since the engine itself works, Qonk is already very playable.
18
since the engine itself works, Qonk is already very playable.
17
19
18
WWW: http://anthony.liekens.net/index.php/Computers/Qonk
20
WWW: http://qonk.sourceforge.net
19
21
20
- Alejandro Pulver
22
- Alejandro Pulver
21
alejandro@varnet.biz
23
alejandro@varnet.biz
(-)qonk/pkg-plist (+2 lines)
Lines 1-3 Link Here
1
bin/qonk
1
bin/qonk
2
%%DATADIR%%/font.ttf
2
%%DATADIR%%/font.ttf
3
%%DATADIR%%/highlight.png
4
%%DATADIR%%/normal.png
3
@dirrm %%DATADIR%%
5
@dirrm %%DATADIR%%

Return to bug 116500