Tweak games/blinken version 4.14.3
[dports.git] / games / oneisenough / Makefile
1 # Created by: Rusmir Dusko <nemysis@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       oneisenough
5 PORTVERSION=    0.4.0
6 PORTREVISION=   2
7 CATEGORIES=     games python
8 MASTER_SITES=   http://hectigo.net/games/oneisenough/ \
9                 SF/nemysisfreebsdp/games/:icons
10 DISTFILES=      ${PORTNAME}_a${DISTVERSION:S/.//g}_src${EXTRACT_SUFX} \
11                 ${PORTNAME}.png:icons
12 EXTRACT_ONLY=   ${PORTNAME}_a${DISTVERSION:S/.//g}_src${EXTRACT_SUFX}
13
14 MAINTAINER=     ports@FreeBSD.org
15 COMMENT=        Economic development in the land of the balls
16
17 LICENSE=        GPLv2
18
19 RUN_DEPENDS=    ${PYGAME}
20
21 WRKSRC=         ${WRKDIR}/"one is enough"
22
23 USES=           dos2unix python:2 shebangfix zip
24 DOS2UNIX_FILES= *.txt bin/*.py
25 DOS2UNIX_REGEX= .*.[^pt][^nt][^gf]
26 SHEBANG_FILES=  run_game.py bin/mainmenu.py
27
28 PORTDOCS=       README.txt
29 OPTIONS_DEFINE= DOCS
30
31 SUB_FILES=      ${PORTNAME}
32
33 DESKTOP_ENTRIES="One Is Enough" "" ${PORTNAME} \
34                 "${PORTNAME}" "Game;ArcadeGame;" ""
35
36 post-extract:
37         @${FIND} ${WRKSRC} \
38                 -name "Thumbs.db" -delete -or -name "pack.bat" -delete
39
40 do-build:
41         @${PYTHON_CMD} -m compileall ${WRKSRC}
42         @${PYTHON_CMD} -O -m compileall ${WRKSRC}
43
44 do-install:
45         ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
46         @(cd ${WRKSRC}/bin && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/bin)
47 .for f in *.py *.pyc *.pyo
48         ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
49 .endfor
50
51         ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
52                 ${STAGEDIR}${PREFIX}/share/pixmaps/
53
54         @${MKDIR} ${STAGEDIR}${DOCSDIR}
55         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
56
57 .include <bsd.port.mk>