diff --git a/net-im/tg_owt/Makefile b/net-im/tg_owt/Makefile index 8206262a83c6..8076dae0a7d4 100644 --- a/net-im/tg_owt/Makefile +++ b/net-im/tg_owt/Makefile @@ -1,44 +1,47 @@ # Created by: Henry Hu PORTNAME= tg_owt PORTVERSION= 0.0.20210718 +PORTREVISION= 1 CATEGORIES= net-im MAINTAINER= henry.hu.sh@gmail.com COMMENT= Webrtc library used by telegram-desktop LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= alsa-lib>0:audio/alsa-lib \ pulseaudio>0:audio/pulseaudio \ v4l_compat>0:multimedia/v4l_compat \ yasm:devel/yasm LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \ + libevent.so:devel/libevent \ libjpeg.so:graphics/jpeg-turbo \ libopus.so:audio/opus \ libpipewire-0.3.so:multimedia/pipewire \ - libusrsctp.so:net/libusrsctp + libusrsctp.so:net/libusrsctp \ + libvpx.so:multimedia/libvpx USES= cmake pkgconfig xorg USE_XORG= x11 xcomposite xdamage xrender xrandr USE_GITHUB= yes GH_ACCOUNT= desktop-app GH_PROJECT= tg_owt GH_TAGNAME= 91d836d # libyuv cloned from https://chromium.googlesource.com/libyuv/libyuv GH_TUPLE= webmproject:libvpx:5b63f0f:libvpx/src/third_party/libvpx/source/libvpx \ HenryHu:libyuv:ad89006:libyuv/src/third_party/libyuv CMAKE_OFF= BUILD_SHARED_LIBS # Disable DCHECKs, otherwise video calls will crash. CXXFLAGS+= -DNDEBUG .include .if ${SSL_DEFAULT} == "base" && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 BROKEN= This port requires OpenSSL 1.1.0. Try DEFAULT_VERSIONS+=ssl=[openssl|libressl*] .endif .include diff --git a/net-im/tg_owt/files/patch-CMakeLists.txt b/net-im/tg_owt/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..2cf7f849c07f --- /dev/null +++ b/net-im/tg_owt/files/patch-CMakeLists.txt @@ -0,0 +1,12 @@ +--- CMakeLists.txt.orig 2021-06-27 05:27:48 UTC ++++ CMakeLists.txt +@@ -171,6 +170,9 @@ if (UNIX AND NOT APPLE) + link_x11(tg_owt) + link_glib(tg_owt) + endif() ++ ++target_include_directories(tg_owt BEFORE PRIVATE $) ++target_include_directories(tg_owt BEFORE PRIVATE $) + + function(add_sublibrary postfix) + add_library(tg_owt_${postfix} OBJECT)