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

Last change on this file since 24187 was 22478, checked in by pipping@…, 13 years ago
  • Spring-cleaning @opendarwin.org addresses

see #11465
see http://www.mail-archive.com/macports-dev@lists.macosforge.org/msg00309.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4name            nethack
5version         3.4.3
6revision        2
7categories      games
8maintainers     nomaintainer@macports.org
9description     Classic dungeon adventure game.
10long_description \
11                ${description}
12homepage        http://nethack.sourceforge.net/
13platforms       darwin freebsd
14
15master_sites    sourceforge
16distname        ${name}-343-src
17extract.suffix  .tgz
18checksums       md5 21479c95990eefe7650df582426457f9
19
20worksrcdir      ${name}-${version}
21
22## patch ##
23
24patchfiles      patch-sys__unix__Makefile.doc \
25                patch-sys__unix__Makefile.src \
26                patch-sys__unix__Makefile.top \
27                patch-win__tty__termcap.c
28
29post-patch {
30        reinplace "s|__PREFIX__|${prefix}|" \
31                "${worksrcpath}/sys/unix/Makefile.doc" \
32                "${worksrcpath}/sys/unix/Makefile.top"
33}
34
35## configure ##
36
37configure.dir   ${worksrcpath}/sys/unix
38configure.cmd   /bin/sh
39configure.pre_args      setup.sh
40
41## destroot ##
42
43pre-destroot {
44        file mkdir "${destroot}${prefix}/share/man/man6"
45        file mkdir "${destroot}${prefix}/share/nethackdir/save"
46}
47
48destroot.target install manpages
49destroot.keepdirs "${destroot}${prefix}/share/nethackdir/save/"
50
51post-destroot {
52        reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
53}
54
55## variants ##
56
57variant x11 {
58        patchfiles-append \
59                x11/patch-include__config.h \
60                x11/patch-sys__unix__Makefile.src \
61                x11/patch-sys__unix__Makefile.top
62}
63
64variant autopickup_exceptions {
65        patchfiles-append \
66                patch-include__config.h
67}               
Note: See TracBrowser for help on using the repository browser.