blob: 35b8ad6491c858a44ad1f95baa06bc937ed4b6c9 (
plain)
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
|
# $NetBSD: Makefile,v 1.12 2010/06/13 22:44:17 wiz Exp $
#
DISTNAME= blindmine-0.3-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 7
CATEGORIES= games python
MASTER_SITES= http://kldp.net/frs/download.php/3097/
EXTRACT_SUFX= .zip
MAINTAINER= fox9@netb.co.kr
HOMEPAGE= http://blindmine.kldp.net/
COMMENT= Minesweeper clone that you can play with your eyes closed
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/${PKGBASE}
NO_CONFIGURE= yes
NO_BUILD= yes
SUBST_CLASSES+= path
SUBST_MESSAGE.path= Fixing paths.
SUBST_STAGE.path= post-patch
SUBST_FILES.path= blindmine.py sdl_ui.py
SUBST_SED.path= -e 's,/usr/bin/env python,${PYTHONBIN},g'
PYCOMPILEALL= ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py
INSTALLATION_DIRS= bin share/doc/blindmine share/blindmine/data
.include "../../devel/py-game/buildlink3.mk"
.include "../../lang/python/application.mk"
post-extract:
( ${ECHO} "#!${SH}"; \
${ECHO} "cd ${PREFIX}/share/blindmine && ${PYTHONBIN} blindmine.py > /dev/null" \
) > ${WRKSRC}/blindmine
${CHMOD} +x ${WRKSRC}/blindmine
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/blindmine ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/howto.txt ${DESTDIR}${PREFIX}/share/doc/blindmine
${INSTALL_DATA} ${WRKSRC}/*.py ${DESTDIR}${PREFIX}/share/blindmine
${INSTALL_DATA} ${WRKSRC}/data/* ${DESTDIR}${PREFIX}/share/blindmine/data
${PYTHONBIN} ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine
${PYTHONBIN} -O ${PYCOMPILEALL} ${DESTDIR}${PREFIX}/share/blindmine
.include "../../mk/bsd.pkg.mk"
|