1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Advanced general-purpose multimedia player
8 HOMEPAGE= https://mpv.io/
11 DOWNLOAD_GROUPS= main waf
12 SITES[main]= GITHUB/mpv-player:mpv:v0.35.1
13 SITES[waf]= https://gitlab.com/ita1024/waf/-/archive/waf-2.0.24/
14 DISTFILE[1]= generated:main
15 DISTFILE[2]= waf-waf-2.0.24.tar.bz2:waf
17 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 BUILD_DEPENDS= python-docutils:single:python_used
29 BUILDRUN_DEPENDS= ffmpeg:primary:standard
30 libarchive:single:standard
31 libass:primary:standard
32 libdvdnav:single:standard
33 libvdpau:single:standard
35 uchardet:single:standard
36 RUN_DEPENDS= youtube-dl:single:standard
38 USES= cpe iconv jpeg lua:5.2 pkgconfig fontconfig:build
39 perl:build python:build ssl:build
40 desktop-utils:primary gnome-icons:primary
42 XORG_COMPONENTS= x11 xext xinerama xrandr xscrnsaver xv xxf86vm
44 LICENSE= GPLv2+:primary
45 LICENSE_TERMS= primary:{{WRKSRC}}/Copyright
46 LICENSE_FILE= GPLv2+:{{WRKSRC}}/LICENSE.GPL
49 FPC_EQUIVALENT= multimedia/mpv
52 CONFIGURE_ARGS= --prefix="{{PREFIX}}"
53 --docdir="{{STD_EXAMPLESDIR}}"
54 --htmldir="{{STD_DOCDIR}}/html"
55 --mandir="{{MANPREFIX}}/man"
56 --lua={{LUA_VER_STR}}fbsd
57 --enable-libmpv-shared
66 --disable-vaapi-wayland
74 -j{{MAKE_JOBS_NUMBER}}
75 CONFIGURE_ENV= BIN_PYTHON="{{PYTHON_CMD}}"
79 DESTDIRNAME= --destdir
84 ${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | \
85 ${XARGS} ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g'
88 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mpv
89 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpv.so
91 [FILE:364:descriptions/desc.primary]
92 Mpv is based on the MPlayer and mplayer2 projects which it greatly improves.
93 It supports a wide variety of video file formats, audio and video codecs, and
94 subtitle types. Special input URL types are available to read input from
95 a variety of sources other than disk files. Depending on platform, a variety of
96 different video and audio output methods are supported.
100 41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9 3367913 mpv-player-mpv-0.35.1.tar.gz
101 599ab1903b6f12f0683878d2cd4f73546e0ce26031efd05f3fbe5178e4ef8cda 582903 waf-waf-2.0.24.tar.bz2
104 [FILE:589:manifests/plist.primary]
106 etc/mpv/encoding-profiles.conf
114 libmpv.so.%%SOMAJOR%%
115 libmpv.so.%%SOVERSION%%
117 share/applications/mpv.desktop
118 share/bash-completion/completions/mpv
119 share/icons/hicolor/128x128/apps/mpv.png
120 share/icons/hicolor/16x16/apps/mpv.png
121 share/icons/hicolor/32x32/apps/mpv.png
122 share/icons/hicolor/64x64/apps/mpv.png
123 share/icons/hicolor/scalable/apps/mpv.svg
124 share/icons/hicolor/symbolic/apps/mpv-symbolic.svg
125 share/man/man1/mpv.1.gz
126 share/metainfo/mpv.metainfo.xml
127 share/zsh/site-functions/_mpv
130 [FILE:89:manifests/plist.examples]
135 restore-old-bindings.conf
138 [FILE:28:manifests/plist.docs]
139 share/doc/mpv/html/mpv.html
142 [FILE:573:patches/patch-stream_stream__libarchive.c]
143 $NetBSD: patch-stream_stream__libarchive.c,v 1.1 2022/05/17 13:12:13 ryoon Exp $
145 * NetBSD does not implement uselocale().
147 --- stream/stream_libarchive.c.orig 2022-11-12 13:52:40 UTC
148 +++ stream/stream_libarchive.c
150 #define MP_ARCHIVE_FLAG_MAYBE_RAR (MP_ARCHIVE_FLAG_PRIV << 1)
151 #define MP_ARCHIVE_FLAG_MAYBE_VOLUMES (MP_ARCHIVE_FLAG_PRIV << 2)
153 +#if defined(__NetBSD__)
154 +#define uselocale(locale) NULL
157 struct mp_archive_volume {
158 struct mp_archive *mpa;
159 int index; // volume number (starting with 0, mp_archive.primary_src)
162 [FILE:392:patches/patch-video_out_drm__common.c]
163 $NetBSD: patch-video_out_drm__common.c,v 1.4 2020/12/19 11:27:51 leot Exp $
165 Enable support for DRM on NetBSD.
167 --- video/out/drm_common.c.orig 2022-11-12 13:52:40 UTC
168 +++ video/out/drm_common.c
172 #include <sys/consio.h>
173 +#elif HAVE_WSDISPLAY_USL_IO_H
174 +#include <sys/types.h>
175 +#include <dev/wscons/wsdisplay_usl_io.h>
181 [FILE:1500:patches/patch-wscript]
182 $NetBSD: patch-wscript,v 1.9 2022/11/16 11:27:32 leot Exp $
184 - Enable support for DRM on NetBSD.
185 - Check for OSSv4 features that could not be on some platforms
188 --- wscript.orig 2022-11-12 13:52:40 UTC
190 @@ -278,6 +278,11 @@ iconv support use --disable-iconv.",
191 'func': check_statement(['sys/consio.h', 'sys/ioctl.h'],
192 'int m; ioctl(0, VT_GETMODE, &m)'),
194 + 'name': 'wsdisplay_usl_io.h',
195 + 'desc': 'wsdisplay_usl_io.h',
196 + 'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'],
197 + 'int m; ioctl(0, VT_GETMODE, &m)'),
201 'func': check_cc(header_name=['stdio.h', 'gbm.h']),
202 @@ -441,7 +446,7 @@ audio_output_features = [
204 'name': '--oss-audio',
205 'desc': 'OSSv4 audio output',
206 - 'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL'),
207 + 'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL; int y = SNDCTL_DSP_HALT;'),
208 'deps': 'posix && gpl',
210 'name': '--pipewire',
211 @@ -508,7 +513,7 @@ video_output_features = [
215 - 'deps': 'vt.h || consio.h',
216 + 'deps': 'vt.h || consio.h || wsdisplay_usl_io.h',
217 'func': check_pkg_config('libdrm', '>= 2.4.75'),
222 [FILE:178:files/special.mk]
224 MAKE_CMD= ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light
225 CONFIGURE_CMD= ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light configure
228 MAKE_ARGS+= --verbose
231 [FILE:168:dragonfly/patch-libmpv_mpv.def]
232 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
237 mpv_abort_async_command
238 mpv_client_api_version
242 [FILE:168:freebsd/patch-libmpv_mpv.def]
243 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
248 mpv_abort_async_command
249 mpv_client_api_version