set branch [join [lrange [split ${version} .] 0 1] .]
description The PennMUSH mud server
There are a number of flavors of MUSH server freely available to those \
who want to run their own MUSHes: TinyMUSH 3.0, TinyMUSH 2.2, TinyMUX 1.6, \
and PennMUSH 1.7.x. TinyMUSH uses a disk-based database, while PennMUSH \
keeps its database in the computer's memory (TinyMUX can do either). This \
makes PennMUSH suitable for computers which have plenty of memory or \
little disk space. From a user standpoint they offer many similar features \
and a very similar command parser.
homepage http://www.pennmush.org/
master_sites http://download.pennmush.org/Source/ \
http://download.pennmush.org/Source/oldsrc/${branch}/
checksums md5 88dc8ec2c07171831d9d0959549d82e3 \
sha1 a06f18221a40ed847bba7e30935c38937309fabe \
rmd160 de5777b8b2c592fecc23ade2c5cceccfee17086b
depends_lib path:lib/libssl.dylib:openssl port:pcre path:bin/perl:perl5 port:gettext
patchfiles patch-game_txt_Makefile
configure.args --without-mysql --without-postgresql --without-sqlite3 \
--with-perl=${prefix}/bin/perl --with-ssl=${prefix} \
copy ${worksrcpath}/options.h.dist ${worksrcpath}/options.h
system "cd ${worksrcpath}/game/txt && make clean all"
set pennmush_install_dir ${prefix}/libexec/${name}
# Do our own install since the Makefiles aren't quite up to snuff for
# full autoconf use yet...
global pennmush_install_dir
xinstall -m 755 -d ${destroot}${pennmush_install_dir}
copy {*}[glob ${worksrcpath}/game/*] ${destroot}${pennmush_install_dir}
xinstall -m 755 ${worksrcpath}/src/netmud \
${destroot}${pennmush_install_dir}/netmush
xinstall -m 755 ${worksrcpath}/src/info_slave \
${destroot}${pennmush_install_dir}
xinstall -m 755 ${worksrcpath}/utils/ln-dir.sh \
${destroot}${pennmush_install_dir}
reinplace "s|GAMEDIR=|GAMEDIR=${pennmush_install_dir}|g" \
${destroot}${pennmush_install_dir}/restart
delete ${destroot}${pennmush_install_dir}/mush.cnf