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
|
# $NetBSD: Makefile,v 1.16 2004/01/24 13:30:56 grant Exp $
#
DISTNAME= iso-pern_src-0_2_6
PKGNAME= iso-pernangband-0.2.6
PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.simugraph.com/simutrans/data/
MAINTAINER= ben@NetBSD.org
HOMEPAGE= http://www.isoband.cjb.net/
COMMENT= Isometric (pseudo 3D) view for Angband
WRKSRC= ${WRKDIR}/iso-pern_src/src
USE_BUILDLINK2= yes
USE_GNU_TOOLS+= make
USE_X11= yes
post-patch:
${CP} ${WRKSRC}/simugraph/simgraph.c ${WRKSRC}/simugraph/simgraph.c.orig
${SED} -e "s,\./,${PREFIX}/share/iso-pernangband/," \
-e "s,\([a-z0-9]*\.pak\),${PREFIX}/share/iso-pernangband/\1," \
<${WRKSRC}/simugraph/simgraph.c.orig \
>${WRKSRC}/simugraph/simgraph.c
# change keymap to match isometric view, much more convenient
${CP} ${WRKSRC}/../lib/user/pref-sdl.prf \
${WRKSRC}/../lib/user/pref-sdl.prf.orig
${SED} -e 's,1$$,z,' -e 's,4$$,1,' -e 's,7$$,4,' \
-e 's,8$$,7,' -e 's,9$$,8,' -e 's,6$$,9,' \
-e 's,3$$,6,' -e 's,2$$,3,' -e 's,z$$,2,' \
<${WRKSRC}/../lib/user/pref-sdl.prf.orig \
>${WRKSRC}/../lib/user/pref-sdl.prf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/iso-pernangband
${CP} -R ${WRKSRC}/../lib/* ${PREFIX}/share/iso-pernangband
${INSTALL_DATA} \
${WRKSRC}/../daten.pak \
${WRKSRC}/../daten2.pak \
${WRKSRC}/../draw.fnt \
${PREFIX}/share/iso-pernangband
${CHOWN} -R bin:games ${PREFIX}/share/iso-pernangband
${CHMOD} -R 0664 ${PREFIX}/share/iso-pernangband
${FIND} ${PREFIX}/share/iso-pernangband -type d | ${XARGS} ${CHMOD} 0775
${INSTALL} -c -s -o bin -g games -m 2755 \
${WRKSRC}/testing \
${PREFIX}/bin/iso-pernangband
.include "../../devel/SDL/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|