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

Collapse All | Expand All

(-)./Makefile (-12 / +15 lines)
Lines 17-22 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
Lines 29-61 Link Here
29
30
30
SUB_FILES=	${PORTNAME}
31
SUB_FILES=	${PORTNAME}
31
32
33
DESKTOP_ENTRIES="Nelly's Rooftop Garden" "${COMMENT}" "${PORTNAME}" \
34
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
35
32
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
33
37
34
post-patch:
38
post-patch:
35
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
39
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
36
		${WRKSRC}/*.py
40
		${WRKSRC}/*.py
37
	@(cd ${WRKSRC} && ${RM} *.py.bak)
41
	@${FIND} ${WRKSRC} -name "*.bak" -delete
42
43
post-extract:
44
	 @(cd ${WRKSRC} && \
45
		${LOCALBASE}/bin/pngtopnm ./textures/menu.png | \
46
		${LOCALBASE}/bin/pamscale .08 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
38
47
39
do-install:
48
do-install:
40
# Scripts
41
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
49
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
42
43
# Executable
44
	${MKDIR} ${DATADIR}
50
	${MKDIR} ${DATADIR}
45
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
51
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
46
52
47
# Data
53
.for d in fonts levels textures
48
.  for d in fonts levels textures
49
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
54
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
50
.  endfor
55
.endfor
51
56
52
# Pixmaps
57
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
53
	${INSTALL_DATA} ${WRKSRC}/textures/menu.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
54
58
55
# Documentation
56
.if ${PORT_OPTIONS:MDOCS}
59
.if ${PORT_OPTIONS:MDOCS}
57
	${MKDIR} ${DOCSDIR}
60
	${MKDIR} ${DOCSDIR}
58
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
61
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
59
.endif
62
.endif
60
63
61
.include <bsd.port.mk>
64
.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

Return to bug 173345