Ticket #3183: Portfile

File Portfile, 1.5 KB (added by aschenke@…, 18 years ago)

New portfile for larn

Line 
1# $Id: Portfile,v 1.11 2004/04/27 18:35:58 matt Exp $
2
3PortSystem 1.0
4name            larn
5version         4.6.2-RELEASE
6revision        2
7categories      games
8maintainers     eric@opendarwin.org
9description     Text-based cavern exploring game
10long_description Larn is text-based fantasy role-playing game similar to Rogue, \
11            Nethack, etc.
12platforms       darwin
13use_bzip2       yes
14master_sites    opendarwin
15checksums       md5 cea96f48caa057793f6bcaf3394ca388
16build.type      bsd
17build.args      LDADD+=-L${prefix}/lib\\ -lcompat\\ -lncurses
18worksrcdir      ${portname}
19patchfiles      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
32depends_lib port:libcompat \
33            port:ncurses
34
35configure       { 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
41destroot        { 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 }