blob: 59af87be04717d41dfe4d8c2540427b93ad48097 (
plain) (
blame)
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
|
# Created by: Henry Hu <henry.hu.sh@gmail.com>
PORTNAME= tg_owt
PORTVERSION= 0.0.20211021
PORTREVISION= 1
CATEGORIES= net-im
MAINTAINER= glebius@FreeBSD.org
COMMENT= Webrtc library used by telegram-desktop
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= 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 \
libvpx.so:multimedia/libvpx
USES= cmake pkgconfig xorg
USE_XORG= x11 xcomposite xdamage xrender xrandr xtst
USE_GITHUB= yes
GH_ACCOUNT= desktop-app
GH_TAGNAME= d578c76
# 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 TG_OWT_BUILD_AUDIO_BACKENDS
# Disable DCHECKs, otherwise video calls will crash.
CXXFLAGS+= -DNDEBUG
.include <bsd.port.mk>
|