source: trunk/dports/devel/libhsplasma/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 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: 2.6 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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem                  1.0
5PortGroup                   cmake 1.0
6
7name                        libhsplasma
8version                     0.0-20111023
9revision        2
10categories                  devel
11platforms                   darwin
12maintainers                 ryandesign
13license                     GPL-3+
14homepage                    http://code.google.com/p/libhsplasma/
15
16description                 library for reading Plasma game engine files
17
18long_description            libHSPlasma is a library for reading files used \
19                            by the Plasma game engine (created by Headspin, \
20                            acquired by Cyan Worlds), such as those in the \
21                            games Myst V: End of Ages and Myst Online: URU Live
22
23fetch.type                  git
24git.url                     https://github.com/H-uru/libhsplasma.git
25git.branch                  7b8df5940eeecfcd91ab3922a65303a0cadf3e24
26
27depends_lib                 port:zlib \
28                            port:jpeg \
29                            path:lib/libssl.dylib:openssl \
30                            port:python26
31
32patchfiles                  patch-endian.diff
33
34configure.args-append       -DDISABLE_PYTHON:BOOL=OFF \
35                            -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.6 \
36                            -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.6.dylib
37
38set pyhsplasma              ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/PyHSPlasma.so
39
40post-destroot {
41    system "install_name_tool -id ${pyhsplasma} ${destroot}${pyhsplasma}"
42}
43
44pre-activate {
45    # Oops, libhsplasma 0.0-659_1 and earlier installed this lib directly
46    if {[file exists ${pyhsplasma}]} {
47        delete ${pyhsplasma}
48    }
49}
50
51if {[variant_isset debug]} {
52    configure.optflags -O1
53    configure.cflags-append -ggdb
54    configure.cxxflags-append -ggdb
55}
56
57variant commdebug description {Debug network communications (high-level)} {
58    configure.cflags-append     -DCOMMDEBUG
59    configure.cxxflags-append   -DCOMMDEBUG
60}
61
62variant commdebug2 description {Debug network communications (low-level)} {
63    configure.cflags-append     -DCOMMDEBUG2
64    configure.cxxflags-append   -DCOMMDEBUG2
65}
66
67livecheck.type              regex
68livecheck.url               https://github.com/H-uru/libhsplasma/commits/master.atom
69livecheck.version           [regsub {(....)(..)(..)} [lindex [split ${version} -] 1] {\1-\2-\3}]
70livecheck.regex             {<updated>([0-9-]+)T}
Note: See TracBrowser for help on using the repository browser.