# $Id$ PortSystem 1.0 name larn version 12 revision 0 categories 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. 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 { addgroup games 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 775 -g games -d ${destroot}${prefix}/var/games/larn xinstall -m 755 -d ${destroot}${prefix}/share/larn xinstall -m 2755 -g games -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