Larn version 12 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 12

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


      The larn Portfile 59484 2009-10-15 16:37:07Z aschenke macports.org $

      PortSystem 1.0
      Name: larn
      Version: 12
      Revision: 1
      Category: games
      Maintainers: aschenke
      Description: Text-based cavern exploring game
      Long Description: Larn is a text-based fantasy role-playing game similar to Rogue, Nethack, etc.
      Homepage:
      Platform: darwin
      use_bzip2 yes
      Master Sites: http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/
      distname ${name}-4.6.2-RELEASE
      Checksums: md5 cea96f48caa057793f6bcaf3394ca388
      build.type bsd
      build.args CC=${configure.cc}
      build.env-append CFLAGS="-I${prefix}/include -I${prefix}/include/ncurses"

      depends_lib-append port:ncurses

      worksrcdir ${name}
      Patch Files: patch-diag.c patch-display.c patch-global.c patch-help.c patch-io.c patch-main.c patch-monster.c patch-moreobj.c patch-movem.c patch-object.c patch-scores.c patch-store.c

      Variant: singleuser description {Disables system-wide scoreboards and allows local user installation without root privileges} {}

      configure {
      if {![variant_isset singleuser]} {
      addgroup games
      }

      reinplace "s|MAN|MAN6|" ${worksrcpath}/Makefile
      reinplace "s|LDADD= -ltermcap -lcompat|LDADD= -lncurses -L${prefix}/lib|" ${worksrcpath}/Makefile

      reinplace "s|/usr/share/games|${prefix}/share|g" ${worksrcpath}/pathnames.h
      reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/pathnames.h
      }

      destroot {
      if {![variant_isset singleuser]} {
      xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/larn
      } else {
      xinstall -m 775 -d ${destroot}${prefix}/var/games/larn
      }

      xinstall -m 755 -d ${destroot}${prefix}/share/larn

      if {![variant_isset singleuser]} {
      xinstall -m 2755 -g games -c ${worksrcpath}/larn ${destroot}${prefix}/bin
      } else {
      xinstall -m 755 -c ${worksrcpath}/larn ${destroot}${prefix}/bin
      }

      xinstall -m 644 -c ${worksrcpath}/larn.6.gz ${destroot}${prefix}/share/man/man6
      xinstall -m 644 -c ${worksrcpath}/datfiles/larn.help ${destroot}${prefix}/share/larn
      xinstall -m 644 -c ${worksrcpath}/datfiles/larnmaze ${destroot}${prefix}/share/larn
      }

      destroot.keepdirs ${destroot}${prefix}/var/games/larn

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.