# $Id: Portfile 36980 2008-05-21 22:43:10Z aschenke@macports.org $ PortSystem 1.0 name larn version 12 revision 0 categories games maintainers aschenke@macports.org description Text-based cavern exploring game long_description Larn is a text-based fantasy role-playing game similar to Rogue, \ Nethack, etc. platforms 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 LDADD+=-L${prefix}/lib\\ -lcompat\\ -lcurses worksrcdir ${name} patchfiles 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 depends_lib port:libcompat platform darwin 9 { build.args LDADD+=-L${prefix}/lib\\ -lcurses depends_lib-delete port:libcompat } configure { reinplace "s|MAN|MAN6|" ${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 { xinstall -m 755 -d ${destroot}${prefix}/share/larn 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 xinstall -m 775 -d ${destroot}${prefix}/var/games/larn xinstall -m 660 -c /dev/null ${destroot}${prefix}/var/games/larn/lscore12.0 xinstall -m 660 -c /dev/null ${destroot}${prefix}/var/games/larn/llog12.0 }