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

Collapse All | Expand All

(-)Makefile (-4 / +6 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	monsterz
4
PORTNAME=	monsterz
5
PORTVERSION=	0.7.1
5
PORTVERSION=	0.7.1
6
PORTREVISION=	9
6
PORTREVISION=	10
7
CATEGORIES=	games
7
CATEGORIES=	games
8
MASTER_SITES=	http://sam.zoy.org/monsterz/ \
8
MASTER_SITES=	http://sam.zoy.org/monsterz/ \
9
		SF/nemysisfreebsdp/:icons
9
		SF/nemysisfreebsdp/:icons
Lines 34-40 Link Here
34
34
35
OPTIONS_DEFINE=	DOCS
35
OPTIONS_DEFINE=	DOCS
36
36
37
.include <bsd.port.options.mk>
37
post-patch:
38
	@${REINPLACE_CMD} '/test -f/ s|scorefile)|&.sample|g' \
39
		${WRKSRC}/Makefile
38
40
39
post-install:
41
post-install:
40
.for d in graphics sound
42
.for d in graphics sound
Lines 48-56 Link Here
48
		-f ${DATADIR:S;${PREFIX}/;;})
50
		-f ${DATADIR:S;${PREFIX}/;;})
49
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
51
	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
50
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/monsterz
52
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/monsterz
51
.if ${PORT_OPTIONS:MDOCS}
53
54
post-install-DOCS-on:
52
	${MKDIR} ${STAGEDIR}${DOCSDIR}
55
	${MKDIR} ${STAGEDIR}${DOCSDIR}
53
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
56
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
54
.endif
55
57
56
.include <bsd.port.mk>
58
.include <bsd.port.mk>
(-)pkg-plist (-11 / +3 lines)
Lines 1-8 Link Here
1
@group games
1
@(,games,2555) bin/monsterz
2
@mode 2555
3
bin/monsterz
4
@mode
5
@group
6
%%DATADIR%%/graphics/background.png
2
%%DATADIR%%/graphics/background.png
7
%%DATADIR%%/graphics/bigtiles.png
3
%%DATADIR%%/graphics/bigtiles.png
8
%%DATADIR%%/graphics/board.png
4
%%DATADIR%%/graphics/board.png
Lines 26-34 Link Here
26
%%DATADIR%%/sound/warning.wav
22
%%DATADIR%%/sound/warning.wav
27
%%DATADIR%%/sound/whip.wav
23
%%DATADIR%%/sound/whip.wav
28
share/pixmaps/monsterz.png
24
share/pixmaps/monsterz.png
29
@dirrm %%DATADIR%%/sound
25
@sample(,games,664) %%SCOREDIR%%/monsterz.sample
30
@dirrm %%DATADIR%%/graphics
26
@dir(,,7
31
@dirrm %%DATADIR%%
32
@exec if [ ! -e %%SCOREDIR%% ] ; then mkdir -p -m 775 %%SCOREDIR%% ; fi
33
@unexec if [ ! -s %%SCOREDIR%%/monsterz ] ; then rm -f %%SCOREDIR%%/monsterz && rm -r %%SCOREDIR%% || true ; fi
34
@exec [ -e %%SCOREDIR%%/monsterz ] || touch %%SCOREDIR%%/monsterz && chmod 664 %%SCOREDIR%%/monsterz && chgrp games %%SCOREDIR%%/monsterz

Return to bug 206743