summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilip Sequeira2021-01-14 23:44:25 -0500
committerPhilip Sequeira2021-01-14 23:55:35 -0500
commit27a2d1b64c0075d34c978cb3053880e0c37ba15f (patch)
treea3a2f7ab4448fbe2ee16391e4bdfa9c15f12ab21 /PKGBUILD
parent5f418efb4e0f8f3ce0aeb4293ea3b2e5f980396c (diff)
downloadaur-27a2d1b64c0075d34c978cb3053880e0c37ba15f.tar.gz
add javascript option + add explicit --enable-* for optional stuff
The build should fail if you specifically wanted an optional feature and didn't get it. This way we'll know if something gets disabled by default or grows another dependency or something.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9d7faf3c64b9..d4b912fe39cd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,6 +24,8 @@ _opt_features=(
# dependencies the first time you build. If you have the dependencies
# installed, subsequent builds will pick them up automatically.
+ #javascript
+
#x11
#wayland
@@ -45,7 +47,7 @@ _opt_features=(
pkgname=mpv-git
_gitname=mpv
-pkgver=0.32.0_779_gcbbdb3fae4
+pkgver=0.33.0_61_gdae9ea3fa7
pkgrel=1
_waf_version=2.0.20
pkgdesc='Video player based on MPlayer/mplayer2 (git version)'
@@ -79,26 +81,29 @@ for feature in "${_opt_features[@]}"; do
depends+=('libcdio-paranoia')
_opt_extra_flags+=('--enable-cdda')
;;
- sdl2|openal)
- depends+=("$feature")
- _opt_extra_flags+=("--enable-$feature")
- ;;
lua)
depends+=('lua52')
- _opt_extra_flags+=('--lua=52arch')
+ _opt_extra_flags+=('--enable-lua' '--lua=52arch')
;;
luajit)
depends+=('luajit')
- _opt_extra_flags+=('--lua=luajit')
+ _opt_extra_flags+=('--enable-lua' '--lua=luajit')
+ ;;
+ javascript)
+ depends+=('mujs')
+ _opt_extra_flags+=('--enable-javascript')
;;
x11)
depends+=('libxinerama' 'libxrandr' 'libxss')
+ _opt_extra_flags+=('--enable-x11')
;;
wayland)
depends+=('wayland' 'libxkbcommon')
+ _opt_extra_flags+=('--enable-wayland')
;;
- uchardet|rubberband)
+ sdl2|openal|uchardet|rubberband)
depends+=("$feature")
+ _opt_extra_flags+=("--enable-$feature")
;;
dvbin)
_opt_extra_flags+=("--enable-$feature")