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

Last change on this file since 50980 was 50980, checked in by and.damore@…, 10 years ago

Maintainers batch change, removed @macports.org

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $
2
3PortSystem 1.0
4name            nethack
5version         3.4.3
6revision        2
7categories      games
8maintainers     yeled
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}
37
38## configure ##
39
40configure.dir   ${worksrcpath}/sys/unix
41configure.cmd   /bin/sh
42configure.pre_args      setup.sh
43
44## build ##
45
46build.args-append       CFLAGS="-O2 -I../include"
47
48## destroot ##
49
50pre-destroot {
51        file mkdir "${destroot}${prefix}/share/man/man6"
52        file mkdir "${destroot}${prefix}/share/nethackdir/save"
53}
54
55destroot.target install manpages
56destroot.keepdirs "${destroot}${prefix}/share/nethackdir/save/"
57
58post-destroot {
59        reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
60}
61
62## variants ##
63
64variant x11 {
65        patchfiles-append \
66                x11/patch-include__config.h \
67                x11/patch-sys__unix__Makefile.src \
68                x11/patch-sys__unix__Makefile.top
69}
70
71variant autopickup_exceptions {
72        patchfiles-append \
73                patch-include__config.h
74}               
75
76#variant paranoid {
77#        patch_sites-append http://www.netsonic.fi/~walker/nh/
78#        patchfiles-append paranoid-343.diff
79#        checksums-append paranoid-343.diff md5 ade00f9cb51f1b0140557d329d56844c
80#}
81
82#variant deathexplore {
83#        patch_sites-append http://www.netsonic.fi/~walker/nh/
84#        patchfiles-append dthexp-343.diff
85#        checksums-append dthexp-343.diff md5 ade00f9cb51f1b0140557d329d56844c
86#}
87
88#variant sortloot {
89#        patch_sites-append http://www.netsonic.fi/~walker/nh/
90#        patchfiles-append sortloot-343.diff
91#        checksums-append sortloot-343.diff md5 ade00f9cb51f1b0140557d329d56844c
92#}
93
94variant menucolors {
95        patch_sites-append http://bilious.homelinux.org/~paxed/nethack/
96        patchfiles-append nh343-menucolor.diff
97        checksums-append nh343-menucolor.diff md5 ade00f9cb51f1b0140557d329d56844c
98        build.args-delete CFLAGS="-O2 -I../include"
99        build.args-append CFLAGS="-O2 -I../include -DMENU_COLOR_REGEX_POSIX"
100}
Note: See TracBrowser for help on using the repository browser.