# -*- 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
license MPL-1 MIT BSD Permissive
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 \
path:lib/libssl.dylib:openssl
patchfiles patch-all.diff
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"
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/ && \