Ravenports generated: 01 Mar 2023 04:46
[ravenports.git] / bucket_15 / mpv
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               mpv
4 VERSION=                0.35.1
5 KEYWORDS=               multimedia
6 VARIANTS=               standard
7 SDESC[standard]=        Advanced general-purpose multimedia player
8 HOMEPAGE=               https://mpv.io/
9 CONTACT=                nobody
10
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
16 DF_INDEX=               1 2
17 SPKGS[standard]=        complete
18                         primary
19                         examples
20                         docs
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 BUILD_DEPENDS=          python-docutils:single:python_used
26                         harfbuzz:dev:standard
27                         libass:dev:standard
28 BUILDRUN_DEPENDS=       ffmpeg:primary:standard
29                         libarchive:single:standard
30                         libass:primary:standard
31                         libdvdnav:single:standard
32                         libvdpau:single:standard
33                         libva:single:standard
34                         uchardet:single:standard
35 RUN_DEPENDS=            youtube-dl:single:standard
36
37 USES=                   cpe iconv jpeg lua:5.2 pkgconfig fontconfig:build
38                         perl:build python:build ssl:build
39                         desktop-utils:primary gnome-icons:primary
40 SDL_COMPONENTS=         sdl2
41 XORG_COMPONENTS=        x11 xext xinerama xrandr xscrnsaver xv xxf86vm
42
43 LICENSE=                GPLv2+:primary
44 LICENSE_TERMS=          primary:{{WRKSRC}}/Copyright
45 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/LICENSE.GPL
46 LICENSE_SCHEME=         solo
47
48 FPC_EQUIVALENT=         multimedia/mpv
49
50 MUST_CONFIGURE=         yes
51 CONFIGURE_ARGS=         --prefix="{{PREFIX}}"
52                         --docdir="{{STD_EXAMPLESDIR}}"
53                         --htmldir="{{STD_DOCDIR}}/html"
54                         --mandir="{{MANPREFIX}}/man"
55                         --lua={{LUA_VER_STR}}fbsd
56                         --enable-libmpv-shared
57                         --enable-libarchive
58                         --enable-html
59                         --enable-dvdnav
60                         --enable-sdl2
61                         --disable-debug-build
62                         --disable-optimize
63                         --disable-pdf
64                         --disable-rubberband
65                         --disable-vaapi-wayland
66                         --disable-vapoursynth
67                         --disable-wayland
68                         --disable-alsa
69                         --disable-caca
70                         --disable-jack
71                         --disable-lcms2
72                         --disable-libbluray
73                         -j{{MAKE_JOBS_NUMBER}}
74 CONFIGURE_ENV=          BIN_PYTHON="{{PYTHON_CMD}}"
75                         BIN_PERL="{{PERL}}"
76
77 BUILD_TARGET=           build
78 DESTDIRNAME=            --destdir
79
80 SOVERSION=              2.0.0
81
82 post-patch:
83         ${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | \
84                 ${XARGS} ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g'
85
86 post-install:
87         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mpv
88         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpv.so
89
90 [FILE:364:descriptions/desc.primary]
91 Mpv is based on the MPlayer and mplayer2 projects which it greatly improves.
92 It supports a wide variety of video file formats, audio and video codecs, and
93 subtitle types. Special input URL types are available to read input from
94 a variety of sources other than disk files. Depending on platform, a variety of
95 different video and audio output methods are supported.
96
97
98 [FILE:208:distinfo]
99 41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9      3367913 mpv-player-mpv-0.35.1.tar.gz
100 599ab1903b6f12f0683878d2cd4f73546e0ce26031efd05f3fbe5178e4ef8cda       582903 waf-waf-2.0.24.tar.bz2
101
102
103 [FILE:589:manifests/plist.primary]
104 bin/mpv
105 etc/mpv/encoding-profiles.conf
106 include/mpv/
107  client.h
108  render.h
109  render_gl.h
110  stream_cb.h
111 lib/
112  libmpv.so
113  libmpv.so.%%SOMAJOR%%
114  libmpv.so.%%SOVERSION%%
115 lib/pkgconfig/mpv.pc
116 share/applications/mpv.desktop
117 share/bash-completion/completions/mpv
118 share/icons/hicolor/128x128/apps/mpv.png
119 share/icons/hicolor/16x16/apps/mpv.png
120 share/icons/hicolor/32x32/apps/mpv.png
121 share/icons/hicolor/64x64/apps/mpv.png
122 share/icons/hicolor/scalable/apps/mpv.svg
123 share/icons/hicolor/symbolic/apps/mpv-symbolic.svg
124 share/man/man1/mpv.1.gz
125 share/metainfo/mpv.metainfo.xml
126 share/zsh/site-functions/_mpv
127
128
129 [FILE:89:manifests/plist.examples]
130 share/examples/mpv/
131  input.conf
132  mplayer-input.conf
133  mpv.conf
134  restore-old-bindings.conf
135
136
137 [FILE:28:manifests/plist.docs]
138 share/doc/mpv/html/mpv.html
139
140
141 [FILE:573:patches/patch-stream_stream__libarchive.c]
142 $NetBSD: patch-stream_stream__libarchive.c,v 1.1 2022/05/17 13:12:13 ryoon Exp $
143
144 * NetBSD does not implement uselocale().
145
146 --- stream/stream_libarchive.c.orig     2022-11-12 13:52:40 UTC
147 +++ stream/stream_libarchive.c
148 @@ -29,6 +29,10 @@
149  #define MP_ARCHIVE_FLAG_MAYBE_RAR       (MP_ARCHIVE_FLAG_PRIV << 1)
150  #define MP_ARCHIVE_FLAG_MAYBE_VOLUMES   (MP_ARCHIVE_FLAG_PRIV << 2)
151  
152 +#if defined(__NetBSD__)
153 +#define uselocale(locale) NULL
154 +#endif
155 +
156  struct mp_archive_volume {
157      struct mp_archive *mpa;
158      int index; // volume number (starting with 0, mp_archive.primary_src)
159
160
161 [FILE:392:patches/patch-video_out_drm__common.c]
162 $NetBSD: patch-video_out_drm__common.c,v 1.4 2020/12/19 11:27:51 leot Exp $
163
164 Enable support for DRM on NetBSD.
165
166 --- video/out/drm_common.c.orig 2022-11-12 13:52:40 UTC
167 +++ video/out/drm_common.c
168 @@ -31,6 +31,9 @@
169  
170  #if HAVE_CONSIO_H
171  #include <sys/consio.h>
172 +#elif HAVE_WSDISPLAY_USL_IO_H
173 +#include <sys/types.h>
174 +#include <dev/wscons/wsdisplay_usl_io.h>
175  #else
176  #include <sys/vt.h>
177  #endif
178
179
180 [FILE:1500:patches/patch-wscript]
181 $NetBSD: patch-wscript,v 1.9 2022/11/16 11:27:32 leot Exp $
182
183 - Enable support for DRM on NetBSD.
184 - Check for OSSv4 features that could not be on some platforms
185   (e.g. NetBSD)
186
187 --- wscript.orig        2022-11-12 13:52:40 UTC
188 +++ wscript
189 @@ -278,6 +278,11 @@ iconv support use --disable-iconv.",
190          'func': check_statement(['sys/consio.h', 'sys/ioctl.h'],
191                                  'int m; ioctl(0, VT_GETMODE, &m)'),
192      }, {
193 +        'name': 'wsdisplay_usl_io.h',
194 +        'desc': 'wsdisplay_usl_io.h',
195 +        'func': check_statement(['sys/types.h', 'dev/wscons/wsdisplay_usl_io.h', 'sys/ioctl.h'],
196 +                                'int m; ioctl(0, VT_GETMODE, &m)'),
197 +    }, {
198          'name': 'gbm.h',
199          'desc': 'gbm.h',
200          'func': check_cc(header_name=['stdio.h', 'gbm.h']),
201 @@ -441,7 +446,7 @@ audio_output_features = [
202      }, {
203          'name': '--oss-audio',
204          'desc': 'OSSv4 audio output',
205 -        'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL'),
206 +        'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL; int y = SNDCTL_DSP_HALT;'),
207          'deps': 'posix && gpl',
208      }, {
209          'name': '--pipewire',
210 @@ -508,7 +513,7 @@ video_output_features = [
211      }, {
212          'name': '--drm',
213          'desc': 'DRM',
214 -        'deps': 'vt.h || consio.h',
215 +        'deps': 'vt.h || consio.h || wsdisplay_usl_io.h',
216          'func': check_pkg_config('libdrm', '>= 2.4.75'),
217      }, {
218          'name': '--gbm',
219
220
221 [FILE:178:files/special.mk]
222 # Emulate USES=waf
223 MAKE_CMD=       ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light
224 CONFIGURE_CMD=  ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light configure
225 MAKEFILE=
226 MAKE_FLAGS=
227 MAKE_ARGS+=     --verbose
228
229
230 [FILE:168:dragonfly/patch-libmpv_mpv.def]
231 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
232 +++ libmpv/mpv.def
233 @@ -1,3 +1,5 @@
234 +__progname
235 +environ
236  mpv_abort_async_command
237  mpv_client_api_version
238  mpv_client_id
239
240
241 [FILE:168:freebsd/patch-libmpv_mpv.def]
242 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
243 +++ libmpv/mpv.def
244 @@ -1,3 +1,5 @@
245 +__progname
246 +environ
247  mpv_abort_async_command
248  mpv_client_api_version
249  mpv_client_id
250