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

Last change on this file since 2123 was 2123, checked in by mij, 18 years ago

Add CVS Id tags.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.15 2003/03/03 06:31:21 mij 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    http://easynews.dl.sourceforge.net/sourceforge/nethack/ \
11                http://telia.dl.sourceforge.net/sourceforge/nethack/
12distname        ${portname}-341
13extract.sufx    .tgz
14checksums       md5 aefcbeb20210b2d64511c84bd03c3e4e
15patchfiles      patch-Makefile.top patch-Makefile.src
16worksrcdir      ${portname}-${portversion}
17install.target  manpages install
18install.args    PREFIX=${destroot}${prefix} MANDIR=${destroot}${prefix}/man/man6
19
20post-patch {
21    set path "${portpath}/${workdir}/${worksrcdir}"
22    reinplace "s|= /usr|= ${prefix}|g" "${path}/sys/unix/Makefile.top"
23        reinplace "s|/usr/man/man6|${prefix}/man/man6|g" "${path}/sys/unix/Makefile.doc"
24    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/sys/unix/Makefile.top"
25    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/sys/unix/nethack.sh"
26    reinplace "s|/usr/games/lib/nethackdir|${prefix}/share/nethackdir|g" "${path}/include/config.h"
27    system "cd \"${path}/sys/unix\" && sh \"${path}/sys/unix/setup.sh\""
28}
29
30configure {}
31
32pre-install {
33        system "mkdir -p -m 0755 \"${destroot}${prefix}/man/man6\""
34}
35
36variant x11 {
37    patchfiles-append patch-x11-Makefile.top patch-x11-Makefile.src patch-x11-config.h
38}
Note: See TracBrowser for help on using the repository browser.