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

Collapse All | Expand All

(-)./Makefile (-17 / +16 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	nelly
8
PORTNAME=	nelly
9
PORTVERSION=	1.0
9
PORTVERSION=	1.0
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	games python
11
CATEGORIES=	games python
12
MASTER_SITES=	http://www.partiallydisassembled.net/nelly/ \
12
MASTER_SITES=	http://www.partiallydisassembled.net/nelly/ \
13
		http://media.pyweek.org/dl/2/rushed/
13
		http://media.pyweek.org/dl/2/rushed/
Lines 17-61 Link Here
17
17
18
RUN_DEPENDS=	${PYGAME} \
18
RUN_DEPENDS=	${PYGAME} \
19
		${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl
19
		${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl
20
EXTRACT_DEPENDS=	pamscale:${PORTSDIR}/graphics/netpbm
20
21
21
USE_PYTHON_RUN=	yes
22
USE_PYTHON_RUN=	yes
22
NO_BUILD=	yes
23
NO_BUILD=	yes
23
24
24
PLIST_FILES=	bin/${PORTNAME} \
25
		share/pixmaps/${PORTNAME}.png
26
27
PORTDATA=	*
28
PORTDOCS=	README
25
PORTDOCS=	README
29
26
30
SUB_FILES=	${PORTNAME}
27
SUB_FILES=	${PORTNAME}
31
28
29
DESKTOP_ENTRIES="Nelly's Rooftop Garden" "${COMMENT}" "${PORTNAME}" \
30
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
31
32
.include <bsd.port.options.mk>
32
.include <bsd.port.options.mk>
33
33
34
post-patch:
34
post-patch:
35
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
35
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
36
		${WRKSRC}/*.py
36
		${WRKSRC}/*.py
37
	@(cd ${WRKSRC} && ${RM} *.py.bak)
37
	@${FIND} ${WRKSRC} -name "*.bak" -delete
38
39
post-extract:
40
	 @(cd ${WRKSRC} && \
41
		${LOCALBASE}/bin/pngtopnm ./textures/flower.png | \
42
		${LOCALBASE}/bin/pamscale 1.548 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
38
43
39
do-install:
44
do-install:
40
# Scripts
41
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
45
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
42
43
# Executable
44
	${MKDIR} ${DATADIR}
46
	${MKDIR} ${DATADIR}
45
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
47
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
46
48
47
# Data
49
.for d in fonts levels textures
48
.  for d in fonts levels textures
49
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
50
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
50
.  endfor
51
.endfor
51
52
52
# Pixmaps
53
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
53
	${INSTALL_DATA} ${WRKSRC}/textures/menu.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
54
54
55
# Documentation
56
.if ${PORT_OPTIONS:MDOCS}
55
.if ${PORT_OPTIONS:MDOCS}
57
	${MKDIR} ${DOCSDIR}
56
	${MKDIR} ${DOCSDIR}
58
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
57
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
59
.endif
58
.endif
60
59
61
.include <bsd.port.mk>
60
.include <bsd.port.mk>
(-)./files/nelly.in (-2 / +4 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
echo "Nelly's Rooftop Garden: Starting up..."
3
# $FreeBSD$
4
#
5
4
cd "%%DATADIR%%"
6
cd "%%DATADIR%%"
5
./nelly.py
7
exec /usr/bin/env python ./nelly.py
(-)./pkg-plist (+64 lines)
Line 0 Link Here
1
bin/nelly
2
%%DATADIR%%/collide.py
3
%%DATADIR%%/font.py
4
%%DATADIR%%/fonts/babelfish.ttf
5
%%DATADIR%%/levels/level01.lvl
6
%%DATADIR%%/levels/level02.lvl
7
%%DATADIR%%/levels/level03.lvl
8
%%DATADIR%%/levels/level04.lvl
9
%%DATADIR%%/levels/level05.lvl
10
%%DATADIR%%/levels/level06.lvl
11
%%DATADIR%%/levels/level07.lvl
12
%%DATADIR%%/levels/level08.lvl
13
%%DATADIR%%/levels/level09.lvl
14
%%DATADIR%%/levels/level10.lvl
15
%%DATADIR%%/levels/level11.lvl
16
%%DATADIR%%/levels/level12.lvl
17
%%DATADIR%%/levels/level13.lvl
18
%%DATADIR%%/levels/level14.lvl
19
%%DATADIR%%/levels/level15.lvl
20
%%DATADIR%%/nelly.py
21
%%DATADIR%%/res.py
22
%%DATADIR%%/textures/brick.jpg
23
%%DATADIR%%/textures/dialog.png
24
%%DATADIR%%/textures/dialog_ok.png
25
%%DATADIR%%/textures/drip.png
26
%%DATADIR%%/textures/flower.png
27
%%DATADIR%%/textures/frame.png
28
%%DATADIR%%/textures/hotplate.png
29
%%DATADIR%%/textures/kettle.png
30
%%DATADIR%%/textures/left.png
31
%%DATADIR%%/textures/loadback.png
32
%%DATADIR%%/textures/loadframe.png
33
%%DATADIR%%/textures/loadframeback.png
34
%%DATADIR%%/textures/menu.png
35
%%DATADIR%%/textures/metal.png
36
%%DATADIR%%/textures/move_handle.png
37
%%DATADIR%%/textures/new.png
38
%%DATADIR%%/textures/plant_seg.png
39
%%DATADIR%%/textures/pot.png
40
%%DATADIR%%/textures/right.png
41
%%DATADIR%%/textures/rot_handle.png
42
%%DATADIR%%/textures/save.png
43
%%DATADIR%%/textures/spin_down.png
44
%%DATADIR%%/textures/spin_up.png
45
%%DATADIR%%/textures/steam.png
46
%%DATADIR%%/textures/tool_active.png
47
%%DATADIR%%/textures/tool_hotplate.png
48
%%DATADIR%%/textures/tool_kettle.png
49
%%DATADIR%%/textures/tool_lines.png
50
%%DATADIR%%/textures/tool_metal.png
51
%%DATADIR%%/textures/tool_plant.png
52
%%DATADIR%%/textures/tool_wood.png
53
%%DATADIR%%/textures/toold_hotplate.png
54
%%DATADIR%%/textures/toold_kettle.png
55
%%DATADIR%%/textures/toold_lines.png
56
%%DATADIR%%/textures/toold_metal.png
57
%%DATADIR%%/textures/toold_plant.png
58
%%DATADIR%%/textures/toold_wood.png
59
%%DATADIR%%/textures/wood.png
60
share/pixmaps/nelly.png
61
@dirrm %%DATADIR%%/textures
62
@dirrm %%DATADIR%%/levels
63
@dirrm %%DATADIR%%/fonts
64
@dirrm %%DATADIR%%

Return to bug 173345