1 | # $Id: Portfile,v 1.11 2004/04/27 18:35:58 matt Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name larn |
---|
5 | version 4.6.2-RELEASE |
---|
6 | revision 2 |
---|
7 | categories games |
---|
8 | maintainers eric@opendarwin.org |
---|
9 | description Text-based cavern exploring game |
---|
10 | long_description Larn is text-based fantasy role-playing game similar to Rogue, \ |
---|
11 | Nethack, etc. |
---|
12 | platforms darwin |
---|
13 | use_bzip2 yes |
---|
14 | master_sites opendarwin |
---|
15 | checksums md5 cea96f48caa057793f6bcaf3394ca388 |
---|
16 | build.type bsd |
---|
17 | build.args LDADD+=-L${prefix}/lib\\ -lcompat\\ -lncurses |
---|
18 | worksrcdir ${portname} |
---|
19 | patchfiles patch-diag.c \ |
---|
20 | patch-display.c \ |
---|
21 | patch-global.c \ |
---|
22 | patch-help.c \ |
---|
23 | patch-io.c \ |
---|
24 | patch-main.c \ |
---|
25 | patch-monster.c \ |
---|
26 | patch-moreobj.c \ |
---|
27 | patch-movem.c \ |
---|
28 | patch-object.c \ |
---|
29 | patch-scores.c \ |
---|
30 | patch-store.c |
---|
31 | |
---|
32 | depends_lib port:libcompat \ |
---|
33 | port:ncurses |
---|
34 | |
---|
35 | configure { reinplace "s|MAN|MAN6|" ${worksrcpath}/Makefile |
---|
36 | reinplace "s|/usr/share|${prefix}/share|g" \ |
---|
37 | ${worksrcpath}/pathnames.h |
---|
38 | reinplace "s|/var/games|${prefix}/var/games|g" \ |
---|
39 | ${worksrcpath}/pathnames.h } |
---|
40 | |
---|
41 | destroot { cd ${worksrcpath} |
---|
42 | xinstall -m 755 -d ${destroot}${prefix}/share/games/larn |
---|
43 | xinstall -m 755 -c larn ${destroot}${prefix}/bin |
---|
44 | xinstall -m 644 -c larn.6.gz ${destroot}${prefix}/share/man/man6 |
---|
45 | xinstall -m 644 -c datfiles/larn.help ${destroot}${prefix}/share/games/larn |
---|
46 | xinstall -m 644 -c datfiles/larnmaze ${destroot}${prefix}/share/games/larn } |
---|