summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2025-10-24 17:15:33 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2025-10-24 17:15:33 +0900
commit25f99ac7c14dae68b6a8779d380bf3961ed62002 (patch)
treebba9a5234e2b2254bc27cee2e774f82fb1ade9c0
parentmisc/crush: Update to 0.12.2 (diff)
multimedia/wf-recorder: Update to 0.6.0 and take maintainership
While here: - switch to UST_GITHUB since upstream no longer provides release source tarball - remove no longer relevant post-patch target - remove obsolete patch Changelog: https://github.com/ammen99/wf-recorder/releases/tag/v0.6.0
-rw-r--r--multimedia/wf-recorder/Makefile32
-rw-r--r--multimedia/wf-recorder/distinfo6
-rw-r--r--multimedia/wf-recorder/files/patch-fix-ffmpeg827
3 files changed, 18 insertions, 47 deletions
diff --git a/multimedia/wf-recorder/Makefile b/multimedia/wf-recorder/Makefile
index 4cdc9aefa0e1..a10015918986 100644
--- a/multimedia/wf-recorder/Makefile
+++ b/multimedia/wf-recorder/Makefile
@@ -1,9 +1,9 @@
PORTNAME= wf-recorder
-DISTVERSION= 0.5.0
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.6.0
CATEGORIES= multimedia wayland
-MASTER_SITES= https://github.com/ammen99/wf-recorder/releases/download/v${DISTVERSION}/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= tagattie@FreeBSD.org
COMMENT= Screen recorder for wlroots-based compositors
WWW= https://github.com/ammen99/wf-recorder
@@ -17,33 +17,31 @@ LIB_DEPENDS= libavutil.so:multimedia/ffmpeg \
libdrm.so:graphics/libdrm \
libwayland-client.so:graphics/wayland
-USES= compiler:c++11-lang gl meson pkgconfig tar:xz
+USES= compiler:c++11-lang gl meson pkgconfig
+
+USE_GITHUB= yes
+GH_ACCOUNT= ammen99
+
USE_GL= gbm
PLIST_FILES= bin/wf-recorder \
+ share/fish/fish/vendor_completions.d/wf-recorder.fish \
share/man/man1/wf-recorder.1.gz
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS PIPEWIRE PULSEAUDIO
OPTIONS_DEFAULT= PIPEWIRE PULSEAUDIO
-PIPEWIRE_DESC=Audio recording via PipeWire
-PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire
-PIPEWIRE_MESON_ENABLED= pipewire
+PIPEWIRE_DESC= Audio recording via PipeWire
+PULSEAUDIO_DESC= Audio recording via PulseAudio
-PULSEAUDIO_DESC=Audio recording via PulseAudio
-
-PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
+PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire
+PIPEWIRE_MESON_ENABLED= pipewire
+PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_MESON_ENABLED= pulse
-post-patch:
-# Extract (snapshot) version from the port instead of meson.build
- @${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
- -e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
- ${WRKSRC}/meson.build
-
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/multimedia/wf-recorder/distinfo b/multimedia/wf-recorder/distinfo
index 5d03235c7590..49493a731293 100644
--- a/multimedia/wf-recorder/distinfo
+++ b/multimedia/wf-recorder/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724488193
-SHA256 (wf-recorder-0.5.0.tar.xz) = 50b30569f9ecf4f6ba5ba76c422b7af652b4fbc7cae86c25e19ecbe669fca327
-SIZE (wf-recorder-0.5.0.tar.xz) = 28348
+TIMESTAMP = 1761278043
+SHA256 (ammen99-wf-recorder-v0.6.0_GH0.tar.gz) = 52d2c952506d63708f9a8f1aacd4d6ca176287caf3507c8ff2882fa0390cb391
+SIZE (ammen99-wf-recorder-v0.6.0_GH0.tar.gz) = 33545
diff --git a/multimedia/wf-recorder/files/patch-fix-ffmpeg8 b/multimedia/wf-recorder/files/patch-fix-ffmpeg8
deleted file mode 100644
index 68bf8d5643ce..000000000000
--- a/multimedia/wf-recorder/files/patch-fix-ffmpeg8
+++ /dev/null
@@ -1,27 +0,0 @@
-From 560bb92d3ddaeb31d7af77d22d01b0050b45bebe Mon Sep 17 00:00:00 2001
-From: Scott Moreau <oreaus@gmail.com>
-Date: Tue, 8 Oct 2024 12:56:55 -0600
-Subject: [PATCH] frame-writer: Track ffmpeg changes (#279)
-
-* frame-writer: Track ffmpeg changes
-
-The frame_rate variable has been made private API.
-
-* frame-writer: Remove comment
----
- src/frame-writer.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git src/frame-writer.cpp src/frame-writer.cpp
-index 2a5ba17..b8abe51 100644
---- src/frame-writer.cpp
-+++ src/frame-writer.cpp
-@@ -371,7 +371,7 @@ void FrameWriter::init_video_filters(const AVCodec *codec)
- this->videoCodecCtx->height = filter_output->h;
- this->videoCodecCtx->pix_fmt = (AVPixelFormat)filter_output->format;
- this->videoCodecCtx->time_base = filter_output->time_base;
-- this->videoCodecCtx->framerate = filter_output->frame_rate; // can be 1/0 if unknown
-+ this->videoCodecCtx->framerate = AVRational{1,0};
- this->videoCodecCtx->sample_aspect_ratio = filter_output->sample_aspect_ratio;
-
- this->hw_frame_context = av_buffersink_get_hw_frames_ctx(