-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
74 lines (58 loc) · 2.36 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- 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 boost 1.0
PortGroup cmake 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0
PortGroup legacysupport 1.1
PortGroup openssl 1.0
boost.version 1.81
github.setup facebook wangle 2024.06.03.00 v
revision 0
checksums rmd160 1311cb270d6824f27a99f7c7fc0f6040f208bbac \
sha256 174b40f9490375830cce92d6755375006c55ab49f5afd97332c55236c1af495d \
size 398531
categories devel
license BSD
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
description Wangle is a framework providing a set of common \
client/server abstractions for building services \
in a consistent, modular, and composable way.
long_description {*}${description}
github.tarball_from releases
distname ${name}-v${version}
extract.mkdir yes
set port_libfmt libfmt10
cmake.module_path-append \
${prefix}/lib/${port_libfmt}/cmake
# doesn't build with libressl as of 2016-09-05
depends_lib-append port:double-conversion \
port:fizz \
port:folly \
port:google-glog \
port:libevent \
port:libsodium \
port:zlib \
port:${port_libfmt}
cmake.source_dir ${worksrcpath}/${name}
if {${os.platform} eq "darwin" && ${os.major} < 15} {
patchfiles-append patch-tcp.diff
}
# Fix error: invalid output constraint '=@ccc' in asm
compiler.blacklist-append \
{clang < 1200}
compiler.cxx_standard 2017
cmake.generator Ninja
configure.args-append \
-DBUILD_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON
legacysupport.newest_darwin_requires_legacy 19
if {[string match *clang* ${configure.compiler}]} {
# Don’t use libcxx with gcc.
legacysupport.use_mp_libcxx yes
}
if {[string match *gcc* ${configure.compiler}]} {
# ___atomic_fetch_sub_8, ___atomic_compare_exchange_8, ___atomic_store_8, ___atomic_load_8, ___atomic_fetch_add_8
configure.ldflags-append \
-latomic
}