Changeset 51099


Ignore:
Timestamp:
May 18, 2009, 12:37:07 AM (11 years ago)
Author:
blb@…
Message:

games/pennmush - version update to 1.8.3p9, ticket #15237

Location:
trunk/dports/games/pennmush
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/pennmush/Portfile

    r51070 r51099  
    33PortSystem          1.0
    44name                pennmush
    5 version             1.8.1p4
     5version             1.8.3p9
    66set branch          [join [lrange [split ${version} .] 0 1] .]
    77categories          games
     
    1717   and a very similar command parser.
    1818
     19platforms           darwin
     20
    1921homepage            http://www.pennmush.org/
    2022master_sites        http://download.pennmush.org/Source/ \
    2123                    http://download.pennmush.org/Source/oldsrc/${branch}/
    22 distname            pennmush
    23 distfiles           pennmush-1.8.1p4${extract.suffix}
    2424
    25 checksums           md5 9078100d019bffa0aac2baeb0fa5f6e4
     25checksums           md5     88dc8ec2c07171831d9d0959549d82e3 \
     26                    sha1    a06f18221a40ed847bba7e30935c38937309fabe \
     27                    rmd160  de5777b8b2c592fecc23ade2c5cceccfee17086b
    2628
    27 patchfiles          patch-Configure.diff patch-Makefile.SH.diff
     29depends_lib         port:openssl port:pcre path:bin/perl:perl5 port:gettext
    2830
    29 configure.cmd       sh Configure -d
    30 configure.pre_args  {}
     31patchfiles          patch-game_txt_Makefile
    3132
    32 pre-build {
    33    xinstall options.h.dist options.h
    34 
    35    xinstall game/mushcnf.dst game/mush.cnf
    36    xinstall game/aliascnf.dst game/alias.cnf
    37    xinstall game/restrictcnf.dst game/restrict.cnf
    38 
    39    reinplace "s|GAMEDIR=|GAMEDIR=${prefix}/pennmush|g" game/restart
     33configure.args      --without-mysql --without-postgresql --without-sqlite3 \
     34                    --with-perl=${prefix}/bin/perl --with-ssl=${prefix} \
     35                    --with-pcre=${prefix}
     36post-configure {
     37   copy ${worksrcpath}/options.h.dist ${worksrcpath}/options.h
    4038}
    4139
    42 destroot.destdir    GLOBAL_INSTALL=${destroot}${prefix}/pennmush
    43 destroot.target     globalinstall
     40post-build {
     41   system "cd ${worksrcpath}/game/txt && make clean all"
     42}
    4443
     44set pennmush_install_dir ${prefix}/libexec/${name}
     45
     46# Do our own install since the Makefiles aren't quite up to snuff for
     47# full autoconf use yet...
     48destroot {
     49   global pennmush_install_dir
     50   xinstall -m 755 -d ${destroot}${pennmush_install_dir}
     51   eval copy [glob ${worksrcpath}/game/*] ${destroot}${pennmush_install_dir}
     52   xinstall -m 755 ${worksrcpath}/src/netmud \
     53      ${destroot}${pennmush_install_dir}/netmush
     54   xinstall -m 755 ${worksrcpath}/src/info_slave \
     55      ${destroot}${pennmush_install_dir}
     56   xinstall -m 755 ${worksrcpath}/utils/ln-dir.sh \
     57      ${destroot}${pennmush_install_dir}
     58   reinplace "s|GAMEDIR=|GAMEDIR=${pennmush_install_dir}|g" \
     59      ${destroot}${pennmush_install_dir}/restart
     60   delete ${destroot}${pennmush_install_dir}/mush.cnf
     61}
     62
     63post-activate {
     64   global pennmush_install_dir
     65   if {![file exists ${pennmush_install_dir}/mush.cnf]} {
     66      copy ${pennmush_install_dir}/mushcnf.dst ${pennmush_install_dir}/mush.cnf
     67   }
     68}
     69
     70variant mysql5 description {Use MySQL for database} {
     71   depends_lib-append      port:mysql5
     72   configure.args-delete   --without-mysql
     73   configure.args-append   --with-mysql=${prefix}/bin/mysql_config5
     74}
     75
     76variant postgresql83 description {Use PostGreSQL for database} {
     77   depends_lib-append      port:postgresql83
     78   configure.args-delete   --without-postgresql
     79   configure.args-append   --with-postgresql=${prefix}/lib/postgresql83/bin/pg_config
     80}
     81
     82variant sqlite3 description {Use SQLite3 for database} {
     83   depends_lib-append      port:sqlite3
     84   configure.args-delete   --without-sqlite3
     85   configure.args-append   --with-sqlite3=${prefix}
     86}
     87
Note: See TracChangeset for help on using the changeset viewer.