mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
484ae4ecd9
PR: 255716
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Henry Hu <henry.hu.sh@gmail.com>
|
|
|
|
PORTNAME= tg_owt
|
|
PORTVERSION= 0.0.20210422
|
|
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 \
|
|
libjpeg.so:graphics/jpeg-turbo \
|
|
libopus.so:audio/opus \
|
|
libusrsctp.so:net/libusrsctp
|
|
|
|
USES= cmake pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= desktop-app
|
|
GH_PROJECT= tg_owt
|
|
GH_TAGNAME= 18cb4cd
|
|
# 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 <bsd.port.options.mk>
|
|
|
|
.if ${SSL_DEFAULT} == "base" && ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085
|
|
BROKEN= This port requires OpenSSL 1.1.0. Try DEFAULT_VERSIONS+=ssl=[openssl|libressl*]
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|