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

Last change on this file since 28505 was 28505, checked in by yeled@…, 12 years ago

me -> nomaintainer.

kisses xx

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 28505 2007-09-02 20:15:23Z yeled@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       ${distfiles} md5 21479c95990eefe7650df582426457f9 \
19            ${distfiles} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
20            ${distfiles} rmd160 42f600d24715a0b7e631b357c135761410b3ca95
21
22worksrcdir   ${name}-${version}
23
24## patch ##
25
26patch.args -p1
27patchfiles      patch-sys__unix__Makefile.doc \
28                patch-sys__unix__Makefile.src \
29                patch-sys__unix__Makefile.top \
30                patch-win__tty__termcap.c
31
32post-patch {
33        reinplace "s|__PREFIX__|${prefix}|" \
34                "${worksrcpath}/sys/unix/Makefile.doc" \
35                "${worksrcpath}/sys/unix/Makefile.top"
36        if {[variant_isset menucolors]} {
37                reinplace \
38                "s|.*# define MENU_COLOR_REGEX_POSIX*.|# define MENU_COLOR_REGEX_POSIX |g" \
39                "${workpath}/${worksrcdir}/include/config.h"
40        } elseif {[variant_isset paranoid]} {
41                build.env CFLAGS="CC=gcc -D_PARANOID"
42        }
43
44}
45
46## configure ##
47
48configure.dir   ${worksrcpath}/sys/unix
49configure.cmd   /bin/sh
50configure.pre_args      setup.sh
51
52## destroot ##
53
54pre-destroot {
55        file mkdir "${destroot}${prefix}/share/man/man6"
56        file mkdir "${destroot}${prefix}/share/nethackdir/save"
57}
58
59destroot.target install manpages
60destroot.keepdirs "${destroot}${prefix}/share/nethackdir/save/"
61
62post-destroot {
63        reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
64}
65
66## variants ##
67
68variant x11 {
69        patchfiles-append \
70                x11/patch-include__config.h \
71                x11/patch-sys__unix__Makefile.src \
72                x11/patch-sys__unix__Makefile.top
73}
74
75variant autopickup_exceptions {
76        patchfiles-append \
77                patch-include__config.h
78}               
79
80variant menucolors {
81        patchfiles-append nh343-menucolor.diff
82}
83
84variant paranoid {
85        patchfiles-append paranoid-343.diff
86}
87
88variant deathexplore {
89        patchfiles-append dthexp-343.diff
90}
91
92variant sortloot {
93        patchfiles-append sortloot-343.diff
94}
95
96# needs ifdefs
97#variant showborn {
98#        patch_sites-append http://www.iki.fi/jslahti/nethack.html
99#        patchfiles-append extborn-343.diff
100#        checksums-append sortloot-343.diff md5 6e5f23d5519706f6004f09869c064376
101#}
Note: See TracBrowser for help on using the repository browser.