blob: 88df640ba0cbb73fcab8b19028fa0d029de0a36d (
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
|
# $NetBSD: Makefile,v 1.7 2008/04/07 16:21:03 joerg Exp $
#
DISTNAME= 4stAttack-2.1.4
PKGREVISION= 5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=forcedattack/}
MAINTAINER= recht@NetBSD.org
HOMEPAGE= http://forcedattack.sourceforge.net/
COMMENT= Game in which you have to try to out-smart your opponent
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin share/${PKGBASE}
PYTHON_PATCH_SCRIPTS= 4stattack.py
FIND_EXCLUDE= \( -name \*.orig -or -name \*.txt -or -name \*.pre -or -name GPL -or -name \*~ -or -name 4stattack \)
do-build:
${CHMOD} 0555 ${WRKSRC}/4stattack.py
${MV} ${WRKSRC}/4stattack ${WRKSRC}/4stattack.pre
${SED} -e "s,@FAHOME@,${PREFIX}/share/${PKGBASE}," \
${WRKSRC}/4stattack.pre > ${WRKSRC}/4stattack
${PYTHONBIN} ${PREFIX}/${PYLIB}/compileall.py ${WRKSRC}
${PYTHONBIN} -O ${PREFIX}/${PYLIB}/compileall.py ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/4stattack ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC} && ${FIND} . -type f -and \! ${FIND_EXCLUDE} \
-print | ${PAX} -rw -pp -pm ${DESTDIR}${PREFIX}/share/${PKGBASE}
.include "../../devel/py-game/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|