source: trunk/dports/games/PlasmaClient/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem                  1.0
5PortGroup                   cmake 1.0
6
7name                        PlasmaClient
8epoch                       2
9version                     0.0.4a-434
10revision        1
11categories                  games
12platforms                   darwin
13maintainers                 ryandesign
14license                     GPL-3+
15homepage                    http://web.archive.org/web/20110510024500/http://plasmaclient.info/
16
17description                 open-source Plasma engine
18
19long_description            ${name} is an open-source cross-platform \
20                            re-implementation of the Plasma engine, \
21                            originally created by HeadSpin Technologies and \
22                            Cyan Worlds. The Plasma engine powers Myst \
23                            Online: URU Live again.
24
25fetch.type                  hg
26hg.url                      http://uru.zrax.net/hg/plasmaclient
27hg.tag                      18eaf1280f8f
28
29depends_lib                 port:bullet \
30                            port:python26 \
31                            port:boost \
32                            port:jpeg \
33                            port:zlib \
34                            path:lib/libssl.dylib:openssl \
35                            port:libsdl \
36                            port:libhsplasma
37
38if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
39    depends_lib-delete port:boost
40    pre-configure {
41        ui_error "
42****
43**** ${name} requires port boost installed with variant +python26.
44**** Please do the following then try installing ${name} again:
45****
46****     sudo port install boost +python26
47****
48
49"
50        return -code error "incompatible boost installation"
51    }
52}
53
54post-extract {
55    move ${worksrcpath}/README.win32 ${worksrcpath}/README.mac
56}
57
58patchfiles                  patch-README.diff
59
60configure.args              -DBULLET_INCLUDE_DIR:PATH=${prefix}/include/bullet \
61                            -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
62                            -DPYTHON_INCLUDE_DIR:PATH=${frameworks_dir}/Python.framework/Versions/2.6/Headers \
63                            -DPYTHON_LIBRARY:FILEPATH=${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.dylib \
64                            -DSDL_INCLUDE_DIR=${prefix}/include/SDL \
65                            -DSDL_LIBRARY="${prefix}/lib/libSDLmain.a\;${prefix}/lib/libSDL.dylib\;-framework Cocoa"
66
67build.target-append         default_ini
68
69destroot.keepdirs           ${destroot}${prefix}/var/log/${name}
70
71set docdir ${prefix}/share/doc/${name}
72post-destroot {
73    xinstall -d ${destroot}${prefix}/share/mystonline/data/servers
74    xinstall -W ${worksrcpath} default.ini ${destroot}${prefix}/share/mystonline/data/servers
75    xinstall -W ${worksrcpath}/win32dist global.wpm ${destroot}${prefix}/share/mystonline/data
76   
77    xinstall -d ${destroot}${docdir}
78    xinstall -W ${worksrcpath} CHANGELOG README README.mac win32dist/gpl.txt ${destroot}${docdir}
79   
80    xinstall -d -m 777 ${destroot}${prefix}/var/log/${name}
81}
82
83notes "
84${name} is obsolete. Now that the source code of the CyanWorlds.com Engine\
85has been released, the developer of ${name} is focusing his efforts on that\
86project. Check https://github.com/H-uru/Plasma for more info.
87
88To start ${name}, install the PCLauncher port and run PCLauncher in ${applications_dir}
89
90Instructions for using PlasmaClient are in the files ${docdir}/README and ${docdir}/README.mac
91
92For more information, please visit the Guild of Writers' IRC channel at irc://irc.guildofwriters.com/#writers
93"
94
95platform darwin powerpc {
96    notes-append "\n\n${name} probably does not work at all on PowerPC Macs at this time; try an Intel Mac."
97}
98
99platform darwin 8 {
100    configure.ldflags-append -lcrypto -ljpeg -lz
101}
102
103variant chatlog description {Log all chat messages to /tmp/pcchat.log} {
104    patchfiles-append patch-chatlog.diff
105}
106
107if {[variant_isset debug]} {
108    configure.optflags -O1
109    configure.cflags-append -ggdb
110    configure.cxxflags-append -ggdb
111}
112
113livecheck.type              none
Note: See TracBrowser for help on using the repository browser.