summaryrefslogtreecommitdiff
path: root/net-im/tg_owt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/tg_owt/Makefile')
-rw-r--r--net-im/tg_owt/Makefile51
1 files changed, 42 insertions, 9 deletions
diff --git a/net-im/tg_owt/Makefile b/net-im/tg_owt/Makefile
index 20a16179dc7f..0bb707d5e8ec 100644
--- a/net-im/tg_owt/Makefile
+++ b/net-im/tg_owt/Makefile
@@ -1,5 +1,5 @@
PORTNAME= tg_owt
-PORTVERSION= 0.0.20231221
+PORTVERSION= 0.0.20250603
PORTREVISION= 1
CATEGORIES= net-im
@@ -12,23 +12,56 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat \
yasm:devel/yasm
-LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \
+LIB_DEPENDS= libabsl_base.so:devel/abseil \
+ libavformat.so:multimedia/ffmpeg \
+ libcrc32c.so:devel/crc32c \
libjpeg.so:graphics/jpeg-turbo \
+ libopenh264.so:multimedia/openh264 \
libopus.so:audio/opus \
- libpipewire-0.3.so:multimedia/pipewire
+ libpipewire-0.3.so:multimedia/pipewire \
+ libprotobuf.so:devel/protobuf \
+ libsrtp2.so:net/libsrtp2 \
+ libvpx.so:multimedia/libvpx
-USES= cmake gl pkgconfig xorg
+USES= cmake gl gnome pkgconfig xorg
USE_XORG= x11 xcomposite xdamage xrender xrandr xtst
USE_GL= gbm gl
USE_GITHUB= yes
+USE_GNOME= glib20
GH_ACCOUNT= desktop-app
-GH_TAGNAME= afd9d5d
+GH_TAGNAME= 62321fd
+
+CMAME_ON= TG_OWT_PACKAGED_BUILD
# libyuv cloned from https://chromium.googlesource.com/libyuv/libyuv
# when updating port check if hash tag in the submodule was updated
-GH_TUPLE= abseil:abseil-cpp:8c0b94e:abseilcpp/src/third_party/abseil-cpp \
- cisco:libsrtp:a566a9:libsrtp/src/third_party/libsrtp \
- google:crc32c:21fc8ef:crc32c/src/third_party/crc32c/src \
- klemensn:libyuv:3aae5c7:libyuv/src/third_party/libyuv
+GH_TUPLE= osokin:libyuv:04821d1:libyuv/src/third_party/libyuv
+
+post-extract:
+ ${RM} -rf \
+ ${WRKSRC}/src/sdk/android \
+ ${WRKSRC}/src/sdk/objc \
+ ${WRKSRC}/src/third_party/abseil-cpp \
+ ${WRKSRC}/src/third_party/crc32c \
+ ${WRKSRC}/src/third_party/libsrtp \
+ ${WRKSRC}/src/third_party/libsrtp_config \
+ ${WRKSRC}/src/third_party/libvpx \
+ ${WRKSRC}/src/third_party/openh264 \
+ ${WRKSRC}/src/third_party/yasm
+
+# remove more sources not needed to build telegram-desktop, they are however
+# required at tg_owt configure-time even though they are not built, see
+# nice_target_sources()/remove_target_sources() calls in CMakeLists.txt
+post-configure:
+ ${RM} -rf \
+ ${WRKSRC}/src/modules/audio_device/android \
+ ${WRKSRC}/src/modules/audio_device/mac \
+ ${WRKSRC}/src/modules/audio_device/win \
+ ${WRKSRC}/src/modules/desktop_capture/mac \
+ ${WRKSRC}/src/modules/desktop_capture/wayland \
+ ${WRKSRC}/src/modules/desktop_capture/win \
+ ${WRKSRC}/src/modules/video_capture/windows \
+ ${WRKSRC}/src/rtc_base/win \
+ ${WRKSRC}/src/rtc_base/win32*.h
.include <bsd.port.mk>