diff --git a/comms/scrcpy/Makefile b/comms/scrcpy/Makefile index 67face4a9837..6b88bb8fb845 100644 --- a/comms/scrcpy/Makefile +++ b/comms/scrcpy/Makefile @@ -1,50 +1,50 @@ PORTNAME= scrcpy DISTVERSIONPREFIX= v -DISTVERSION= 2.7 +DISTVERSION= 3.0.2 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 MESON_ARGS= -Dportable=false \ -Dprebuilt_server=${WRKSRC}/${SERVER_FILE} PLIST_FILES= bin/scrcpy \ etc/bash_completion.d/scrcpy \ share/man/man1/scrcpy.1.gz \ share/applications/scrcpy-console.desktop \ share/applications/scrcpy.desktop \ share/icons/hicolor/256x256/apps/scrcpy.png \ ${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 c3a79e3ef996..4bf61fdf4dcf 100644 --- a/comms/scrcpy/distinfo +++ b/comms/scrcpy/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1727077696 -SHA256 (scrcpy-server-v2.7) = a23c5659f36c260f105c022d27bcb3eafffa26070e7baa9eda66d01377a1adba -SIZE (scrcpy-server-v2.7) = 71200 -SHA256 (Genymobile-scrcpy-v2.7_GH0.tar.gz) = 3ceea215f6eccb59535f68a16db6db2b05a8a1c91bdcb4a6e222d3093a9daf8c -SIZE (Genymobile-scrcpy-v2.7_GH0.tar.gz) = 430160 +TIMESTAMP = 1733545595 +SHA256 (scrcpy-server-v3.0.2) = e19fe024bfa3367809494407ad6ca809a6f6e77dac95e99f85ba75144e0ba35d +SIZE (scrcpy-server-v3.0.2) = 90396 +SHA256 (Genymobile-scrcpy-v3.0.2_GH0.tar.gz) = 5ab92d091f308679fe81851666acec1b161e6810ac73eb9bade705ade285e109 +SIZE (Genymobile-scrcpy-v3.0.2_GH0.tar.gz) = 458086 diff --git a/comms/scrcpy/files/patch-app_meson.build b/comms/scrcpy/files/patch-app_meson.build index 4bfefb993487..09306f2ecea6 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 2024-09-15 19:18:15 UTC +--- app/meson.build.orig 2024-12-04 21:48:27 UTC +++ app/meson.build -@@ -64,8 +64,8 @@ conf = configuration_data() +@@ -67,8 +67,8 @@ conf = configuration_data() 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) if host_machine.system() == 'windows' -@@ -194,10 +194,10 @@ install_data('data/bash-completion/scrcpy', +@@ -196,10 +196,10 @@ install_data('data/bash-completion/scrcpy', install_data('data/zsh-completion/_scrcpy', install_dir: join_paths(datadir, 'zsh/site-functions')) install_data('data/bash-completion/scrcpy', - install_dir: join_paths(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: join_paths(datadir, 'applications')) diff --git a/comms/scrcpy/files/patch-app_src_usb_aoa__hid.h b/comms/scrcpy/files/patch-app_src_usb_aoa__hid.h index cce8803763f5..5629661e153e 100644 --- a/comms/scrcpy/files/patch-app_src_usb_aoa__hid.h +++ b/comms/scrcpy/files/patch-app_src_usb_aoa__hid.h @@ -1,11 +1,11 @@ ---- app/src/usb/aoa_hid.h.orig 2024-03-02 22:22:09 UTC +--- app/src/usb/aoa_hid.h.orig 2024-12-04 21:48:27 UTC +++ app/src/usb/aoa_hid.h -@@ -4,7 +4,7 @@ +@@ -6,7 +6,7 @@ #include #include -#include +#include #include "hid/hid_event.h" #include "usb.h"