jnethack version 3.4.3-0.9 for Mac OS X 10.5 Leopard
Sunday the 11th of May, 2008

    jnethack  most recent diff


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



      # $Id: Portfile 31277 2007-11-19 06:42:03Z takanori macports.org $

      PortSystem 1.0

      Name: jnethack
      Version: 3.4.3-0.9
      Category: games japanese
      Maintainers: rutiler.net:kyut takanori
      Description: Classic dungeon adventure game, translated in Japanese.
      Long Description: ${description}
      Platform: darwin
      Homepage: http://jnethack.sourceforge.jp/
      #master_sites sourceforge_jp:${name}/9091/:nh # sourceforge_jp:${name}/25190/:jnh
      set sfjpid_nh 9091
      set sfjpid_jnh 25190
      master_sites http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh http://osdn.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh http://jaist.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh http://osdn.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh http://jaist.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh
      set nethacksrc "nethack-343-src.tgz"
      set jnethackpatch "${name}-${version}.diff.gz"
      distfiles ${nethacksrc}:nh ${jnethackpatch}:jnh
      patchfiles patch-sys_unix_Makefile.doc.diff patch-sys_unix_Makefile.top.diff patch-sys_unix_nethack.sh.diff patch-win_tty_termcap.c.diff patch-src_options.c.diff
      checksums ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd ${jnethackpatch} sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a

      depends_build port:bison port:flex
      depends_run port:cocot

      ## extract ##

      extract.only ${nethacksrc}
      worksrcdir nethack-3.4.3
      post-extract {
      system "cd ${worksrcpath} && gunzip -dc ${distpath}/${jnethackpatch} | patch -p 1"
      }

      ## patch ##

      pre-patch {
      if {[variant_isset x11]} {
      patchfiles-append x11/patch-include_config.h.diff x11/patch-sys_unix_Makefile.top.diff x11/patch-sys_unix_Makefile.src.diff x11/patch-win_X11_JNetHack.ad.diff
      }
      }
      post-patch {
      reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/sys/unix/Makefile.doc" "${worksrcpath}/sys/unix/Makefile.top" "${worksrcpath}/sys/unix/nethack.sh"
      }

      ## configure ##

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

      ## destroot ##

      pre-destroot {
      addgroup games
      adduser games gid=[existsgroup games]

      xinstall -m 755 -d "${destroot}${prefix}/share/man/man6"
      xinstall -m 755 -d "${destroot}${prefix}/share/jnethackdir/save"
      }

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

      post-destroot {
      reinplace "s|${destroot}||" "${destroot}${prefix}/bin/jnethack"
      if {[variant_isset x11]} {
      copy ${worksrcpath}/win/X11/JNetHack.ad ${destroot}${prefix}/share/jnethackdir/
      }
      }

      ## install ##

      pre-install {
      addgroup games
      adduser games gid=[existsgroup games]
      }

      ## variants ##

      Variant: x11 {}

      Variant: universal {
      post-patch {
      reinplace "s|^CFLAGS = -W -g -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.src
      reinplace "s|\$(LINK) \$(LFLAGS)|\$(LINK) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.src
      reinplace "s|^CFLAGS = -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.utl
      reinplace "s|\$(CC) \$(LFLAGS)|\$(CC) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.utl
      }
      }

      livecheck.check regex
      livecheck.url ${homepage}
      livecheck.regex
    • \\(\[0-9/\]+\\) (\[0-9.-\]+)

    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/jnethack
      % sudo port install jnethack
      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 jnethack
      ---> Verifying checksum for jnethack
      ---> Extracting jnethack
      ---> Configuring jnethack
      ---> Building jnethack with target all
      ---> Staging jnethack into destroot
      ---> Installing jnethack
    - 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 jnethack with these commands:
      %  man jnethack
      % apropos jnethack
      % which jnethack
      % locate jnethack

     Where to find more information:

    Darwin Ports



    image test