source: trunk/dports/games/nethack/Portfile @ 2087

Last change on this file since 2087 was 2087, checked in by kevin, 18 years ago

NetHack 3.4.1

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1PortSystem 1.0
2name            nethack
3version         3.4.1
4categories      games
5maintainers     kevin@opendarwin.org
6description     Classic dungeon adventure game.
7platforms       darwin freebsd
8master_sites    http://easynews.dl.sourceforge.net/sourceforge/nethack/ \
9                http://telia.dl.sourceforge.net/sourceforge/nethack/
10distname        ${portname}-341
11extract.sufx    .tgz
12checksums       md5 ac665bc4414269451ae2da23a95621ed
13patchfiles      patch-Makefile.top patch-Makefile.src
14worksrcdir      ${portname}-${portversion}
15install.target  manpages install
16install.args    PREFIX=${destroot}${prefix} MANDIR=${destroot}${prefix}/man/man6
17
18post-patch {
19    set path "${portpath}/${workdir}/${worksrcdir}"
20    reinplace "s|= /usr|= ${prefix}|g" "${path}/sys/unix/Makefile.top"
21        reinplace "s|/usr/man/man6|${prefix}/man/man6|g" "${path}/sys/unix/Makefile.doc"
22    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/sys/unix/Makefile.top"
23    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/sys/unix/nethack.sh"
24    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/include/config.h"
25    system "cd \"${path}/sys/unix\" && sh \"${path}/sys/unix/setup.sh\""
26}
27
28configure {}
29
30pre-install {
31        system "mkdir -p -m 0755 \"${destroot}${prefix}/man/man6\""
32}
33
34variant x11 {
35    patchfiles-append patch-x11-Makefile.top patch-x11-Makefile.src patch-x11-config.h
36}
Note: See TracBrowser for help on using the repository browser.