# -*- 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
PortGroup compiler_blacklist_versions 1.0
maintainers {@yan12125 gmail.com:yan12125} openmaintainer
description Shared component for Filezilla programs
long_description Small and modern C++ library, offering some basic \
functionality to build high-performing, \
platform-independent programs.
homepage https://lib.filezilla-project.org/
master_sites https://download.filezilla-project.org/libfilezilla/
checksums rmd160 a88b613d9fc6748d8f24ae139afb313da9b9eb93 \
sha256 05b26742cd232a9205977025e6a48136a87820df7decdc39adb565f1d934c0ec \
depends_build port:pkgconfig \
# libfilezilla uses thread_local, which is not supported in Xcode < 8
compiler.blacklist-append {clang < 800}
test.dir ${worksrcpath}/tests
system -W ${test.dir} "${build.cmd} test"
variant doc description "Install API documents" {
depends_build-append port:doxygen \
port:texlive-fonts-recommended \
port:texlive-latex-extra \
port:texlive-latex-recommended
system -W ${worksrcpath}/doc/ "${build.cmd} html pdf"
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${docdir}/html
copy {*}[glob ${worksrcpath}/doc/doxygen-doc/html/*] ${docdir}/html
delete {*}[glob ${docdir}/html/*.md5]
xinstall -m 644 ${worksrcpath}/doc/doxygen-doc/libfilezilla.pdf ${docdir}