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

Last change on this file since 1913 was 1913, checked in by michaelm, 18 years ago

destroot

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