Ravenports generated: 04 Mar 2023 16:17
[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                         ffmpeg:dev:standard
29 BUILDRUN_DEPENDS=       ffmpeg:primary:standard
30                         libarchive:single:standard
31                         libass:primary:standard
32                         libdvdnav:single:standard
33                         libvdpau:single:standard
34                         libva:single:standard
35                         uchardet:single:standard
36 RUN_DEPENDS=            youtube-dl:single:standard
37
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
41 SDL_COMPONENTS=         sdl2
42 XORG_COMPONENTS=        x11 xext xinerama xrandr xscrnsaver xv xxf86vm
43
44 LICENSE=                GPLv2+:primary
45 LICENSE_TERMS=          primary:{{WRKSRC}}/Copyright
46 LICENSE_FILE=           GPLv2+:{{WRKSRC}}/LICENSE.GPL
47 LICENSE_SCHEME=         solo
48
49 FPC_EQUIVALENT=         multimedia/mpv
50
51 MUST_CONFIGURE=         yes
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
58                         --enable-libarchive
59                         --enable-html
60                         --enable-dvdnav
61                         --enable-sdl2
62                         --disable-debug-build
63                         --disable-optimize
64                         --disable-pdf
65                         --disable-rubberband
66                         --disable-vaapi-wayland
67                         --disable-vapoursynth
68                         --disable-wayland
69                         --disable-alsa
70                         --disable-caca
71                         --disable-jack
72                         --disable-lcms2
73                         --disable-libbluray
74                         -j{{MAKE_JOBS_NUMBER}}
75 CONFIGURE_ENV=          BIN_PYTHON="{{PYTHON_CMD}}"
76                         BIN_PERL="{{PERL}}"
77
78 BUILD_TARGET=           build
79 DESTDIRNAME=            --destdir
80
81 SOVERSION=              2.0.0
82
83 post-patch:
84         ${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | \
85                 ${XARGS} ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g'
86
87 post-install:
88         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mpv
89         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpv.so
90
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.
97
98
99 [FILE:208:distinfo]
100 41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9      3367913 mpv-player-mpv-0.35.1.tar.gz
101 599ab1903b6f12f0683878d2cd4f73546e0ce26031efd05f3fbe5178e4ef8cda       582903 waf-waf-2.0.24.tar.bz2
102
103
104 [FILE:589:manifests/plist.primary]
105 bin/mpv
106 etc/mpv/encoding-profiles.conf
107 include/mpv/
108  client.h
109  render.h
110  render_gl.h
111  stream_cb.h
112 lib/
113  libmpv.so
114  libmpv.so.%%SOMAJOR%%
115  libmpv.so.%%SOVERSION%%
116 lib/pkgconfig/mpv.pc
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
128
129
130 [FILE:89:manifests/plist.examples]
131 share/examples/mpv/
132  input.conf
133  mplayer-input.conf
134  mpv.conf
135  restore-old-bindings.conf
136
137
138 [FILE:28:manifests/plist.docs]
139 share/doc/mpv/html/mpv.html
140
141
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 $
144
145 * NetBSD does not implement uselocale().
146
147 --- stream/stream_libarchive.c.orig     2022-11-12 13:52:40 UTC
148 +++ stream/stream_libarchive.c
149 @@ -29,6 +29,10 @@
150  #define MP_ARCHIVE_FLAG_MAYBE_RAR       (MP_ARCHIVE_FLAG_PRIV << 1)
151  #define MP_ARCHIVE_FLAG_MAYBE_VOLUMES   (MP_ARCHIVE_FLAG_PRIV << 2)
152  
153 +#if defined(__NetBSD__)
154 +#define uselocale(locale) NULL
155 +#endif
156 +
157  struct mp_archive_volume {
158      struct mp_archive *mpa;
159      int index; // volume number (starting with 0, mp_archive.primary_src)
160
161
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 $
164
165 Enable support for DRM on NetBSD.
166
167 --- video/out/drm_common.c.orig 2022-11-12 13:52:40 UTC
168 +++ video/out/drm_common.c
169 @@ -31,6 +31,9 @@
170  
171  #if HAVE_CONSIO_H
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>
176  #else
177  #include <sys/vt.h>
178  #endif
179
180
181 [FILE:1500:patches/patch-wscript]
182 $NetBSD: patch-wscript,v 1.9 2022/11/16 11:27:32 leot Exp $
183
184 - Enable support for DRM on NetBSD.
185 - Check for OSSv4 features that could not be on some platforms
186   (e.g. NetBSD)
187
188 --- wscript.orig        2022-11-12 13:52:40 UTC
189 +++ wscript
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)'),
193      }, {
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)'),
198 +    }, {
199          'name': 'gbm.h',
200          'desc': 'gbm.h',
201          'func': check_cc(header_name=['stdio.h', 'gbm.h']),
202 @@ -441,7 +446,7 @@ audio_output_features = [
203      }, {
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',
209      }, {
210          'name': '--pipewire',
211 @@ -508,7 +513,7 @@ video_output_features = [
212      }, {
213          'name': '--drm',
214          'desc': 'DRM',
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'),
218      }, {
219          'name': '--gbm',
220
221
222 [FILE:178:files/special.mk]
223 # Emulate USES=waf
224 MAKE_CMD=       ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light
225 CONFIGURE_CMD=  ${PYTHON_CMD} ${WRKDIR}/waf-*/waf-light configure
226 MAKEFILE=
227 MAKE_FLAGS=
228 MAKE_ARGS+=     --verbose
229
230
231 [FILE:168:dragonfly/patch-libmpv_mpv.def]
232 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
233 +++ libmpv/mpv.def
234 @@ -1,3 +1,5 @@
235 +__progname
236 +environ
237  mpv_abort_async_command
238  mpv_client_api_version
239  mpv_client_id
240
241
242 [FILE:168:freebsd/patch-libmpv_mpv.def]
243 --- libmpv/mpv.def.orig 2022-11-12 13:52:40 UTC
244 +++ libmpv/mpv.def
245 @@ -1,3 +1,5 @@
246 +__progname
247 +environ
248  mpv_abort_async_command
249  mpv_client_api_version
250  mpv_client_id
251