Lines 2-9
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= mopesnake |
3 |
PORTNAME= mopesnake |
4 |
PORTVERSION= 0.5 |
4 |
PORTVERSION= 0.5 |
5 |
PORTREVISION= 1 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= games |
6 |
CATEGORIES= games python |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
8 |
DISTNAME= ${PORTNAME}-pc-${DISTVERSION} |
8 |
DISTNAME= ${PORTNAME}-pc-${DISTVERSION} |
9 |
|
9 |
|
Lines 18-60
Link Here
|
18 |
USE_PYTHON= yes |
18 |
USE_PYTHON= yes |
19 |
NO_BUILD= yes |
19 |
NO_BUILD= yes |
20 |
|
20 |
|
21 |
PLIST_FILES= bin/${PORTNAME} \ |
|
|
22 |
share/pixmaps/${PORTNAME}.png |
23 |
|
24 |
PORTDATA= * |
25 |
PORTDOCS= TODO.txt index.html |
21 |
PORTDOCS= TODO.txt index.html |
26 |
|
22 |
|
27 |
SUB_FILES= ${PORTNAME} |
23 |
SUB_FILES= ${PORTNAME} |
28 |
|
24 |
|
|
|
25 |
DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \ |
26 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \ |
27 |
"${PORTNAME}" "Game;ArcadeGame;" false |
28 |
|
29 |
.include <bsd.port.options.mk> |
30 |
|
29 |
post-patch: |
31 |
post-patch: |
30 |
# Fix path to python interpreter |
|
|
31 |
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ |
32 |
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ |
32 |
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py |
33 |
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py |
33 |
@(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak) |
34 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
34 |
|
|
|
35 |
.include <bsd.port.options.mk> |
36 |
|
35 |
|
37 |
do-install: |
36 |
do-install: |
38 |
# Scripts |
37 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/ |
39 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
|
|
40 |
|
41 |
# Executable |
42 |
${MKDIR} ${DATADIR} |
38 |
${MKDIR} ${DATADIR} |
43 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR} |
39 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR} |
44 |
|
|
|
45 |
# Data |
46 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR}) |
40 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR}) |
47 |
|
|
|
48 |
# Pixmaps and version |
49 |
${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png |
41 |
${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png |
50 |
${INSTALL_DATA} ${WRKSRC}/version ${DATADIR} |
42 |
${INSTALL_DATA} ${WRKSRC}/version ${DATADIR} |
51 |
|
43 |
|
52 |
# Documentation |
|
|
53 |
.if ${PORT_OPTIONS:MDOCS} |
44 |
.if ${PORT_OPTIONS:MDOCS} |
54 |
${MKDIR} ${DOCSDIR} |
45 |
${MKDIR} ${DOCSDIR} |
55 |
. for f in ${PORTDOCS} |
46 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} |
56 |
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} |
|
|
57 |
. endfor |
58 |
.endif |
47 |
.endif |
59 |
|
48 |
|
60 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.mk> |