Lines 1-4
Link Here
|
1 |
# New Ports collection makefile for: tuxfighter |
1 |
# New Ports collection makefile for: TuxFighter |
2 |
# Date created: 2012-07-15 |
2 |
# Date created: 2012-07-15 |
3 |
# Whom: nemysis@gmx.ch |
3 |
# Whom: nemysis@gmx.ch |
4 |
# |
4 |
# |
Lines 8-22
Link Here
|
8 |
PORTNAME= tuxfighter |
8 |
PORTNAME= tuxfighter |
9 |
PORTVERSION= 54 |
9 |
PORTVERSION= 54 |
10 |
CATEGORIES= games |
10 |
CATEGORIES= games |
11 |
MASTER_SITES= SF/pygamebook/${PORTNAME:S/t/T/:S/f/F/}/${PORTNAME:S/t/T/:S/f/F/}${PORTVERSION}_source |
11 |
MASTER_SITES= SF/pygamebook/${PORTNAME:S/t/T/:S/f/F/}/${PORTNAME:S/t/T/:S/f/F/}${PORTVERSION}_source/ \ |
12 |
DISTNAME= ${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION} |
12 |
http://thepythongamebook.com/_media/en:resources:games:/:icons |
|
|
13 |
DISTFILES= ${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.tar.gz \ |
14 |
tfbomb.jpg:icons |
15 |
DIST_SUBDIR= python |
16 |
EXTRACT_ONLY= ${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.tar.gz |
13 |
|
17 |
|
14 |
MAINTAINER= nemysis@gmx.ch |
18 |
MAINTAINER= nemysis@gmx.ch |
15 |
COMMENT= TuxFighter is a little Asteroids-like Shooter game |
19 |
COMMENT= TuxFighter is a little Asteroids-like Shooter game |
16 |
|
20 |
|
17 |
LICENSE= GPLv2 |
21 |
LICENSE= GPLv2 |
18 |
|
22 |
|
19 |
FETCH_DEPENDS= wget:${PORTSDIR}/ftp/wget |
|
|
20 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game |
23 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game |
21 |
|
24 |
|
22 |
WRKSRC= ${WRKDIR} |
25 |
WRKSRC= ${WRKDIR} |
Lines 31-41
Link Here
|
31 |
PORTDATA= * |
34 |
PORTDATA= * |
32 |
PORTDOCS= readme_TuxFighter54.txt |
35 |
PORTDOCS= readme_TuxFighter54.txt |
33 |
|
36 |
|
|
|
37 |
SUB_FILES= ${PORTNAME} |
38 |
|
39 |
.include <bsd.port.options.mk> |
40 |
|
34 |
do-install: |
41 |
do-install: |
35 |
# Scripts |
42 |
# Scripts |
36 |
@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ |
43 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
37 |
./${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.py\n" > ${WRKDIR}/${PORTNAME}.sh |
44 |
|
38 |
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} |
|
|
39 |
# Executable |
45 |
# Executable |
40 |
${MKDIR} ${DATADIR} |
46 |
${MKDIR} ${DATADIR} |
41 |
${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter54.py ${DATADIR} |
47 |
${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter54.py ${DATADIR} |
Lines 44-54
Link Here
|
44 |
# Data |
50 |
# Data |
45 |
.if !defined (NOPORTDATA) |
51 |
.if !defined (NOPORTDATA) |
46 |
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR} |
52 |
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR} |
47 |
wget http://thepythongamebook.com/_media/en:resources:games:tfbomb.jpg ; ${MV} en:resources:games:tfbomb.jpg ${PREFIX}/share/pixmaps/${PORTNAME}.jpg |
|
|
48 |
.endif |
53 |
.endif |
49 |
|
54 |
|
|
|
55 |
# Pixmaps |
56 |
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/tfbomb.jpg ${PREFIX}/share/pixmaps/${PORTNAME}.jpg |
57 |
|
50 |
# Documentation |
58 |
# Documentation |
51 |
.if !defined(NOPORTDOCS) |
59 |
.if ${PORT_OPTIONS:MDOCS} |
52 |
${MKDIR} ${DOCSDIR} |
60 |
${MKDIR} ${DOCSDIR} |
53 |
. for f in ${PORTDOCS} |
61 |
. for f in ${PORTDOCS} |
54 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |