source: trunk/dports/net/pwlib/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 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.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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pwlib
7version             1.5.2
8revision            2
9categories          net
10license             MPL-1 MIT BSD Permissive
11platforms           darwin
12maintainers         nomaintainer
13
14description         PWLib libraries for openh323
15
16long_description    libraries for openh323
17
18homepage            http://www.openh323.org
19# Disable this mirror, #23915
20#master_sites        http://www.openh323.org/bin/
21master_sites        sourceforge:openh323
22distname            ${name}_${version}
23
24checksums           md5     0fa33ba1b32b254abe0b731a52c0f2f9
25
26depends_lib         port:openldap \
27                    port:libsdl \
28                    port:expat \
29                    path:lib/libssl.dylib:openssl
30
31worksrcdir          pwlib
32
33patchfiles          patch-all.diff
34
35post-patch {
36    reinplace "s|@@PREFIX@@|${prefix}|g" \
37        ${worksrcpath}/src/ptlib/unix/Makefile \
38        ${worksrcpath}/make/unix.mak
39}
40
41configure.args      --mandir=${prefix}/share/man
42
43configure.env       PWLIBDIR="${worksrcpath}" \
44                    CFLAGS="-I${prefix}/include" \
45                    LDFLAGS="-L${prefix}/lib" \
46                    CPPFLAGS="-I${prefix}/include" \
47                    LD_LIBRARY_PATH="${worksrcpath}/lib"
48
49build.target        both
50
51destroot {
52    xinstall -d ${destroot}${prefix}/share/pwlib/make/
53    system "cd ${worksrcpath} && \
54        chmod a+r lib/*dylib && \
55        cp -R lib/*dylib* ${destroot}${prefix}/lib/ && \
56        cp -R include/ptclib ${destroot}${prefix}/include/ && \
57        cp -R include/ptlib ${destroot}${prefix}/include/ && \
58        cp -R include/ptbuildopts.h ${destroot}${prefix}/include/ && \
59        cp -R include/ptlib.h ${destroot}${prefix}/include/ && \
60        cp tools/asnparser/obj*/asnparser ${destroot}${prefix}/bin/"
61    system "cd ${worksrcpath} && \
62        cp -R make/*.mak ${destroot}${prefix}/share/pwlib/make/ && \
63        cp make/ptlib-config ${destroot}${prefix}/bin/ && \
64        rm -rf ${destroot}${prefix}/include/ptlib/CVS/ && \
65        rm -rf ${destroot}${prefix}/include/ptlib/unix/CVS/ && \
66        rm -rf ${destroot}${prefix}/include/ptlib/unix/ptlib/CVS/ && \
67        rm -rf ${destroot}${prefix}/include/ptclib/CVS/ && \
68        cd ${destroot}${prefix}/lib && \
69        ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && \
70        cd - && \
71        chmod -R a+r ${destroot}${prefix}/include/ptlib \
72            ${destroot}${prefix}/include/ptclib \
73            ${destroot}${prefix}/include/ptlib.h \
74            ${destroot}${prefix}/share/pwlib \
75            ${destroot}${prefix}/include/ptbuildopts.h \
76            ${destroot}${prefix}/include/ptlib.h && \
77        chmod a+rx ${destroot}${prefix}/include/ptlib \
78            ${destroot}${prefix}/include/ptlib/unix \
79            ${destroot}${prefix}/include/ptlib/unix/ptlib \
80            ${destroot}${prefix}/include/ptclib \
81            ${destroot}${prefix}/bin/ptlib-config \
82            ${destroot}${prefix}/share/pwlib/make/ \
83    "
84}
Note: See TracBrowser for help on using the repository browser.