From 2d913739f69ecfcba9bd1e8fd98ad3b33a6f150b Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Fri, 13 Dec 2019 22:36:11 +0000 Subject: [PATCH] New port: multimedia/mpv-mpris: MPRIS plugin for mpv mpv-mpris is a plugin for mpv which allows control of the player using standard media keys. This plugin implements the MPRIS D-Bus interface and can be controlled using tools such as playerctl or through many Linux DEs, such as Gnome and KDE. WWW: https://github.com/hoyon/mpv-mpris - This makes KDE Plasma desktop's panels media control available for mpv, and also exposes mpv to kdeconnect-kde. --- multimedia/Makefile | 1 + multimedia/mpv-mpris/Makefile | 29 +++++++++++++++++++++++++++++ multimedia/mpv-mpris/distinfo | 3 +++ multimedia/mpv-mpris/pkg-descr | 7 +++++++ 4 files changed, 40 insertions(+) create mode 100644 multimedia/mpv-mpris/Makefile create mode 100644 multimedia/mpv-mpris/distinfo create mode 100644 multimedia/mpv-mpris/pkg-descr diff --git a/multimedia/Makefile b/multimedia/Makefile index e95e408aa468..8beaf97add9e 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -277,6 +277,7 @@ SUBDIR += mplex SUBDIR += mps-youtube SUBDIR += mpv + SUBDIR += mpv-mpris SUBDIR += msdl SUBDIR += msopenh264 SUBDIR += mswebrtc diff --git a/multimedia/mpv-mpris/Makefile b/multimedia/mpv-mpris/Makefile new file mode 100644 index 000000000000..0b1218ac66b3 --- /dev/null +++ b/multimedia/mpv-mpris/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= mpv-mpris +DISTVERSION= 0.2 +CATEGORIES= multimedia + +MAINTAINER= tcberner@FreeBSD.org +COMMENT= MPRIS plugin for mpv + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= mpv:multimedia/mpv + +USES= gettext-runtime gnome +USE_GNOME= glib20 +USE_GITHUB= yes +GH_ACCOUNT= hoyon + +ALL_TARGET= mpris.so + +PLIST_FILES= etc/mpv/scripts/mpris.so + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mpv/scripts + ${INSTALL_LIB} ${BUILD_WRKSRC}/mpris.so \ + ${STAGEDIR}${PREFIX}/etc/mpv/scripts + +.include diff --git a/multimedia/mpv-mpris/distinfo b/multimedia/mpv-mpris/distinfo new file mode 100644 index 000000000000..1cd0ae27be5e --- /dev/null +++ b/multimedia/mpv-mpris/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576275542 +SHA256 (hoyon-mpv-mpris-0.2_GH0.tar.gz) = d21a9617759bc368d6e9cb229d099b12968f0e673db5cd0bf12d8a251516d81a +SIZE (hoyon-mpv-mpris-0.2_GH0.tar.gz) = 6902 diff --git a/multimedia/mpv-mpris/pkg-descr b/multimedia/mpv-mpris/pkg-descr new file mode 100644 index 000000000000..034f99c9a592 --- /dev/null +++ b/multimedia/mpv-mpris/pkg-descr @@ -0,0 +1,7 @@ +mpv-mpris is a plugin for mpv which allows control of the player using standard +media keys. + +This plugin implements the MPRIS D-Bus interface and can be controlled using +tools such as playerctl or through many Linux DEs, such as Gnome and KDE. + +WWW: https://github.com/hoyon/mpv-mpris