Unless we build debug-* packages or use a custom DEBUG=... build to
figure out what's going on, I think shipping an unstripped executable
like this is not needed:

        $ du -h `which telegram-desktop` 
        236M    /usr/local/bin/telegram-desktop

Stripping via cmake yields 105M instead.

Sync PLIST while here.

Feedback? Objections? OK?

Index: net/tdesktop/Makefile
===================================================================
RCS file: /home/cvs/ports/net/tdesktop/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- net/tdesktop/Makefile       9 Feb 2022 09:54:59 -0000       1.12
+++ net/tdesktop/Makefile       13 Feb 2022 15:13:23 -0000
@@ -8,6 +8,7 @@ NOT_FOR_ARCHS =         ${BE_ARCHS} i386
 COMMENT =              Telegram Desktop messenger
 PORTROACH =            limit:-full$$
 V =                    3.5.2
+REVISION =             0
 DISTNAME =             tdesktop-${V}-full
 PKGNAME =              tdesktop-${V}
 CATEGORIES =           net
@@ -89,6 +90,10 @@ CFLAGS +=            -DIOAPI_NO_64
 
 # unported and required
 NEEDED_BUNDLES +=      rlottie tgcalls
+
+.ifndef DEBUG
+INSTALL_TARGET =       install/strip
+.endif
 
 post-extract:
        # All bundles:
Index: net/tg_owt/Makefile
===================================================================
RCS file: /home/cvs/ports/net/tg_owt/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- net/tg_owt/Makefile 4 Feb 2022 06:32:54 -0000       1.11
+++ net/tg_owt/Makefile 13 Feb 2022 15:14:55 -0000
@@ -15,7 +15,7 @@ GH_PROJECT =          tg_owt
 # no releases or tags, use latest master
 GH_COMMIT =            d618d0b5ff3e59bea0143e6070481f8f4316a428
 DISTNAME =             ${GH_PROJECT}-0.0.0.20220202
-REVISION =             0
+REVISION =             1
 CATEGORIES =           net
 
 SHARED_LIBS =          tg_owt  1.1     # 0.0.0
@@ -122,6 +122,10 @@ NEEDED_BUNDLES +=  rnnoise
 NEEDED_BUNDLES +=      libsrtp
 # unported and required
 NEEDED_BUNDLES +=      libyuv pffft
+
+.ifndef DEBUG
+INSTALL_TARGET =       install/strip
+.endif
 
 post-extract:
        # All bundles:
Index: net/tg_owt/pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/net/tg_owt/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -r1.6 PLIST
--- net/tg_owt/pkg/PLIST        2 Feb 2022 15:19:30 -0000       1.6
+++ net/tg_owt/pkg/PLIST        4 Feb 2022 06:33:25 -0000
@@ -2133,6 +2133,7 @@ include/tg_owt/third_party/libyuv/includ
 include/tg_owt/third_party/libyuv/include/libyuv/convert_from.h
 include/tg_owt/third_party/libyuv/include/libyuv/convert_from_argb.h
 include/tg_owt/third_party/libyuv/include/libyuv/cpu_id.h
+include/tg_owt/third_party/libyuv/include/libyuv/loongson_intrinsics.h
 include/tg_owt/third_party/libyuv/include/libyuv/macros_msa.h
 include/tg_owt/third_party/libyuv/include/libyuv/mjpeg_decoder.h
 include/tg_owt/third_party/libyuv/include/libyuv/planar_functions.h

Reply via email to