/
Portfile
58 lines (49 loc) · 2.17 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
# -*- 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 cmake 1.1
PortGroup github 1.0
# Prior to updating please make sure toxic builds against a new version.
github.setup TokTok c-toxcore 0.2.19 v
name toxcore
epoch 1
revision 0
categories net security devel
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
license GPL-3
description Tox is a peer to peer (serverless) instant messenger aimed at making security and privacy \
easy to obtain for regular users. It uses NaCl for its encryption and authentication.
long_description {*}${description}
homepage https://tox.chat
fetch.type git
post-extract {
system -W ${worksrcpath} "git submodule update --init"
}
set py_ver 3.11
set py_ver_nodot [string map {. {}} ${py_ver}]
depends_build-append port:pkgconfig
depends_lib-append path:lib/pkgconfig/vpx.pc:libvpx \
port:libconfig-hr \
port:libsodium \
port:libopus \
port:python${py_ver_nodot}
compiler.c_standard 1999
compiler.cxx_standard 2017
compiler.openmp_version 3.0
configure.args-append -DBOOTSTRAP_DAEMON=ON \
-DBUILD_FUN_UTILS=ON \
-DBUILD_TOXAV=ON \
-DDHT_BOOTSTRAP=ON \
-DENABLE_SHARED=ON \
-DENABLE_STATIC=ON \
-DSTRICT_ABI=OFF
if {[string match *clang* ${configure.compiler}]} {
# Undefined symbols for architecture x86_64: ___kmpc_*, _omp_get_max_threads
configure.ldflags-append \
-L${prefix}/lib/libomp \
-lomp
}
notes "
This is an experimental cryptographic network library.\
It has not been formally audited by an independent third party\
that specializes in cryptography or cryptanalysis. Use this library at your own risk.
"