# -*- 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 # $Id$ PortSystem 1.0 name pwlib version 1.5.2 revision 2 categories net license MPL-1 MIT BSD Permissive platforms darwin maintainers nomaintainer description PWLib libraries for openh323 long_description libraries for openh323 homepage http://www.openh323.org # Disable this mirror, #23915 #master_sites http://www.openh323.org/bin/ master_sites sourceforge:openh323 distname ${name}_${version} checksums md5 0fa33ba1b32b254abe0b731a52c0f2f9 depends_lib port:openldap \ port:libsdl \ port:expat \ path:lib/libssl.dylib:openssl worksrcdir pwlib patchfiles patch-all.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" \ ${worksrcpath}/src/ptlib/unix/Makefile \ ${worksrcpath}/make/unix.mak } configure.args --mandir=${prefix}/share/man configure.env PWLIBDIR="${worksrcpath}" \ CFLAGS="-I${prefix}/include" \ LDFLAGS="-L${prefix}/lib" \ CPPFLAGS="-I${prefix}/include" \ LD_LIBRARY_PATH="${worksrcpath}/lib" build.target both destroot { xinstall -d ${destroot}${prefix}/share/pwlib/make/ system "cd ${worksrcpath} && \ chmod a+r lib/*dylib && \ cp -R lib/*dylib* ${destroot}${prefix}/lib/ && \ cp -R include/ptclib ${destroot}${prefix}/include/ && \ cp -R include/ptlib ${destroot}${prefix}/include/ && \ cp -R include/ptbuildopts.h ${destroot}${prefix}/include/ && \ cp -R include/ptlib.h ${destroot}${prefix}/include/ && \ cp tools/asnparser/obj*/asnparser ${destroot}${prefix}/bin/" system "cd ${worksrcpath} && \ cp -R make/*.mak ${destroot}${prefix}/share/pwlib/make/ && \ cp make/ptlib-config ${destroot}${prefix}/bin/ && \ rm -rf ${destroot}${prefix}/include/ptlib/CVS/ && \ rm -rf ${destroot}${prefix}/include/ptlib/unix/CVS/ && \ rm -rf ${destroot}${prefix}/include/ptlib/unix/ptlib/CVS/ && \ rm -rf ${destroot}${prefix}/include/ptclib/CVS/ && \ cd ${destroot}${prefix}/lib && \ ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && \ cd - && \ chmod -R a+r ${destroot}${prefix}/include/ptlib \ ${destroot}${prefix}/include/ptclib \ ${destroot}${prefix}/include/ptlib.h \ ${destroot}${prefix}/share/pwlib \ ${destroot}${prefix}/include/ptbuildopts.h \ ${destroot}${prefix}/include/ptlib.h && \ chmod a+rx ${destroot}${prefix}/include/ptlib \ ${destroot}${prefix}/include/ptlib/unix \ ${destroot}${prefix}/include/ptlib/unix/ptlib \ ${destroot}${prefix}/include/ptclib \ ${destroot}${prefix}/bin/ptlib-config \ ${destroot}${prefix}/share/pwlib/make/ \ " }