View | Details | Raw Unified | Return to bug 173356 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-19 / +29 lines)
Lines 7-15 Link Here
7
7
8
PORTNAME=	blockrage
8
PORTNAME=	blockrage
9
PORTVERSION=	0.2.3
9
PORTVERSION=	0.2.3
10
PORTREVISION=	2
10
PORTREVISION=	3
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
12
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
13
		SF/nemysisfreebsdp/:icons
14
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
15
		${PORTNAME}_icons${EXTRACT_SUFX}:icons
13
16
14
MAINTAINER=	nemysis@gmx.ch
17
MAINTAINER=	nemysis@gmx.ch
15
COMMENT=	Falling blocks game with 2-player hotseat mode
18
COMMENT=	Falling blocks game with 2-player hotseat mode
Lines 21-59 Link Here
21
USE_SDL=	sdl image mixer
24
USE_SDL=	sdl image mixer
22
MAKE_JOBS_SAFE=	yes
25
MAKE_JOBS_SAFE=	yes
23
26
24
PLIST_FILES=	bin/${PORTNAME}
25
26
MAN6=		${PORTNAME}.6
27
MAN6=		${PORTNAME}.6
27
28
28
PORTDATA=	*
29
PORTDOCS=	ChangeLog KNOWN_BUGS README TODO
29
PORTDOCS=	ChangeLog KNOWN_BUGS README TODO
30
30
31
INSTALLS_ICONS=	yes
32
ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
33
31
SUB_FILES=	${PORTNAME}
34
SUB_FILES=	${PORTNAME}
32
35
36
DESKTOP_ENTRIES="Block Rage" "${COMMENT}" "${PORTNAME}" \
37
		"${PORTNAME}" "Game;ArcadeGame;" false
38
33
.include <bsd.port.options.mk>
39
.include <bsd.port.options.mk>
34
40
35
do-install:
41
post-patch:
36
# Scripts
42
	@${REINPLACE_CMD} -e 's|MYCC=gcc|MYCC=|' \
37
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
43
	-e 's| -O2 -Wall||' \
44
		${WRKSRC}/configure
38
45
39
# Executable
46
do-install:
47
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
40
	${MKDIR} ${DATADIR}
48
	${MKDIR} ${DATADIR}
41
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
49
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
42
50
43
post-install:
51
.for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
44
	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
45
46
# Data
47
.  for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
48
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
52
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
49
.  endfor
53
.endfor
54
55
post-install:
56
.for s in ${ICON_SIZES}
57
	${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
58
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
59
		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
60
.endfor
61
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps/
62
	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6/
50
63
51
# Documentation
52
.if ${PORT_OPTIONS:MDOCS}
64
.if ${PORT_OPTIONS:MDOCS}
53
	${MKDIR} ${DOCSDIR}
65
	${MKDIR} ${DOCSDIR}
54
.  for f in ${PORTDOCS}
66
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
55
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
56
.  endfor
57
.endif
67
.endif
58
68
59
.include <bsd.port.mk>
69
.include <bsd.port.mk>
(-)./distinfo (+2 lines)
Lines 1-2 Link Here
1
SHA256 (blockrage-0.2.3.tar.gz) = f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6
1
SHA256 (blockrage-0.2.3.tar.gz) = f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6
2
SIZE (blockrage-0.2.3.tar.gz) = 75620
2
SIZE (blockrage-0.2.3.tar.gz) = 75620
3
SHA256 (blockrage_icons.tar.gz) = 8a634d710d3e5c251a9a5facc9b7911d125520524918dc6b681d4df255784438
4
SIZE (blockrage_icons.tar.gz) = 11264
(-)./files/blockrage.in (-2 / +2 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: head/games/blockrage/files/blockrage.in 311381 2013-02-01 15:04:00Z ak $
3
# $FreeBSD: head/games/blockrage/files/blockrage.in 311381 2013-02-01 15:04:00Z ak $
4
#
4
5
5
echo "Block Rage: Starting up..."
6
cd "%%DATADIR%%"
6
cd "%%DATADIR%%"
7
./blockrage
7
exec ./blockrage
(-)./files/patch-configure (-13 lines)
Lines 1-13 Link Here
1
--- configure.orig	2005-10-24 21:47:16.000000000 +0200
2
+++ configure	2012-05-03 01:41:10.000000000 +0200
3
@@ -39,8 +39,8 @@
4
 #SOUND_OPT=-DNOSOUND
5
 SOUND_OPT=
6
 
7
-MYCC=gcc
8
-MYCFLAGS='-s -O2 -Wall `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\""
9
+MYCC=
10
+MYCFLAGS='-s `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\""
11
 
12
 if test -z "$CC" ; then
13
   CC="$MYCC";
(-)./pkg-plist (+56 lines)
Line 0 Link Here
1
bin/blockrage
2
%%DATADIR%%/blockrage
3
%%DATADIR%%/blockrage-fhs.rc
4
%%DATADIR%%/blockrage.cfg
5
%%DATADIR%%/blockrage.rc
6
%%DATADIR%%/data/test/dataset.cfg
7
%%DATADIR%%/data/test/fonth.pcx
8
%%DATADIR%%/data/test/fonth.txt
9
%%DATADIR%%/data/test/fontn.pcx
10
%%DATADIR%%/data/test/fontn.txt
11
%%DATADIR%%/data/test/g1p.pcx
12
%%DATADIR%%/data/test/g2p.pcx
13
%%DATADIR%%/data/test/game.col
14
%%DATADIR%%/data/test/logo.pcx
15
%%DATADIR%%/data/test/menu.pcx
16
%%DATADIR%%/data/test/pa0.pcx
17
%%DATADIR%%/data/test/pa1.pcx
18
%%DATADIR%%/data/test/pa2.pcx
19
%%DATADIR%%/data/test/pa3.pcx
20
%%DATADIR%%/data/test/pmenu.pcx
21
%%DATADIR%%/data/test/s00p1.pcx
22
%%DATADIR%%/data/test/s00p1.txt
23
%%DATADIR%%/data/test/s00p2.pcx
24
%%DATADIR%%/data/test/s00p2.txt
25
%%DATADIR%%/data/test/s00p3.pcx
26
%%DATADIR%%/data/test/s00p3.txt
27
%%DATADIR%%/data/test/s00p4.pcx
28
%%DATADIR%%/data/test/s00p4.txt
29
%%DATADIR%%/data/test/s00p5.pcx
30
%%DATADIR%%/data/test/s00p5.txt
31
%%DATADIR%%/data/test/s00p6.pcx
32
%%DATADIR%%/data/test/s00p6.txt
33
%%DATADIR%%/data/test/sfx0.snd
34
%%DATADIR%%/data/test/sfx1.snd
35
%%DATADIR%%/data/test/sfx2.snd
36
share/icons/hicolor/32x32/apps/blockrage.png
37
share/icons/hicolor/48x48/apps/blockrage.png
38
share/icons/hicolor/64x64/apps/blockrage.png
39
share/icons/hicolor/72x72/apps/blockrage.png
40
share/icons/hicolor/96x96/apps/blockrage.png
41
share/pixmaps/blockrage.png
42
@dirrmtry share/icons/hicolor/96x96/apps
43
@dirrmtry share/icons/hicolor/96x96
44
@dirrmtry share/icons/hicolor/72x72/apps
45
@dirrmtry share/icons/hicolor/72x72
46
@dirrmtry share/icons/hicolor/64x64/apps
47
@dirrmtry share/icons/hicolor/64x64
48
@dirrmtry share/icons/hicolor/48x48/apps
49
@dirrmtry share/icons/hicolor/48x48
50
@dirrmtry share/icons/hicolor/32x32/apps
51
@dirrmtry share/icons/hicolor/32x32
52
@dirrmtry share/icons/hicolor
53
@dirrmtry share/icons
54
@dirrm %%DATADIR%%/data/test
55
@dirrm %%DATADIR%%/data
56
@dirrm %%DATADIR%%

Return to bug 173356