source: trunk/dports/games/pennmush/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                pennmush
6version             1.8.3p9
7revision            3
8set branch          [join [lrange [split ${version} .] 0 1] .]
9categories          games
10license             Artistic-1 BSD
11maintainers         nomaintainer
12description         The PennMUSH mud server
13long_description \
14   There are a number of flavors of MUSH server freely available to those \
15   who want to run their own MUSHes: TinyMUSH 3.0, TinyMUSH 2.2, TinyMUX 1.6, \
16   and PennMUSH 1.7.x. TinyMUSH uses a disk-based database, while PennMUSH \
17   keeps its database in the computer's memory (TinyMUX can do either). This \
18   makes PennMUSH suitable for computers which have plenty of memory or \
19   little disk space. From a user standpoint they offer many similar features \
20   and a very similar command parser.
21
22platforms           darwin
23
24homepage            http://www.pennmush.org/
25master_sites        http://download.pennmush.org/Source/ \
26                    http://download.pennmush.org/Source/oldsrc/${branch}/
27
28checksums           md5     88dc8ec2c07171831d9d0959549d82e3 \
29                    sha1    a06f18221a40ed847bba7e30935c38937309fabe \
30                    rmd160  de5777b8b2c592fecc23ade2c5cceccfee17086b
31
32depends_lib         path:lib/libssl.dylib:openssl port:pcre path:bin/perl:perl5 port:gettext
33
34patchfiles          patch-game_txt_Makefile
35
36configure.args      --without-mysql --without-postgresql --without-sqlite3 \
37                    --with-perl=${prefix}/bin/perl --with-ssl=${prefix} \
38                    --with-pcre=${prefix}
39post-configure {
40   copy ${worksrcpath}/options.h.dist ${worksrcpath}/options.h
41}
42
43post-build {
44   system "cd ${worksrcpath}/game/txt && make clean all"
45}
46
47set pennmush_install_dir ${prefix}/libexec/${name}
48
49# Do our own install since the Makefiles aren't quite up to snuff for
50# full autoconf use yet...
51destroot {
52   global pennmush_install_dir
53   xinstall -m 755 -d ${destroot}${pennmush_install_dir}
54   eval copy [glob ${worksrcpath}/game/*] ${destroot}${pennmush_install_dir}
55   xinstall -m 755 ${worksrcpath}/src/netmud \
56      ${destroot}${pennmush_install_dir}/netmush
57   xinstall -m 755 ${worksrcpath}/src/info_slave \
58      ${destroot}${pennmush_install_dir}
59   xinstall -m 755 ${worksrcpath}/utils/ln-dir.sh \
60      ${destroot}${pennmush_install_dir}
61   reinplace "s|GAMEDIR=|GAMEDIR=${pennmush_install_dir}|g" \
62      ${destroot}${pennmush_install_dir}/restart
63   delete ${destroot}${pennmush_install_dir}/mush.cnf
64}
65
66post-activate {
67   global pennmush_install_dir
68   if {![file exists ${pennmush_install_dir}/mush.cnf]} {
69      copy ${pennmush_install_dir}/mushcnf.dst ${pennmush_install_dir}/mush.cnf
70   }
71}
72
73variant mysql5 description {Use MySQL for database} {
74   depends_lib-append      path:bin/mysql_config5:mysql5
75   configure.args-delete   --without-mysql
76   configure.args-append   --with-mysql=${prefix}/bin/mysql_config5
77}
78
79variant postgresql83 description {Use PostGreSQL for database} {
80   depends_lib-append      port:postgresql83
81   configure.args-delete   --without-postgresql
82   configure.args-append   --with-postgresql=${prefix}/lib/postgresql83/bin/pg_config
83}
84
85variant sqlite3 description {Use SQLite3 for database} {
86   depends_lib-append      port:sqlite3
87   configure.args-delete   --without-sqlite3
88   configure.args-append   --with-sqlite3=${prefix}
89}
Note: See TracBrowser for help on using the repository browser.