# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 # LegacySupport is needed for strnlen before 10.7 legacysupport.newest_darwin_requires_legacy 10 github.setup warmcat libwebsockets 4.5.0 v github.tarball_from archive revision 0 categories devel net license LGPL-2.1 maintainers {gmail.com:slewsys @slewsys} \ {judaew @judaew} openmaintainer description Canonical libwebsockets.org websocket library long_description \ Libwebsockets is a lightweight pure C library built to use minimal \ CPU and memory resources, and provide fast throughput in both directions \ as client or server. checksums rmd160 73ede19c79a783557eae50b28a0a9635dbac8a96 \ sha256 53110bb179448c6d589f669afcc42141085c579bcba8cd6dc09bc93825a18d26 \ size 20159185 depends_lib-append path:lib/libssl.dylib:openssl \ port:zlib \ port:libev \ port:libuv # https://trac.macports.org/ticket/65706 compiler.blacklist-append *gcc-4.* platform powerpc { # Without this, Rosetta pulls out Xcode clang compiler.blacklist-append clang } # Set LWS_BUILD_HASH directly. Otherwise, it will require a git repository. configure.args-append \ -DLWS_BUILD_HASH="no_hash" \ -DLWS_IPV6=ON \ -DLWS_UNIX_SOCK=ON \ -DLWS_WITHOUT_TESTAPPS=ON \ -DLWS_WITH_ACME=ON \ -DLWS_WITH_HTTP2=1 \ -DLWS_WITH_HTTP_PROXY=ON \ -DLWS_WITH_LIBEV=ON \ -DLWS_WITH_LIBUV=ON \ -DLWS_WITH_RANGES=ON \ -DLWS_WITH_SOCKS5=ON \ -DLWS_WITH_ZIP_FOPS=ON post-extract { reinplace "s|-Werror||g" ${worksrcpath}/CMakeLists.txt } post-destroot { delete ${destroot}${prefix}/share/${name}-test-server }