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

Last change on this file since 17357 was 17357, checked in by markd, 14 years ago

Bug: 5412
Submitted by: brent@…
Reviewed by: markd@…
Approved by: markd@…
Obtained from:
Added variant autopickup_exceptions.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.23 2006/04/08 07:10:20 markd Exp $
2
3PortSystem 1.0
4name            nethack
5version         3.4.3
6revision        2
7categories      games
8maintainers     kevin@opendarwin.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.