community/mpv: enable caca support

This commit is contained in:
Francesco Colista 2023-10-03 18:25:25 +02:00 committed by Kevin Daudt
parent c05af57e14
commit 4dfd582fe9
2 changed files with 32 additions and 2 deletions

View File

@ -9,7 +9,7 @@ pkgname=mpv
# the stable releases are just arbitrary git, so we can update more often.
# it's the same stability policy regardless
pkgver=0.36.0_git20230731
pkgrel=1
pkgrel=2
_gitrev=f4210f84906c3b00a65fba198c8127b6757b9350
pkgdesc="Video player based on MPlayer/mplayer2"
url="https://mpv.io/"
@ -23,6 +23,7 @@ makedepends="
libarchive-dev
libass-dev
libbluray-dev
libcaca-dev
libcdio-paranoia-dev
libdvdnav-dev
libplacebo-dev
@ -58,7 +59,8 @@ subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
"
source="https://github.com/mpv-player/mpv/archive/$_gitrev/mpv-$_gitrev.tar.gz"
source="https://github.com/mpv-player/mpv/archive/$_gitrev/mpv-$_gitrev.tar.gz
meson-libcaca-version.patch"
builddir="$srcdir/mpv-$_gitrev"
case "$CARCH" in
@ -92,6 +94,7 @@ build() {
-Db_lto=true \
-Dalsa=enabled \
-Dbuild-date=false \
-Dcaca=enabled \
-Dcdda=enabled \
-Ddvdnav=enabled \
-Degl-drm=enabled \
@ -133,4 +136,5 @@ package() {
sha512sums="
3efacb9202064fcdc6de5b89fd774a48ab78d5504a1a4e5e94bf2dd395ce7f6ba1d510908e1057a1939ea0b06206c6e4a88645059bbeab9b2fee45f349237132 mpv-f4210f84906c3b00a65fba198c8127b6757b9350.tar.gz
06c3c7b2362ce6537277c09b252c975a35c2d693f5cdc8231fccb4e572d9164ae745aad88ced78d33fad49b6fbca9fa8a43236c82ddd19452d81f137cc0ac9d8 meson-libcaca-version.patch
"

View File

@ -0,0 +1,26 @@
diff --git a/meson.build b/meson.build
index f9fe4e7..5a6255b 100644
--- a/meson.build
+++ b/meson.build
@@ -876,7 +876,7 @@ caca_opt = get_option('caca').require(
get_option('gpl'),
error_message: 'the build is not GPL!',
)
-caca = dependency('caca', version: '>= 0.99.beta18', required: caca_opt)
+caca = dependency('caca', version: '>= 0.99', required: caca_opt)
features += {'caca': caca.found()}
if features['caca']
dependencies += caca
diff --git a/wscript b/wscript
index 82f65b4..7990f64 100644
--- a/wscript
+++ b/wscript
@@ -720,7 +720,7 @@ video_output_features = [
'name': '--caca',
'desc': 'CACA',
'deps': 'gpl',
- 'func': check_pkg_config('caca', '>= 0.99.beta18'),
+ 'func': check_pkg_config('caca', '>= 0.99'),
}, {
'name': '--jpeg',
'desc': 'JPEG support',