Skip to content

Commit

Permalink
toxext: new port in net
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 4, 2024
1 parent 8dbefe0 commit d0b8624
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
26 changes: 26 additions & 0 deletions net/toxext/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- 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

github.setup toxext toxext 0.0.3 v
revision 0
categories net security
license GPL-3
maintainers nomaintainer
description Extension library for Tox
long_description ToxExt - An extension library for Tox.
checksums rmd160 a1cd7ad7f1c2451eed1872c8a705b9fadeb3629c \
sha256 99cf215d261a07bd83eafd1c69dcf78018db605898350b6137f1fd8e7c54734a \
size 34759
github.tarball_from archive

# https://github.com/toxext/toxext/issues/12
patchfiles-append patch-do-not-force-sanitizers.diff

depends_build-append path:bin/pkg-config:pkgconfig

depends_lib-append port:toxcore

compiler.c_standard 2011
11 changes: 11 additions & 0 deletions net/toxext/files/patch-do-not-force-sanitizers.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- test/CMakeLists.txt 2021-10-26 14:05:04.000000000 +0800
+++ test/CMakeLists.txt 2024-12-04 12:48:22.000000000 +0800
@@ -6,7 +6,7 @@
# I'm sure I could do this better but I don't want to spend my time on cmake really
function(toxext_test test_name)
add_executable(${test_name} ${ARGN})
- if (UNIX)
+ if (UNIX AND NOT APPLE)
target_compile_options(${test_name} PRIVATE -fsanitize=address)
target_link_libraries(${test_name} "-fsanitize=address")
endif()

0 comments on commit d0b8624

Please sign in to comment.