blob: 70d4b38e1ec4df1f9e92d06f85b878dd10c9fda7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= nelly
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= games python
MASTER_SITES= http://www.partiallydisassembled.net/nelly/ \
http://media.pyweek.org/dl/2/rushed/ \
SF/nemysisfreebsdp/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@gmx.ch
COMMENT= Nelly's Rooftop Garden, physics-based puzzle game
RUN_DEPENDS= ${PYGAME} \
${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl
USE_PYTHON_RUN= yes
NO_BUILD= yes
PORTDOCS= README
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Nelly's Rooftop Garden" "${COMMENT}" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \
"${PORTNAME}" "Game;ArcadeGame;" false
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/*.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
.for d in fonts levels textures
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
.endfor
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|