blob: ce2c46a0eee03520629c79c73498c06ded73723d (
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
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= secrettower
PORTVERSION= 0.2.0
PORTREVISION= 1
CATEGORIES= games python
DIST_SUBDIR= python
MAINTAINER= ports@FreeBSD.org
COMMENT= Save princess Ericia in this 2D platform game
LICENSE= GPLv3 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYGAME}
USE_GITHUB= yes
GH_ACCOUNT= dusty141
GH_PROJECT= TheSecretTower
GH_TAGNAME= ecf13e4
USES= python:2 shebangfix
SHEBANG_FILES= TheSecretTower.py server.py
PORTDOCS= README
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME} pkg-deinstall
DESKTOP_ENTRIES="The Secret Tower" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in data img sound
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
.for f in *.py *.pyc *.pyo
@(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${f} ${STAGEDIR}${DATADIR})
.endfor
${LN} -sf ${DATADIR}/img/perso_small.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} -R 775 data)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|