Lines 3-35
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= solarwolf |
4 |
PORTNAME= solarwolf |
5 |
PORTVERSION= 1.5 |
5 |
PORTVERSION= 1.5 |
6 |
PORTREVISION= 7 |
6 |
PORTREVISION= 8 |
7 |
CATEGORIES= games |
7 |
CATEGORIES= games |
8 |
MASTER_SITES= http://www.pygame.org/shredwheat/solarwolf/ |
8 |
MASTER_SITES= http://www.pygame.org/shredwheat/solarwolf/ |
9 |
|
9 |
|
10 |
MAINTAINER= benlutz@datacomm.ch |
10 |
MAINTAINER= mail@maxlor.com |
11 |
COMMENT= An action/arcade game originally based of SolarFox on the Atari 2600 |
11 |
COMMENT= An action/arcade game originally based of SolarFox on the Atari 2600 |
12 |
|
12 |
|
|
|
13 |
LICENSE= LGPL21 |
14 |
|
13 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game |
15 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game |
14 |
|
16 |
|
15 |
USE_PYTHON= yes |
17 |
USE_PYTHON= 2 |
16 |
MAN6= solarwolf.6 |
|
|
17 |
|
18 |
|
18 |
NO_STAGE= yes |
19 |
DESKTOP_ENTRIES= "SolarWolf" "${COMMENT}" "solarwolf" \ |
19 |
post-extract: |
20 |
"solarwolf" "Game;ArcadeGame;" false |
20 |
${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755 |
|
|
21 |
${CHMOD} 755 ${WRKSRC}/solarwolf.py |
22 |
|
21 |
|
23 |
do-build: |
22 |
do-build: |
24 |
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} |
23 |
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} |
25 |
|
24 |
|
26 |
do-install: |
25 |
do-install: |
27 |
@${MKDIR} ${PREFIX}/share/solarwolf |
26 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/solarwolf |
28 |
(cd ${WRKSRC}; tar -cf - --exclude ".xvpics" .) | \ |
27 |
(cd ${WRKSRC}; tar -cf - --exclude ".xvpics" --exclude "dist" .) | \ |
29 |
(cd ${PREFIX}/share/solarwolf; tar --unlink -xf -) |
28 |
(cd ${STAGEDIR}${PREFIX}/share/solarwolf; tar --unlink -xf -) |
30 |
@printf "#!/bin/sh\ncd ${PREFIX}/share/solarwolf && \ |
29 |
${PRINTF} "#!/bin/sh\nexec ${PYTHON_CMD} ${PREFIX}/share/solarwolf/solarwolf.py\n" \ |
31 |
exec ${PYTHON_CMD} ${PREFIX}/share/solarwolf/solarwolf.py\n" > ${WRKDIR}/solarwolf.sh |
30 |
> ${STAGEDIR}${PREFIX}/bin/solarwolf |
32 |
@${INSTALL_SCRIPT} ${WRKDIR}/solarwolf.sh ${PREFIX}/bin/solarwolf |
31 |
${CP} ${WRKSRC}/dist/solarwolf.6.gz ${STAGEDIR}${MAN6PREFIX}/man/man6/ |
33 |
@${GUNZIP_CMD} -c ${WRKSRC}/dist/${MAN6}.gz > ${MAN6PREFIX}/man/man6/${MAN6} |
32 |
${CP} ${WRKSRC}/dist/solarwolf.png ${STAGEDIR}${PREFIX}/share/pixmaps/ |
34 |
|
33 |
|
35 |
.include <bsd.port.mk> |
34 |
.include <bsd.port.mk> |