1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/multimedia/wl-screenrec/Makefile
2024-09-10 13:00:34 +02:00

38 lines
1.0 KiB
Makefile

PORTNAME= wl-screenrec
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.5
PORTREVISION= 2
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} \
share/bash-completion/completions/${PORTNAME} \
share/fish/vendor_completions.d/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \
${WRKSRC_crate_clang-sys}/build/common.rs \
${WRKSRC_crate_clang-sys}/src/support.rs
post-install:
.for _shell in bash fish zsh
@${ECHO_MSG} "Generating ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*${_shell}*}"
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/*/${PORTNAME} \
--generate-completions ${_shell} \
>${STAGEDIR}${PREFIX}/${PLIST_FILES:M*${_shell}*}
.endfor
.include <bsd.port.mk>