diff --git a/multimedia/wl-screenrec/Makefile b/multimedia/wl-screenrec/Makefile index 87db3afef992..92e1319ef234 100644 --- a/multimedia/wl-screenrec/Makefile +++ b/multimedia/wl-screenrec/Makefile @@ -1,32 +1,32 @@ PORTNAME= wl-screenrec DISTVERSIONPREFIX= v DISTVERSION= 0.1.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= multimedia wayland MAINTAINER= jbeich@FreeBSD.org COMMENT= High performance wlroots screen recording, featuring hardware encoding WWW= https://github.com/russelltg/wl-screenrec LICENSE= APACHE20 LIB_DEPENDS= libdrm.so:graphics/libdrm \ libavformat.so:multimedia/ffmpeg USES= cargo llvm USE_GITHUB= yes GH_ACCOUNT= russelltg PLIST_FILES= bin/${PORTNAME} post-patch: # Extract (snapshot) version from the port instead of Cargo.toml @${REINPLACE_CMD} -i .nogit -e '/^version/s/0\.1\.0/&-${DISTVERSION}-g${GH_TAGNAME}/' \ ${WRKSRC}/Cargo.toml @${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \ ${WRKSRC_crate_clang-sys}/build/common.rs \ ${WRKSRC_crate_clang-sys}/src/support.rs post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/multimedia/wl-screenrec/Makefile.crates b/multimedia/wl-screenrec/Makefile.crates index f1b035955ac6..a46a7ee3de9c 100644 --- a/multimedia/wl-screenrec/Makefile.crates +++ b/multimedia/wl-screenrec/Makefile.crates @@ -1,92 +1,91 @@ CARGO_CRATES= aho-corasick-1.1.2 \ anstream-0.6.11 \ anstyle-1.0.6 \ anstyle-parse-0.2.3 \ anstyle-query-1.0.2 \ anstyle-wincon-3.0.2 \ anyhow-1.0.79 \ - bindgen-0.64.0 \ - bitflags-1.3.2 \ - bitflags-2.4.2 \ + bindgen-0.69.4 \ + bitflags-2.5.0 \ cc-1.0.83 \ cexpr-0.6.0 \ cfg-if-1.0.0 \ clang-sys-1.7.0 \ clap-4.5.0 \ clap_builder-4.5.0 \ clap_derive-4.5.0 \ clap_lex-0.7.0 \ colorchoice-1.0.0 \ dlib-0.5.2 \ downcast-rs-1.2.0 \ drm-fourcc-2.2.0 \ + either-1.12.0 \ errno-0.3.8 \ - ffmpeg-next-6.1.1 \ - ffmpeg-sys-next-6.1.0 \ + ffmpeg-next-7.0.1 \ + ffmpeg-sys-next-7.0.0 \ glob-0.3.1 \ heck-0.4.1 \ hermit-abi-0.3.6 \ human-size-0.4.3 \ + itertools-0.12.1 \ itoa-1.0.10 \ lazy_static-1.4.0 \ lazycell-1.3.0 \ libc-0.2.153 \ libloading-0.8.1 \ linux-raw-sys-0.4.13 \ log-0.4.20 \ memchr-2.7.1 \ minimal-lexical-0.2.1 \ nix-0.27.1 \ nom-7.1.3 \ num_cpus-1.16.0 \ - peeking_take_while-0.1.2 \ pkg-config-0.3.30 \ proc-macro2-1.0.78 \ quick-xml-0.31.0 \ quote-1.0.35 \ regex-1.10.3 \ regex-automata-0.4.5 \ regex-syntax-0.8.2 \ rustc-hash-1.1.0 \ rustix-0.38.31 \ ryu-1.0.16 \ scoped-tls-1.0.1 \ serde-1.0.196 \ serde_derive-1.0.196 \ serde_json-1.0.113 \ shlex-1.3.0 \ signal-hook-0.3.17 \ signal-hook-registry-1.4.1 \ smallvec-1.13.1 \ strsim-0.11.0 \ - syn-1.0.109 \ syn-2.0.49 \ thiserror-1.0.57 \ thiserror-impl-1.0.57 \ unicode-ident-1.0.12 \ utf8parse-0.2.1 \ vcpkg-0.2.15 \ wayland-backend-0.3.3 \ wayland-client-0.31.2 \ wayland-protocols-0.31.2 \ wayland-protocols-wlr-0.2.0 \ wayland-scanner-0.31.1 \ wayland-sys-0.31.1 \ windows-sys-0.48.0 \ windows-sys-0.52.0 \ windows-targets-0.48.5 \ windows-targets-0.52.0 \ windows_aarch64_gnullvm-0.48.5 \ windows_aarch64_gnullvm-0.52.0 \ windows_aarch64_msvc-0.48.5 \ windows_aarch64_msvc-0.52.0 \ windows_i686_gnu-0.48.5 \ windows_i686_gnu-0.52.0 \ windows_i686_msvc-0.48.5 \ windows_i686_msvc-0.52.0 \ windows_x86_64_gnu-0.48.5 \ windows_x86_64_gnu-0.52.0 \ windows_x86_64_gnullvm-0.48.5 \ windows_x86_64_gnullvm-0.52.0 \ windows_x86_64_msvc-0.48.5 \ windows_x86_64_msvc-0.52.0 diff --git a/multimedia/wl-screenrec/distinfo b/multimedia/wl-screenrec/distinfo index 749aedadb9d1..719741f170bd 100644 --- a/multimedia/wl-screenrec/distinfo +++ b/multimedia/wl-screenrec/distinfo @@ -1,187 +1,185 @@ TIMESTAMP = 1708082652 SHA256 (rust/crates/aho-corasick-1.1.2.crate) = b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0 SIZE (rust/crates/aho-corasick-1.1.2.crate) = 183136 SHA256 (rust/crates/anstream-0.6.11.crate) = 6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5 SIZE (rust/crates/anstream-0.6.11.crate) = 30239 SHA256 (rust/crates/anstyle-1.0.6.crate) = 8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc SIZE (rust/crates/anstyle-1.0.6.crate) = 14604 SHA256 (rust/crates/anstyle-parse-0.2.3.crate) = c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c SIZE (rust/crates/anstyle-parse-0.2.3.crate) = 24699 SHA256 (rust/crates/anstyle-query-1.0.2.crate) = e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648 SIZE (rust/crates/anstyle-query-1.0.2.crate) = 8739 SHA256 (rust/crates/anstyle-wincon-3.0.2.crate) = 1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7 SIZE (rust/crates/anstyle-wincon-3.0.2.crate) = 11272 SHA256 (rust/crates/anyhow-1.0.79.crate) = 080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca SIZE (rust/crates/anyhow-1.0.79.crate) = 44931 -SHA256 (rust/crates/bindgen-0.64.0.crate) = c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4 -SIZE (rust/crates/bindgen-0.64.0.crate) = 204700 -SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a -SIZE (rust/crates/bitflags-1.3.2.crate) = 23021 -SHA256 (rust/crates/bitflags-2.4.2.crate) = ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf -SIZE (rust/crates/bitflags-2.4.2.crate) = 42602 +SHA256 (rust/crates/bindgen-0.69.4.crate) = a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0 +SIZE (rust/crates/bindgen-0.69.4.crate) = 221092 +SHA256 (rust/crates/bitflags-2.5.0.crate) = cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1 +SIZE (rust/crates/bitflags-2.5.0.crate) = 43821 SHA256 (rust/crates/cc-1.0.83.crate) = f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0 SIZE (rust/crates/cc-1.0.83.crate) = 68343 SHA256 (rust/crates/cexpr-0.6.0.crate) = 6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766 SIZE (rust/crates/cexpr-0.6.0.crate) = 17966 SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934 SHA256 (rust/crates/clang-sys-1.7.0.crate) = 67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1 SIZE (rust/crates/clang-sys-1.7.0.crate) = 42088 SHA256 (rust/crates/clap-4.5.0.crate) = 80c21025abd42669a92efc996ef13cfb2c5c627858421ea58d5c3b331a6c134f SIZE (rust/crates/clap-4.5.0.crate) = 55379 SHA256 (rust/crates/clap_builder-4.5.0.crate) = 458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99 SIZE (rust/crates/clap_builder-4.5.0.crate) = 163521 SHA256 (rust/crates/clap_derive-4.5.0.crate) = 307bc0538d5f0f83b8248db3087aa92fe504e4691294d0c96c0eabc33f47ba47 SIZE (rust/crates/clap_derive-4.5.0.crate) = 29042 SHA256 (rust/crates/clap_lex-0.7.0.crate) = 98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce SIZE (rust/crates/clap_lex-0.7.0.crate) = 11915 SHA256 (rust/crates/colorchoice-1.0.0.crate) = acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7 SIZE (rust/crates/colorchoice-1.0.0.crate) = 6857 SHA256 (rust/crates/dlib-0.5.2.crate) = 330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412 SIZE (rust/crates/dlib-0.5.2.crate) = 5806 SHA256 (rust/crates/downcast-rs-1.2.0.crate) = 9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650 SIZE (rust/crates/downcast-rs-1.2.0.crate) = 11670 SHA256 (rust/crates/drm-fourcc-2.2.0.crate) = 0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4 SIZE (rust/crates/drm-fourcc-2.2.0.crate) = 12192 +SHA256 (rust/crates/either-1.12.0.crate) = 3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b +SIZE (rust/crates/either-1.12.0.crate) = 18974 SHA256 (rust/crates/errno-0.3.8.crate) = a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245 SIZE (rust/crates/errno-0.3.8.crate) = 10645 -SHA256 (rust/crates/ffmpeg-next-6.1.1.crate) = 4e72c72e8dcf638fb0fb03f033a954691662b5dabeaa3f85a6607d101569fccd -SIZE (rust/crates/ffmpeg-next-6.1.1.crate) = 89765 -SHA256 (rust/crates/ffmpeg-sys-next-6.1.0.crate) = c2529ad916d08c3562c754c21bc9b17a26c7882c0f5706cc2cd69472175f1620 -SIZE (rust/crates/ffmpeg-sys-next-6.1.0.crate) = 15767 +SHA256 (rust/crates/ffmpeg-next-7.0.1.crate) = a681d69bf41d1c9edc7c6a2b09b69d0b96e9b916d200b7ec5b10de61f559eb31 +SIZE (rust/crates/ffmpeg-next-7.0.1.crate) = 96582 +SHA256 (rust/crates/ffmpeg-sys-next-7.0.0.crate) = 972a460dd8e901b737ce0482bf71a837e1751e3dd7c8f8b0a4ead808e7f174a5 +SIZE (rust/crates/ffmpeg-sys-next-7.0.0.crate) = 16033 SHA256 (rust/crates/glob-0.3.1.crate) = d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b SIZE (rust/crates/glob-0.3.1.crate) = 18880 SHA256 (rust/crates/heck-0.4.1.crate) = 95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8 SIZE (rust/crates/heck-0.4.1.crate) = 11567 SHA256 (rust/crates/hermit-abi-0.3.6.crate) = bd5256b483761cd23699d0da46cc6fd2ee3be420bbe6d020ae4a091e70b7e9fd SIZE (rust/crates/hermit-abi-0.3.6.crate) = 14884 SHA256 (rust/crates/human-size-0.4.3.crate) = 9994b79e8c1a39b3166c63ae7823bb2b00831e2a96a31399c50fe69df408eaeb SIZE (rust/crates/human-size-0.4.3.crate) = 14757 +SHA256 (rust/crates/itertools-0.12.1.crate) = ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569 +SIZE (rust/crates/itertools-0.12.1.crate) = 137761 SHA256 (rust/crates/itoa-1.0.10.crate) = b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c SIZE (rust/crates/itoa-1.0.10.crate) = 10534 SHA256 (rust/crates/lazy_static-1.4.0.crate) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646 SIZE (rust/crates/lazy_static-1.4.0.crate) = 10443 SHA256 (rust/crates/lazycell-1.3.0.crate) = 830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55 SIZE (rust/crates/lazycell-1.3.0.crate) = 12502 SHA256 (rust/crates/libc-0.2.153.crate) = 9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd SIZE (rust/crates/libc-0.2.153.crate) = 740614 SHA256 (rust/crates/libloading-0.8.1.crate) = c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161 SIZE (rust/crates/libloading-0.8.1.crate) = 27893 SHA256 (rust/crates/linux-raw-sys-0.4.13.crate) = 01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c SIZE (rust/crates/linux-raw-sys-0.4.13.crate) = 1493855 SHA256 (rust/crates/log-0.4.20.crate) = b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f SIZE (rust/crates/log-0.4.20.crate) = 38307 SHA256 (rust/crates/memchr-2.7.1.crate) = 523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149 SIZE (rust/crates/memchr-2.7.1.crate) = 96307 SHA256 (rust/crates/minimal-lexical-0.2.1.crate) = 68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a SIZE (rust/crates/minimal-lexical-0.2.1.crate) = 94841 SHA256 (rust/crates/nix-0.27.1.crate) = 2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053 SIZE (rust/crates/nix-0.27.1.crate) = 286494 SHA256 (rust/crates/nom-7.1.3.crate) = d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a SIZE (rust/crates/nom-7.1.3.crate) = 117570 SHA256 (rust/crates/num_cpus-1.16.0.crate) = 4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43 SIZE (rust/crates/num_cpus-1.16.0.crate) = 15713 -SHA256 (rust/crates/peeking_take_while-0.1.2.crate) = 19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099 -SIZE (rust/crates/peeking_take_while-0.1.2.crate) = 6697 SHA256 (rust/crates/pkg-config-0.3.30.crate) = d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec SIZE (rust/crates/pkg-config-0.3.30.crate) = 20613 SHA256 (rust/crates/proc-macro2-1.0.78.crate) = e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae SIZE (rust/crates/proc-macro2-1.0.78.crate) = 47158 SHA256 (rust/crates/quick-xml-0.31.0.crate) = 1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33 SIZE (rust/crates/quick-xml-0.31.0.crate) = 172236 SHA256 (rust/crates/quote-1.0.35.crate) = 291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef SIZE (rust/crates/quote-1.0.35.crate) = 28136 SHA256 (rust/crates/regex-1.10.3.crate) = b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15 SIZE (rust/crates/regex-1.10.3.crate) = 253101 SHA256 (rust/crates/regex-automata-0.4.5.crate) = 5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd SIZE (rust/crates/regex-automata-0.4.5.crate) = 617406 SHA256 (rust/crates/regex-syntax-0.8.2.crate) = c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f SIZE (rust/crates/regex-syntax-0.8.2.crate) = 347228 SHA256 (rust/crates/rustc-hash-1.1.0.crate) = 08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2 SIZE (rust/crates/rustc-hash-1.1.0.crate) = 9331 SHA256 (rust/crates/rustix-0.38.31.crate) = 6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949 SIZE (rust/crates/rustix-0.38.31.crate) = 375443 SHA256 (rust/crates/ryu-1.0.16.crate) = f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c SIZE (rust/crates/ryu-1.0.16.crate) = 47351 SHA256 (rust/crates/scoped-tls-1.0.1.crate) = e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294 SIZE (rust/crates/scoped-tls-1.0.1.crate) = 8202 SHA256 (rust/crates/serde-1.0.196.crate) = 870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32 SIZE (rust/crates/serde-1.0.196.crate) = 77097 SHA256 (rust/crates/serde_derive-1.0.196.crate) = 33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67 SIZE (rust/crates/serde_derive-1.0.196.crate) = 55775 SHA256 (rust/crates/serde_json-1.0.113.crate) = 69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79 SIZE (rust/crates/serde_json-1.0.113.crate) = 146970 SHA256 (rust/crates/shlex-1.3.0.crate) = 0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64 SIZE (rust/crates/shlex-1.3.0.crate) = 18713 SHA256 (rust/crates/signal-hook-0.3.17.crate) = 8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801 SIZE (rust/crates/signal-hook-0.3.17.crate) = 50296 SHA256 (rust/crates/signal-hook-registry-1.4.1.crate) = d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1 SIZE (rust/crates/signal-hook-registry-1.4.1.crate) = 17987 SHA256 (rust/crates/smallvec-1.13.1.crate) = e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7 SIZE (rust/crates/smallvec-1.13.1.crate) = 34952 SHA256 (rust/crates/strsim-0.11.0.crate) = 5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01 SIZE (rust/crates/strsim-0.11.0.crate) = 13710 -SHA256 (rust/crates/syn-1.0.109.crate) = 72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237 -SIZE (rust/crates/syn-1.0.109.crate) = 237611 SHA256 (rust/crates/syn-2.0.49.crate) = 915aea9e586f80826ee59f8453c1101f9d1c4b3964cd2460185ee8e299ada496 SIZE (rust/crates/syn-2.0.49.crate) = 250652 SHA256 (rust/crates/thiserror-1.0.57.crate) = 1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b SIZE (rust/crates/thiserror-1.0.57.crate) = 20993 SHA256 (rust/crates/thiserror-impl-1.0.57.crate) = a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81 SIZE (rust/crates/thiserror-impl-1.0.57.crate) = 15639 SHA256 (rust/crates/unicode-ident-1.0.12.crate) = 3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b SIZE (rust/crates/unicode-ident-1.0.12.crate) = 42168 SHA256 (rust/crates/utf8parse-0.2.1.crate) = 711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a SIZE (rust/crates/utf8parse-0.2.1.crate) = 13435 SHA256 (rust/crates/vcpkg-0.2.15.crate) = accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426 SIZE (rust/crates/vcpkg-0.2.15.crate) = 228735 SHA256 (rust/crates/wayland-backend-0.3.3.crate) = 9d50fa61ce90d76474c87f5fc002828d81b32677340112b4ef08079a9d459a40 SIZE (rust/crates/wayland-backend-0.3.3.crate) = 70455 SHA256 (rust/crates/wayland-client-0.31.2.crate) = 82fb96ee935c2cea6668ccb470fb7771f6215d1691746c2d896b447a00ad3f1f SIZE (rust/crates/wayland-client-0.31.2.crate) = 62976 SHA256 (rust/crates/wayland-protocols-0.31.2.crate) = 8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4 SIZE (rust/crates/wayland-protocols-0.31.2.crate) = 147062 SHA256 (rust/crates/wayland-protocols-wlr-0.2.0.crate) = ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6 SIZE (rust/crates/wayland-protocols-wlr-0.2.0.crate) = 25804 SHA256 (rust/crates/wayland-scanner-0.31.1.crate) = 63b3a62929287001986fb58c789dce9b67604a397c15c611ad9f747300b6c283 SIZE (rust/crates/wayland-scanner-0.31.1.crate) = 35419 SHA256 (rust/crates/wayland-sys-0.31.1.crate) = 15a0c8eaff5216d07f226cb7a549159267f3467b289d9a2e52fd3ef5aae2b7af SIZE (rust/crates/wayland-sys-0.31.1.crate) = 8577 SHA256 (rust/crates/windows-sys-0.48.0.crate) = 677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9 SIZE (rust/crates/windows-sys-0.48.0.crate) = 2628884 SHA256 (rust/crates/windows-sys-0.52.0.crate) = 282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d SIZE (rust/crates/windows-sys-0.52.0.crate) = 2576877 SHA256 (rust/crates/windows-targets-0.48.5.crate) = 9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c SIZE (rust/crates/windows-targets-0.48.5.crate) = 6904 SHA256 (rust/crates/windows-targets-0.52.0.crate) = 8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd SIZE (rust/crates/windows-targets-0.52.0.crate) = 6229 SHA256 (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8 SIZE (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 418492 SHA256 (rust/crates/windows_aarch64_gnullvm-0.52.0.crate) = cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea SIZE (rust/crates/windows_aarch64_gnullvm-0.52.0.crate) = 430182 SHA256 (rust/crates/windows_aarch64_msvc-0.48.5.crate) = dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc SIZE (rust/crates/windows_aarch64_msvc-0.48.5.crate) = 798483 SHA256 (rust/crates/windows_aarch64_msvc-0.52.0.crate) = bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef SIZE (rust/crates/windows_aarch64_msvc-0.52.0.crate) = 821663 SHA256 (rust/crates/windows_i686_gnu-0.48.5.crate) = a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e SIZE (rust/crates/windows_i686_gnu-0.48.5.crate) = 844891 SHA256 (rust/crates/windows_i686_gnu-0.52.0.crate) = a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313 SIZE (rust/crates/windows_i686_gnu-0.52.0.crate) = 870285 SHA256 (rust/crates/windows_i686_msvc-0.48.5.crate) = 8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406 SIZE (rust/crates/windows_i686_msvc-0.48.5.crate) = 864300 SHA256 (rust/crates/windows_i686_msvc-0.52.0.crate) = ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a SIZE (rust/crates/windows_i686_msvc-0.52.0.crate) = 888693 SHA256 (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e SIZE (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 801619 SHA256 (rust/crates/windows_x86_64_gnu-0.52.0.crate) = 3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd SIZE (rust/crates/windows_x86_64_gnu-0.52.0.crate) = 826213 SHA256 (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc SIZE (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 418486 SHA256 (rust/crates/windows_x86_64_gnullvm-0.52.0.crate) = 1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e SIZE (rust/crates/windows_x86_64_gnullvm-0.52.0.crate) = 430165 SHA256 (rust/crates/windows_x86_64_msvc-0.48.5.crate) = ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538 SIZE (rust/crates/windows_x86_64_msvc-0.48.5.crate) = 798412 SHA256 (rust/crates/windows_x86_64_msvc-0.52.0.crate) = dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04 SIZE (rust/crates/windows_x86_64_msvc-0.52.0.crate) = 821600 SHA256 (russelltg-wl-screenrec-v0.1.3_GH0.tar.gz) = 8abe10c20a43bbf4d04534d9b737375cd19f66acf294f1c20f8df43b527a789b SIZE (russelltg-wl-screenrec-v0.1.3_GH0.tar.gz) = 32789 diff --git a/multimedia/wl-screenrec/files/patch-ffmpeg b/multimedia/wl-screenrec/files/patch-ffmpeg index 007c18dffc29..20e006a0eaf7 100644 --- a/multimedia/wl-screenrec/files/patch-ffmpeg +++ b/multimedia/wl-screenrec/files/patch-ffmpeg @@ -1,40 +1,40 @@ https://github.com/zmwangx/rust-ffmpeg/issues/63 error[E0432]: unresolved imports `libc::ENODATA`, `libc::ENOSR`, `libc::ENOSTR`, `libc::ETIME` --> cargo-crates/ffmpeg-next-6.0.0/src/util/error.rs:20:22 | 20 | ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, | ^^^^^^^ no `ENODATA` in the root 21 | ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, | ^^^^^ ^^^^^^ no `ENOSTR` in the root | | | no `ENOSR` in the root 22 | ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EOWNERDEAD, EPERM, EPIPE, EPROTO, 23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ETIME, ETIMEDOUT, ETXTBSY, | ^^^^^ no `ETIME` in the root | help: a similar name exists in the module | 21 | ENOPROTOOPT, ENOSPC, ENOSR, NOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, | ~~~~~ help: a similar name exists in the module | 23 | EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, VTIME, ETIMEDOUT, ETXTBSY, | ~~~~~ ---- cargo-crates/ffmpeg-next-6.1.1/src/util/error.rs.orig 2006-07-24 01:21:28 UTC -+++ cargo-crates/ffmpeg-next-6.1.1/src/util/error.rs +--- cargo-crates/ffmpeg-next-7.0.1/src/util/error.rs.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/ffmpeg-next-7.0.1/src/util/error.rs @@ -17,10 +17,10 @@ pub use libc::{ EBUSY, ECANCELED, ECHILD, ECONNABORTED, ECONNREFUSED, ECONNRESET, EDEADLK, EDESTADDRREQ, EDOM, EEXIST, EFAULT, EFBIG, EHOSTUNREACH, EIDRM, EILSEQ, EINPROGRESS, EINTR, EINVAL, EIO, EISCONN, EISDIR, ELOOP, EMFILE, EMLINK, EMSGSIZE, ENAMETOOLONG, ENETDOWN, ENETRESET, ENETUNREACH, - ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, - ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, + ENFILE, ENOBUFS, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, + ENOPROTOOPT, ENOSPC, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTRECOVERABLE, ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EOWNERDEAD, EPERM, EPIPE, EPROTO, - EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ETIME, ETIMEDOUT, ETXTBSY, + EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV, }; diff --git a/multimedia/wl-screenrec/files/patch-ffmpeg7 b/multimedia/wl-screenrec/files/patch-ffmpeg7 new file mode 100644 index 000000000000..392cca81ccf9 --- /dev/null +++ b/multimedia/wl-screenrec/files/patch-ffmpeg7 @@ -0,0 +1,313 @@ +https://github.com/russelltg/wl-screenrec/commit/f73841b8d270 +https://github.com/russelltg/wl-screenrec/commit/098b9735fbc1 + +--- Cargo.lock.orig 2024-02-16 05:09:17 UTC ++++ Cargo.lock +@@ -67,37 +67,31 @@ name = "bindgen" + + [[package]] + name = "bindgen" +-version = "0.64.0" ++version = "0.69.4" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" ++checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" + dependencies = [ +- "bitflags 1.3.2", ++ "bitflags", + "cexpr", + "clang-sys", ++ "itertools", + "lazy_static", + "lazycell", +- "peeking_take_while", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", +- "syn 1.0.109", ++ "syn", + ] + + [[package]] + name = "bitflags" +-version = "1.3.2" ++version = "2.5.0" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" ++checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" + + [[package]] +-name = "bitflags" +-version = "2.4.2" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" +- +-[[package]] + name = "cc" + version = "1.0.83" + source = "registry+https://github.com/rust-lang/crates.io-index" +@@ -163,7 +157,7 @@ dependencies = [ + "heck", + "proc-macro2", + "quote", +- "syn 2.0.49", ++ "syn", + ] + + [[package]] +@@ -200,6 +194,12 @@ checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a04 + checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4" + + [[package]] ++name = "either" ++version = "1.12.0" ++source = "registry+https://github.com/rust-lang/crates.io-index" ++checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" ++ ++[[package]] + name = "errno" + version = "0.3.8" + source = "registry+https://github.com/rust-lang/crates.io-index" +@@ -211,20 +211,20 @@ name = "ffmpeg-next" + + [[package]] + name = "ffmpeg-next" +-version = "6.1.1" ++version = "7.0.1" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "4e72c72e8dcf638fb0fb03f033a954691662b5dabeaa3f85a6607d101569fccd" ++checksum = "a681d69bf41d1c9edc7c6a2b09b69d0b96e9b916d200b7ec5b10de61f559eb31" + dependencies = [ +- "bitflags 1.3.2", ++ "bitflags", + "ffmpeg-sys-next", + "libc", + ] + + [[package]] + name = "ffmpeg-sys-next" +-version = "6.1.0" ++version = "7.0.0" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "c2529ad916d08c3562c754c21bc9b17a26c7882c0f5706cc2cd69472175f1620" ++checksum = "972a460dd8e901b737ce0482bf71a837e1751e3dd7c8f8b0a4ead808e7f174a5" + dependencies = [ + "bindgen", + "cc", +@@ -259,6 +259,15 @@ checksum = "9994b79e8c1a39b3166c63ae7823bb2b00831e2a96 + checksum = "9994b79e8c1a39b3166c63ae7823bb2b00831e2a96a31399c50fe69df408eaeb" + + [[package]] ++name = "itertools" ++version = "0.12.1" ++source = "registry+https://github.com/rust-lang/crates.io-index" ++checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" ++dependencies = [ ++ "either", ++] ++ ++[[package]] + name = "itoa" + version = "1.0.10" + source = "registry+https://github.com/rust-lang/crates.io-index" +@@ -322,7 +331,7 @@ dependencies = [ + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" + dependencies = [ +- "bitflags 2.4.2", ++ "bitflags", + "cfg-if", + "libc", + ] +@@ -348,12 +357,6 @@ dependencies = [ + ] + + [[package]] +-name = "peeking_take_while" +-version = "0.1.2" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" +- +-[[package]] + name = "pkg-config" + version = "0.3.30" + source = "registry+https://github.com/rust-lang/crates.io-index" +@@ -427,7 +430,7 @@ dependencies = [ + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" + dependencies = [ +- "bitflags 2.4.2", ++ "bitflags", + "errno", + "libc", + "linux-raw-sys", +@@ -463,7 +466,7 @@ dependencies = [ + dependencies = [ + "proc-macro2", + "quote", +- "syn 2.0.49", ++ "syn", + ] + + [[package]] +@@ -516,17 +519,6 @@ name = "syn" + + [[package]] + name = "syn" +-version = "1.0.109" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +-dependencies = [ +- "proc-macro2", +- "quote", +- "unicode-ident", +-] +- +-[[package]] +-name = "syn" + version = "2.0.49" + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "915aea9e586f80826ee59f8453c1101f9d1c4b3964cd2460185ee8e299ada496" +@@ -553,7 +545,7 @@ dependencies = [ + dependencies = [ + "proc-macro2", + "quote", +- "syn 2.0.49", ++ "syn", + ] + + [[package]] +@@ -594,7 +586,7 @@ dependencies = [ + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "82fb96ee935c2cea6668ccb470fb7771f6215d1691746c2d896b447a00ad3f1f" + dependencies = [ +- "bitflags 2.4.2", ++ "bitflags", + "rustix", + "wayland-backend", + "wayland-scanner", +@@ -606,7 +598,7 @@ dependencies = [ + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4" + dependencies = [ +- "bitflags 2.4.2", ++ "bitflags", + "wayland-backend", + "wayland-client", + "wayland-scanner", +@@ -618,7 +610,7 @@ dependencies = [ + source = "registry+https://github.com/rust-lang/crates.io-index" + checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6" + dependencies = [ +- "bitflags 2.4.2", ++ "bitflags", + "wayland-backend", + "wayland-client", + "wayland-protocols", +@@ -787,6 +779,7 @@ dependencies = [ + "clap", + "drm-fourcc", + "ffmpeg-next", ++ "ffmpeg-sys-next", + "human-size", + "libc", + "nix", +--- Cargo.toml.orig 2024-02-16 05:09:17 UTC ++++ Cargo.toml +@@ -28,7 +28,8 @@ wayland-protocols-wlr = { version = "0.2", features = + wayland-protocols-wlr = { version = "0.2", features = ["client"] } + + # ffmpeg-next does not support ffmpeg 6.1 yet, so grab from the 6.1 PR +-ffmpeg-next = "6.1" ++ffmpeg-next = "7.0.1" ++ffmpeg-sys-next = "7.0.0" # need direct dep on -sys to get metadata to consume in build.rs + thiserror = "1.0.38" + drm-fourcc = "2.2.0" + human-size = "0.4.2" +--- build.rs.orig 2024-05-20 06:35:34 UTC ++++ build.rs +@@ -0,0 +1,12 @@ ++use std::env; ++ ++fn main() { ++ for (name, _value) in env::vars() { ++ if name.starts_with("DEP_FFMPEG_") { ++ println!( ++ r#"cargo:rustc-cfg=feature="{}""#, ++ name["DEP_FFMPEG_".len()..name.len()].to_lowercase() ++ ); ++ } ++ } ++} +\ No newline at end of file +--- src/audio.rs.orig 2024-02-16 05:09:17 UTC ++++ src/audio.rs +@@ -1,6 +1,6 @@ use std::{ + use std::{ + cmp::max, +- ffi::{c_int, CString}, ++ ffi::{CStr, CString}, + sync::{ + atomic::{AtomicBool, Ordering}, + mpsc::{channel, Receiver, RecvError, Sender, TryRecvError}, +@@ -13,7 +13,7 @@ use ffmpeg::{ + use ffmpeg::{ + codec::Context, + decoder, encoder, +- ffi::{av_find_input_format, av_get_default_channel_layout, AVChannelOrder}, ++ ffi::{av_channel_layout_describe, av_find_input_format}, + filter, + format::{self, context::Input, Sample}, + frame, ChannelLayout, Dictionary, Format, Packet, Rational, +@@ -220,6 +220,7 @@ impl AudioHandle { + let audio_decoder_rate = dec_audio.rate() as i32; + enc_audio.set_rate(audio_decoder_rate); + enc_audio.set_channel_layout(enc_audio_channel_layout); ++ #[cfg(not(feature = "ffmpeg_7_0"))] // in ffmpeg 7, this is handled by set_channel_layout + enc_audio.set_channels(enc_audio_channel_layout.channels()); + let audio_encode_format = codec.formats().unwrap().next().unwrap(); + enc_audio.set_format(audio_encode_format); +@@ -322,24 +323,34 @@ fn audio_filter( + ) -> filter::Graph { + let mut g = ffmpeg::filter::graph::Graph::new(); + +- // let channel_format_str = avchannelformat_to_string(params.ch_layout); + let sample_format = input.format(); + + let ch_layout = unsafe { input.as_ptr().read().ch_layout }; +- let ch_layout_mask = if ch_layout.order == AVChannelOrder::AV_CHANNEL_ORDER_NATIVE { +- unsafe { ch_layout.u.mask } +- } else { +- unsafe { av_get_default_channel_layout(input.channels() as c_int) as u64 } ++ ++ let mut channel_layout_buf = [0u8; 128]; ++ let channel_layout_specifier = unsafe { ++ let bytes = av_channel_layout_describe( ++ &ch_layout, ++ channel_layout_buf.as_mut_ptr().cast(), ++ channel_layout_buf.len(), ++ ); ++ assert!(bytes > 0, "{:?}: {:?}", ch_layout.order, bytes); ++ std::str::from_utf8( ++ CStr::from_bytes_until_nul(&channel_layout_buf[..]) ++ .unwrap() ++ .to_bytes(), ++ ) ++ .unwrap() + }; + + g.add( + &filter::find("abuffer").unwrap(), + "in", + &format!( +- "sample_rate={}:sample_fmt={}:channel_layout={:#x}", ++ "sample_rate={}:sample_fmt={}:channel_layout={}", + input.rate(), + sample_format.name(), +- ch_layout_mask ++ channel_layout_specifier + ), + ) + .unwrap();