PKGNAME=aegisub
PKGSEC=video
PKGDEP="boost ffms2 fftw hunspell wxgtk3 libass luajit fontconfig zlib icu pulseaudio \
        uchardet"
BUILDDEP="intltool desktop-file-utils gtest"
PKGDES="A free, cross-platform open source tool for creating and modifying subtitles"

ABTYPE=meson
MESON_AFTER="-Dalsa=enabled \
             -Dopenal=disabled \
             -Dlibpulse=enabled \
             -Dffms2=enabled \
             -Dhunspell=enabled \
             -Dfftw3=enabled \
             -Dsystem_luajit=true \
             -Denable_update_checker=false"

# FIXME: "terminate called without an active exception" on arm64,
#        "PANIC: unprotected error in call to Lua API" on loongson3,
#        other architectures has no luajit support.
FAIL_ARCH="!(amd64)"
