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

Last change on this file since 4802 was 4802, checked in by toby, 16 years ago

MORE master_sites foobage!

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

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