131 lines
3.3 KiB
Python
131 lines
3.3 KiB
Python
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("0.41.0")
|
|
description("Command line media player")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://mpv-player/mpv#v0.41.0")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("libwayland-dev @target")
|
|
builddep("wayland-protocols @target")
|
|
builddep("libxkbcommon-dev @target")
|
|
builddep("xkeyboard-config")
|
|
builddep("libplacebo-dev @target")
|
|
builddep("libass-dev @target")
|
|
builddep("libavcodec-dev @target")
|
|
builddep("libavdevice-dev @target")
|
|
builddep("libavfilter-dev @target")
|
|
builddep("libavutil-dev @target")
|
|
builddep("libswresample-dev @target")
|
|
builddep("libswscale-dev @target")
|
|
builddep("libjpeg-turbo-dev @target")
|
|
builddep("libcurl-dev @target")
|
|
builddep("libarchive-dev @target")
|
|
builddep("liblcms-dev @target")
|
|
builddep("libz-dev @target")
|
|
builddep("alsa-lib-dev @target")
|
|
builddep("linux-dev @target")
|
|
builddep("libva-dev @target")
|
|
builddep("libegl-dev @target")
|
|
builddep("libdrm-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"-Dgpl=true",
|
|
"-Dcplayer=true",
|
|
"-Dlibmpv=true",
|
|
"-Dbuild-date=true",
|
|
"-Dtests=false",
|
|
"-Dfuzzers=false",
|
|
|
|
"-Dcdda=disabled",
|
|
"-Dcplugins=disabled",
|
|
"-Ddvbin=disabled",
|
|
"-Ddvdnav=disabled",
|
|
"-Diconv=enabled",
|
|
"-Djavascript=disabled",
|
|
"-Djpeg=enabled",
|
|
"-Dlcms2=enabled",
|
|
"-Dlibarchive=enabled",
|
|
"-Dlibavdevice=enabled",
|
|
"-Dlibbluray=disabled",
|
|
"-Dlua=disabled",
|
|
"-Dpthread-debug=disabled",
|
|
"-Drubberband=disabled",
|
|
"-Dsdl2-gamepad=disabled",
|
|
"-Duchardet=disabled",
|
|
"-Dvapoursynth=disabled",
|
|
"-Dx11-clipboard=disabled",
|
|
"-Dzimg=disabled",
|
|
"-Dzlib=enabled",
|
|
|
|
"-Dalsa=enabled",
|
|
|
|
"-Degl=enabled",
|
|
"-Degl-wayland=enabled",
|
|
"-Dvaapi=enabled",
|
|
"-Dvaapi-wayland=enabled",
|
|
"-Dwayland=enabled",
|
|
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libmpv")
|
|
dep("libass @same-arch")
|
|
dep("libavcodec @same-arch")
|
|
dep("libavfilter @same-arch")
|
|
dep("libavformat @same-arch")
|
|
dep("libavutil @same-arch")
|
|
dep("libplacebo @same-arch")
|
|
dep("libswresample @same-arch")
|
|
dep("libswscale @same-arch")
|
|
dep("liblcms @same-arch")
|
|
dep("libarchive @same-arch")
|
|
dep("libavdevice @same-arch")
|
|
dep("libz @same-arch")
|
|
dep("alsa-lib @same-arch")
|
|
dep("libjpeg-turbo @same-arch")
|
|
dep("libwayland @same-arch")
|
|
dep("libxkbcommon @same-arch")
|
|
dep("libvulkan @same-arch")
|
|
dep("libegl @same-arch")
|
|
dep("libva @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libmpv-dev")
|
|
dep("libmpv (same)")
|
|
dep("libass-dev @same-arch")
|
|
dep("libavcodec-dev @same-arch")
|
|
dep("libavfilter-dev @same-arch")
|
|
dep("libavformat-dev @same-arch")
|
|
dep("libavutil-dev @same-arch")
|
|
dep("libplacebo-dev @same-arch")
|
|
dep("libswresample-dev @same-arch")
|
|
dep("libswscale-dev @same-arch")
|
|
dep("liblcms-dev @same-arch")
|
|
dep("libarchive-dev @same-arch")
|
|
dep("libavdevice-dev @same-arch")
|
|
dep("libz-dev @same-arch")
|
|
dep("alsa-lib-dev @same-arch")
|
|
dep("libjpeg-turbo-dev @same-arch")
|
|
dep("libwayland-dev @same-arch")
|
|
dep("libxkbcommon-dev @same-arch")
|
|
dep("libvulkan-dev @same-arch")
|
|
dep("libegl-dev @same-arch")
|
|
dep("libva-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|
|
|
|
package("mpv")
|
|
dep("libmpv (same)")
|
|
cpp.use_auto_pack(["bin"])
|