source: trunk/dports/net/pwlib/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 3 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: 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5
6name                pwlib
7version             1.5.2
8revision            1
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.