diff --git a/comms/scrcpy/Makefile b/comms/scrcpy/Makefile index 5291cfb2da1b..e2fd64f08b20 100644 --- a/comms/scrcpy/Makefile +++ b/comms/scrcpy/Makefile @@ -1,51 +1,51 @@ PORTNAME= scrcpy DISTVERSIONPREFIX= v -DISTVERSION= 3.3.4 -PORTREVISION= 1 +DISTVERSION= 4.0 CATEGORIES= comms net MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${DISTVERSIONFULL}/:server DISTFILES= ${SERVER_FILE}:server EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= tagattie@FreeBSD.org COMMENT= Display and control your Android device WWW= https://github.com/Genymobile/scrcpy LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg RUN_DEPENDS= adb:devel/android-tools USES= compiler:c++11-lang meson pkgconfig sdl USE_GITHUB= yes GH_ACCOUNT= Genymobile -USE_SDL= sdl2 +USE_SDL= sdl3 MESON_ARGS= -Dportable=false \ -Dprebuilt_server=${WRKSRC}/${SERVER_FILE} PLIST_FILES= bin/scrcpy \ etc/bash_completion.d/scrcpy \ share/applications/scrcpy-console.desktop \ share/applications/scrcpy.desktop \ + share/icons/hicolor/256x256/apps/disconnected.png \ share/icons/hicolor/256x256/apps/scrcpy.png \ share/man/man1/scrcpy.1.gz \ ${DATADIR}/scrcpy-server \ share/zsh/site-functions/_scrcpy PORTDOCS= FAQ.md README.md OPTIONS_DEFINE= DOCS SERVER_FILE= ${PORTNAME}-server-${DISTVERSIONFULL} post-extract: ${CP} ${DISTDIR}/${SERVER_FILE} ${WRKSRC} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/comms/scrcpy/distinfo b/comms/scrcpy/distinfo index efb1b76e4700..f47f5910d2a7 100644 --- a/comms/scrcpy/distinfo +++ b/comms/scrcpy/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1766023116 -SHA256 (scrcpy-server-v3.3.4) = 8588238c9a5a00aa542906b6ec7e6d5541d9ffb9b5d0f6e1bc0e365e2303079e -SIZE (scrcpy-server-v3.3.4) = 90980 -SHA256 (Genymobile-scrcpy-v3.3.4_GH0.tar.gz) = 03b72d1f71ca7783cff2995ca7cd8c67b9b75038a3cc35e443a1913e951b49dd -SIZE (Genymobile-scrcpy-v3.3.4_GH0.tar.gz) = 465799 +TIMESTAMP = 1778744865 +SHA256 (scrcpy-server-v4.0) = 84924bd564a1eb6089c872c7521f968058977f91f5ff02514a8c74aff3210f3a +SIZE (scrcpy-server-v4.0) = 732226 +SHA256 (Genymobile-scrcpy-v4.0_GH0.tar.gz) = a62bc2639e1d56b3e7ebaa20d8deb4947dd02954b3362bdebe2ef9f7eae41b00 +SIZE (Genymobile-scrcpy-v4.0_GH0.tar.gz) = 489017 diff --git a/comms/scrcpy/files/patch-app_meson.build b/comms/scrcpy/files/patch-app_meson.build index 7978d6be3c6a..5cc78e48b040 100644 --- a/comms/scrcpy/files/patch-app_meson.build +++ b/comms/scrcpy/files/patch-app_meson.build @@ -1,26 +1,26 @@ ---- app/meson.build.orig 2025-03-29 15:15:14 UTC +--- app/meson.build.orig 2026-05-12 19:35:47 UTC +++ app/meson.build -@@ -67,8 +67,8 @@ conf = configuration_data() +@@ -70,8 +70,8 @@ feature_test_macros = [ - conf = configuration_data() - --conf.set('_POSIX_C_SOURCE', '200809L') --conf.set('_XOPEN_SOURCE', '700') -+# conf.set('_POSIX_C_SOURCE', '200809L') -+# conf.set('_XOPEN_SOURCE', '700') - conf.set('_GNU_SOURCE', true) + feature_test_macros = [ + '-D_GNU_SOURCE', +- '-D_POSIX_C_SOURCE=200809L', +- '-D_XOPEN_SOURCE=700', ++# '-D_POSIX_C_SOURCE=200809L', ++# '-D_XOPEN_SOURCE=700', + ] - if host_machine.system() == 'windows' -@@ -196,10 +196,10 @@ install_data('data/bash-completion/scrcpy', + conf = configuration_data() +@@ -207,10 +207,10 @@ install_data('data/bash-completion/scrcpy', install_data('data/zsh-completion/_scrcpy', install_dir: datadir / 'zsh/site-functions') install_data('data/bash-completion/scrcpy', - install_dir: datadir / 'bash-completion/completions') + install_dir: 'etc/bash_completion.d') # Desktop entry file for application launchers -if host_machine.system() == 'linux' +if host_machine.system() == 'linux' or host_machine.system() == 'freebsd' # Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop) install_data('data/scrcpy.desktop', install_dir: datadir / 'applications') diff --git a/comms/scrcpy/files/patch-app_src_version.c b/comms/scrcpy/files/patch-app_src_version.c index 9607aa6e0d74..511c4a509837 100644 --- a/comms/scrcpy/files/patch-app_src_version.c +++ b/comms/scrcpy/files/patch-app_src_version.c @@ -1,11 +1,11 @@ ---- app/src/version.c.orig 2025-03-29 15:15:14 UTC +--- app/src/version.c.orig 2026-05-12 19:35:47 UTC +++ app/src/version.c @@ -8,7 +8,7 @@ # include #endif #ifdef HAVE_USB -# include +# include #endif - #include + #include