multimedia/wf-recorder: make pulseaudio optional

- FreeBSD can use virtual_oss to record audio from applications
- DragonFly cannot use PulseAudio yet, see
  https://github.com/DragonFlyBSD/DeltaPorts/commit/b88835f255a5
This commit is contained in:
Jan Beich 2020-10-28 08:15:33 +00:00
parent f02cb9ab22
commit 6f75781b74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553527
2 changed files with 11 additions and 3 deletions

View File

@ -5,6 +5,9 @@ DISTVERSION= 0.2.1
CATEGORIES= multimedia wayland
MASTER_SITES= https://github.com/ammen99/wf-recorder/releases/download/v${DISTVERSION}/
PATCH_SITES= https://github.com/ammen99/${PORTNAME}/commit/
PATCHFILES+= 78d6a60833aa.patch:-p1 # https://github.com/ammen99/wf-recorder/pull/88
MAINTAINER= ports@FreeBSD.org
COMMENT= Screen recorder for wlroots-based compositors
@ -15,7 +18,6 @@ BUILD_DEPENDS= scdoc:textproc/scdoc \
wayland-protocols>=1.14:graphics/wayland-protocols \
wayland-scanner:graphics/wayland
LIB_DEPENDS= libavutil.so:multimedia/ffmpeg \
libpulse.so:audio/pulseaudio \
libwayland-client.so:graphics/wayland
USES= compiler:c++11-lang meson pkgconfig tar:xz
@ -24,15 +26,19 @@ PLIST_FILES= bin/wf-recorder \
man/man1/wf-recorder.1.gz
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS OPENCL
OPTIONS_DEFAULT= OPENCL
OPTIONS_DEFINE= DOCS OPENCL PULSEAUDIO
OPTIONS_DEFAULT= OPENCL PULSEAUDIO
OPENCL_DESC= RGB to YUV conversion with the help of OpenCL
PULSEAUDIO_DESC=Audio recording via PulseAudio
OPENCL_BUILD_DEPENDS= opencl>0:devel/opencl
OPENCL_LIB_DEPENDS= libOpenCL.so:devel/ocl-icd
OPENCL_MESON_ENABLED= opencl
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_MESON_ENABLED= pulse
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1586883884
SHA256 (wf-recorder-0.2.1.tar.xz) = bfe51f4f88ba755ac0ad993d00da706496f84e60b53de0ae24fe1c654cfaa376
SIZE (wf-recorder-0.2.1.tar.xz) = 19828
SHA256 (78d6a60833aa.patch) = a5bf2b396a0979249e8a8b7a9321a5c08cc257457679dc9a3895aab46db05f6e
SIZE (78d6a60833aa.patch) = 11711