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

(-)vor/Makefile (-24 / +20 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	vor
8
PORTNAME=	vor
9
PORTVERSION=	0.3
9
PORTVERSION=	0.4
10
CATEGORIES=	games
10
CATEGORIES=	games
11
MASTER_SITES=	http://qualdan.com/vor/
11
MASTER_SITES=	http://qualdan.com/vor/
12
12
Lines 18-52 Link Here
18
USE_SDL=	mixer image sdl
18
USE_SDL=	mixer image sdl
19
USE_BZIP2=	yes
19
USE_BZIP2=	yes
20
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_REINPLACE=	yes
21
22
PORTDOCS=	README
22
23
23
post-patch:
24
post-patch:
24
.for file in main.c shape.h sound.h
25
	@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/sound.c
25
	@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/${file}
26
.endfor
27
.for file in shape.h score.c score.h debug.c
28
	@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/${file}
29
.endfor
30
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
26
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
31
	@${REINPLACE_CMD} -e 's|^\(my_objects.*\)$$|\1 ${LOCALBASE}/lib/libargp.a|' ${WRKSRC}/Makefile
27
	@${REINPLACE_CMD} -e 's|^\(my_objects.*\)$$|\1 ${LOCALBASE}/lib/libargp.a|' ${WRKSRC}/Makefile
32
	@${REINPLACE_CMD} -e 's|/usr/share/vor|${PREFIX}/share/vor|g' ${WRKSRC}/config.h
28
	@${REINPLACE_CMD} -e 's|/usr/share/vor|${DATADIR}|' ${WRKSRC}/Makefile
29
.if ${OSVERSION} < 500000
30
	@${REINPLACE_CMD} -e 's|UINT32_MAX|0xffffffffU|' ${WRKSRC}/mt.c
31
	@${REINPLACE_CMD} -e 's|INT32_MIN|(-0x7fffffff-1)|' ${WRKSRC}/mt.c
32
.endif
33
33
34
do-install:
34
do-install:
35
	${INSTALL_PROGRAM} ${WRKSRC}/vor ${PREFIX}/bin
35
	${INSTALL_PROGRAM} ${WRKSRC}/vor ${PREFIX}/bin
36
	${MKDIR} ${DATADIR}
36
.for d in banners fonts icons indicators music sounds sprites
37
	${MKDIR} ${DATADIR}/banners
37
	${MKDIR} ${DATADIR}/${d}
38
	${MKDIR} ${DATADIR}/fonts
38
	${INSTALL_DATA} ${WRKSRC}/data/${d}/* ${DATADIR}/${d}/
39
	${MKDIR} ${DATADIR}/icons
39
.endfor
40
	${MKDIR} ${DATADIR}/indicators
40
41
	${MKDIR} ${DATADIR}/music
41
.if !defined(NOPORTDOCS)
42
	${MKDIR} ${DATADIR}/sounds
42
	${MKDIR} ${DOCSDIR}
43
	${MKDIR} ${DATADIR}/sprites
43
.for f in ${PORTDOCS}
44
	${INSTALL_DATA} ${WRKSRC}/data/banners/* ${DATADIR}/banners/
44
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/data/fonts/* ${DATADIR}/fonts/
45
.endfor
46
	${INSTALL_DATA} ${WRKSRC}/data/icons/* ${DATADIR}/icons/
46
.endif
47
	${INSTALL_DATA} ${WRKSRC}/data/indicators/* ${DATADIR}/indicators/
48
	${INSTALL_DATA} ${WRKSRC}/data/music/* ${DATADIR}/music/
49
	${INSTALL_DATA} ${WRKSRC}/data/sounds/* ${DATADIR}/sounds/
50
	${INSTALL_DATA} ${WRKSRC}/data/sprites/* ${DATADIR}/sprites/
51
47
52
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)vor/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (vor-0.3.tar.bz2) = 814100a94a7881e58ef0238ec3eb4367
1
MD5 (vor-0.4.tar.bz2) = 8ab437075fb9fa6a5b8cd269e339aa9a
2
SHA256 (vor-0.3.tar.bz2) = d0170ec85e41605bd1c84b15e9d93f7069e5348cfe7fa1f63ebd48578e111d94
2
SHA256 (vor-0.4.tar.bz2) = 4f502e6485f71e48aec2922f06fb6d83e1cdd4fa9f606e703022f3f98730c779
3
SIZE (vor-0.3.tar.bz2) = 444658
3
SIZE (vor-0.4.tar.bz2) = 450486
(-)vor/files/patch-file.c (-21 / +8 lines)
Lines 1-26 Link Here
1
--- file.c.orig	Wed Sep  7 05:00:47 2005
1
--- file.c.orig	Sun Mar 26 06:52:35 2006
2
+++ file.c	Wed Sep  7 05:01:01 2005
2
+++ file.c	Mon Mar 27 02:30:51 2006
3
@@ -58,20 +58,19 @@
3
@@ -101,9 +101,9 @@
4
 find_data_dir(void)
5
 {
4
 {
6
 	int i;
5
 	int i;
7
-	char *data_options[3] = {
6
 	char *data_options[3] = {
8
-		"./data",
7
+		DATA_PREFIX,
9
+	char *data_options[2] = {
10
 		getenv("VOR_DATA"),
8
 		getenv("VOR_DATA"),
11
 		DATA_PREFIX
9
 		"data",
10
-		DATA_PREFIX
12
 	};
11
 	};
13
 
12
 
14
-	for(i=0; i<3; i++) {
13
 	for(i=0; i<3; i++) {
15
+	for(i=0; i<2; i++) {
16
 		if(!data_options[i]) continue;
17
 		g_data_dir = strdup(data_options[i]);
18
 		if(is_dir(g_data_dir)) return true;
19
 	}
20
 
21
 	fprintf(stderr, "Can't find VoR data! Tried:\n");
22
-	for(i=0; i<3; i++) {
23
+	for(i=0; i<2; i++) {
24
 		fprintf(stderr, "\t%s\n", data_options[i]);
25
 	}
26
 	return false;
(-)vor/pkg-descr (-2 lines)
Lines 8-12 Link Here
8
moments here and there, not an epic space adventure.
8
moments here and there, not an epic space adventure.
9
9
10
WWW: http://herkamire.com/jason/vor
10
WWW: http://herkamire.com/jason/vor
11
12
- Dmitry Marakasov <amdmi3@mail.ru>

Return to bug 94983