Changeset 13834


Ignore:
Timestamp:
Sep 2, 2005, 9:18:22 PM (14 years ago)
Author:
toby
Message:

nethack 3.4.3, plus make it work

Location:
trunk/dports/games/nethack
Files:
8 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/nethack/Portfile

    r6796 r13834  
    1 # $Id: Portfile,v 1.20 2004/04/27 18:35:58 matt Exp $
     1# $Id: Portfile,v 1.21 2005/09/02 21:18:19 toby Exp $
    22
    33PortSystem 1.0
    44name            nethack
    5 version         3.4.1
    6 revision        1
     5version         3.4.3
    76categories      games
    87maintainers     kevin@opendarwin.org
    98description     Classic dungeon adventure game.
     9long_description \
     10                ${description}
     11homepage        http://nethack.sourceforge.net/
    1012platforms       darwin freebsd
    11 master_sites     sourceforge
    12 distname        ${portname}-341
     13
     14master_sites    sourceforge
     15distname        ${name}-343-src
    1316extract.suffix  .tgz
    14 checksums       md5 aefcbeb20210b2d64511c84bd03c3e4e
    15 patchfiles      patch-Makefile.top patch-Makefile.src
    16 worksrcdir      ${portname}-${portversion}
    17 destroot.target manpages install
    18 destroot.args    PREFIX=${destroot}${prefix} MANDIR=${destroot}${prefix}/share/man/man6
     17checksums       md5 21479c95990eefe7650df582426457f9
     18
     19worksrcdir      ${name}-${version}
     20
     21## patch ##
     22
     23patchfiles      patch-sys__unix__Makefile.doc \
     24                patch-sys__unix__Makefile.src \
     25                patch-sys__unix__Makefile.top \
     26                patch-win__tty__termcap.c
    1927
    2028post-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}/share/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\""
     29        reinplace "s|__PREFIX__|${prefix}|" \
     30                "${worksrcpath}/sys/unix/Makefile.doc" \
     31                "${worksrcpath}/sys/unix/Makefile.top"
    2832}
    2933
    30 configure {}
     34## configure ##
     35
     36configure.dir   ${worksrcpath}/sys/unix
     37configure.cmd   /bin/sh
     38configure.pre_args      setup.sh
     39
     40## destroot ##
    3141
    3242pre-destroot {
    33         system "mkdir -p -m 0755 \"${destroot}${prefix}/share/man/man6\""
     43        file mkdir "${destroot}${prefix}/share/man/man6"
    3444}
    3545
     46destroot.target install manpages
     47
     48post-destroot {
     49        reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
     50}
     51
     52## variants ##
     53
    3654variant x11 {
    37     patchfiles-append patch-x11-Makefile.top patch-x11-Makefile.src patch-x11-config.h
     55        patchfiles-append \
     56                x11/patch-include__config.h \
     57                x11/patch-sys__unix__Makefile.src \
     58                x11/patch-sys__unix__Makefile.top
    3859}
Note: See TracChangeset for help on using the changeset viewer.