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

Collapse All | Expand All

(-)./Makefile (-15 / +38 lines)
Lines 7-59 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.tar.gz:icons
16
DIST_SUBDIR=	${PORTNAME}
13
17
14
MAINTAINER=	nemysis@gmx.ch
18
MAINTAINER=	nemysis@gmx.ch
15
COMMENT=	Falling blocks game with 2-player hotseat mode
19
COMMENT=	Falling blocks game with 2-player hotseat mode
16
20
17
LICENSE=	GPLv2
21
LICENSE=	GPLv2
18
22
23
BUILD_DEPENDS=	pngtopnm:${PORTSDIR}/graphics/netpbm
24
19
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
20
ALL_TARGET=	${PORTNAME}
26
ALL_TARGET=	${PORTNAME}
21
USE_SDL=	sdl image mixer
27
USE_SDL=	sdl image mixer
22
MAKE_JOBS_SAFE=	yes
28
MAKE_JOBS_SAFE=	yes
23
29
24
PLIST_FILES=	bin/${PORTNAME}
30
PLIST_FILES=	bin/${PORTNAME} \
31
		share/pixmaps/${PORTNAME}.png \
32
		share/icons/hicolor/32x32/apps/${PORTNAME}.png \
33
		share/icons/hicolor/48x48/apps/${PORTNAME}.png \
34
		share/icons/hicolor/64x64/apps/${PORTNAME}.png \
35
		share/icons/hicolor/72x72/apps/${PORTNAME}.png \
36
		share/icons/hicolor/96x96/apps/${PORTNAME}.png
25
37
26
MAN6=		${PORTNAME}.6
38
MAN6=		${PORTNAME}.6
27
39
28
PORTDATA=	*
40
PORTDATA=	*
29
PORTDOCS=	ChangeLog KNOWN_BUGS README TODO
41
PORTDOCS=	ChangeLog KNOWN_BUGS README TODO
30
42
43
INSTALLS_ICONS=	yes
44
ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
45
31
SUB_FILES=	${PORTNAME}
46
SUB_FILES=	${PORTNAME}
32
47
48
DESKTOP_ENTRIES="Block Rage" "${COMMENT}" "${PORTNAME}" \
49
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
50
33
.include <bsd.port.options.mk>
51
.include <bsd.port.options.mk>
34
52
53
post-patch:
54
	@${REINPLACE_CMD} -e 's|MYCC=gcc|MYCC=|' \
55
	-e 's| -O2 -Wall||' \
56
		${WRKSRC}/configure
57
35
do-install:
58
do-install:
36
# Scripts
37
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
59
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
38
39
# Executable
40
	${MKDIR} ${DATADIR}
60
	${MKDIR} ${DATADIR}
41
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
61
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
42
62
63
.for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
64
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
65
.endfor
66
43
post-install:
67
post-install:
44
	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
68
.for s in ${ICON_SIZES}
69
	${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
70
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
71
		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
72
.endfor
73
	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
45
74
46
# Data
75
	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
47
.  for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
48
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
49
.  endfor
50
76
51
# Documentation
52
.if ${PORT_OPTIONS:MDOCS}
77
.if ${PORT_OPTIONS:MDOCS}
53
	${MKDIR} ${DOCSDIR}
78
	${MKDIR} ${DOCSDIR}
54
.  for f in ${PORTDOCS}
79
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
55
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
56
.  endfor
57
.endif
80
.endif
58
81
59
.include <bsd.port.mk>
82
.include <bsd.port.mk>
(-)./distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (blockrage-0.2.3.tar.gz) = f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6
1
SHA256 (blockrage/blockrage-0.2.3.tar.gz) = f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6
2
SIZE (blockrage-0.2.3.tar.gz) = 75620
2
SIZE (blockrage/blockrage-0.2.3.tar.gz) = 75620
3
SHA256 (blockrage/blockrage_icons.tar.gz) = 8a634d710d3e5c251a9a5facc9b7911d125520524918dc6b681d4df255784438
4
SIZE (blockrage/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: ports/games/blockrage/files/blockrage.in,v 1.1 2012/08/09 12:01:19 scheidell Exp $
3
# $FreeBSD: ports/games/blockrage/files/blockrage.in,v 1.1 2012/08/09 12:01:19 scheidell Exp $
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";

Return to bug 173356