Nethack version 3.4.3 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    nethack  most recent diff


    version 3.4.3

      View the most recent changes for the nethack port at: nethack.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for nethack.
      The raw portfile for nethack 3.4.3 is located here:
      http://nethack.darwinports.com/dports/games/nethack/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/nethack


      The nethack Portfile 50980 2009-05-14 19:41:55Z and.damore macports.org $

      PortSystem 1.0
      Name: nethack
      Version: 3.4.3
      Revision: 2
      Category: games
      Maintainers: yeled
      Description: Classic dungeon adventure game.
      Long Description: ${description}
      Homepage: http://nethack.sourceforge.net/
      Platform: darwin freebsd

      Master Sites: sourceforge
      distname ${name}-343-src
      extract.suffix .tgz
      Checksums: ${distfiles} md5 21479c95990eefe7650df582426457f9 ${distfiles} sha1 c26537093c38152bc0fbcec20468d975b35f59fd ${distfiles} rmd160 42f600d24715a0b7e631b357c135761410b3ca95

      worksrcdir ${name}-${version}

      ## patch ##

      patch.args -p1
      Patch Files: patch-sys__unix__Makefile.doc patch-sys__unix__Makefile.src patch-sys__unix__Makefile.top patch-win__tty__termcap.c

      post-patch {
      reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/sys/unix/Makefile.doc" "${worksrcpath}/sys/unix/Makefile.top"
      }

      ## configure ##

      configure.dir ${worksrcpath}/sys/unix
      configure.cmd /bin/sh
      configure.pre_args setup.sh

      ## build ##

      build.args-append CFLAGS="-O2 -I../include"

      ## destroot ##

      pre-destroot {
      file mkdir "${destroot}${prefix}/share/man/man6"
      file mkdir "${destroot}${prefix}/share/nethackdir/save"
      }

      destroot.target install manpages
      destroot.keepdirs "${destroot}${prefix}/share/nethackdir/save/"

      post-destroot {
      reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
      }

      ## variants ##

      Variant: x11 {
      patchfiles-append x11/patch-include__config.h x11/patch-sys__unix__Makefile.src x11/patch-sys__unix__Makefile.top
      }

      Variant: autopickup_exceptions {
      patchfiles-append patch-include__config.h
      }

      #variant paranoid {
      # patch_sites-append http://www.netsonic.fi/~walker/nh/
      # patchfiles-append paranoid-343.diff
      # checksums-append paranoid-343.diff md5 ade00f9cb51f1b0140557d329d56844c
      #}

      #variant deathexplore {
      # patch_sites-append http://www.netsonic.fi/~walker/nh/
      # patchfiles-append dthexp-343.diff
      # checksums-append dthexp-343.diff md5 ade00f9cb51f1b0140557d329d56844c
      #}

      #variant sortloot {
      # patch_sites-append http://www.netsonic.fi/~walker/nh/
      # patchfiles-append sortloot-343.diff
      # checksums-append sortloot-343.diff md5 ade00f9cb51f1b0140557d329d56844c
      #}

      Variant: menucolors {
      patch_sites-append http://bilious.homelinux.org/~paxed/nethack/
      patchfiles-append nh343-menucolor.diff
      checksums-append nh343-menucolor.diff md5 ade00f9cb51f1b0140557d329d56844c
      build.args-delete CFLAGS="-O2 -I../include"
      build.args-append CFLAGS="-O2 -I../include -DMENU_COLOR_REGEX_POSIX"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/nethack
      % sudo port install nethack
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching nethack
      ---> Verifying checksum for nethack
      ---> Extracting nethack
      ---> Configuring nethack
      ---> Building nethack with target all
      ---> Staging nethack into destroot
      ---> Installing nethack
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using nethack with these commands:
      %  man nethack
      % apropos nethack
      % which nethack
      % locate nethack

     Where to find more information:

    Darwin Ports



    Lightbox this page.