diff options
Diffstat (limited to 'audio/lewton')
-rw-r--r-- | audio/lewton/Makefile | 4 | ||||
-rw-r--r-- | audio/lewton/files/patch-rust-1.89.0 | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/audio/lewton/Makefile b/audio/lewton/Makefile index 402d00a42e3d..35489ffed2f3 100644 --- a/audio/lewton/Makefile +++ b/audio/lewton/Makefile @@ -1,12 +1,12 @@ PORTNAME= lewton DISTVERSION= 0.10.2 -PORTREVISION= 37 +PORTREVISION= 39 CATEGORIES= audio PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= 05f96f6e6976.patch:-p1 # https://github.com/RustAudio/lewton/pull/97 -MAINTAINER= jbeich@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Rust vorbis decoder WWW= https://github.com/RustAudio/lewton diff --git a/audio/lewton/files/patch-rust-1.89.0 b/audio/lewton/files/patch-rust-1.89.0 new file mode 100644 index 000000000000..49869710a43a --- /dev/null +++ b/audio/lewton/files/patch-rust-1.89.0 @@ -0,0 +1,18 @@ +--- src/capi.rs.orig 2025-08-23 11:38:26 UTC ++++ src/capi.rs +@@ -120,6 +120,7 @@ pub unsafe extern fn lewton_decode_packet(ctx :*mut Le + } + + /// Provide the number of samples present in each channel ++#[warn(dangerous_implicit_autorefs)] + #[no_mangle] + pub unsafe extern fn lewton_samples_count(samples :*const LewtonSamples) -> usize { + (*samples).0 +@@ -129,6 +130,7 @@ pub unsafe extern fn lewton_samples_count(samples :*co + } + + /// Provide a reference to the channel sample data ++#[warn(dangerous_implicit_autorefs)] + pub unsafe extern fn lewton_samples_f32(samples :*const LewtonSamples, channel :usize) -> *const f32 { + (*samples).0 + .get(channel) |