blob: 7ab37e4aac63edb7d1b122d17ae922926008205f (
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
58
59
60
|
# $FreeBSD$
PORTNAME= mopesnake
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}-pc-${DISTVERSION}
MAINTAINER= nemysis@gmx.ch
COMMENT= Classic snake game in which you attempt to eat all the pain
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>=0:${PORTSDIR}/devel/py-game
USE_ZIP= yes
USE_PYTHON= yes
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
PORTDATA= *
PORTDOCS= TODO.txt index.html
SUB_FILES= ${PORTNAME}
post-patch:
# Fix path to python interpreter
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
@(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak)
.include <bsd.port.options.mk>
do-install:
# Scripts
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
# Executable
${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
# Data
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
# Pixmaps and version
${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>
|