summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-07-11 00:15:21 -0700
committerMichael Forney <mforney@mforney.org>2016-07-11 00:15:21 -0700
commitd3cad51a2bf250ce430b7af717c8078ee27ec819 (patch)
treec0b6f396dd41249ed61bad665af3d6351817f3e0
parentf8f2ed262f5b40fddde9b25af2f378ac34125767 (diff)
mpv: Enable libass support
-rw-r--r--media/mpv/config.h6
-rw-r--r--media/mpv/gen.rc14
2 files changed, 13 insertions, 7 deletions
diff --git a/media/mpv/config.h b/media/mpv/config.h
index 76c6ad29..ee31ed7b 100644
--- a/media/mpv/config.h
+++ b/media/mpv/config.h
@@ -56,9 +56,9 @@
#define HAVE_LINUX_FSTATFS 1
#define HAVE_LIBSMBCLIENT 0
#define HAVE_LUA 1
-#define HAVE_LIBASS 0
-#define HAVE_LIBASS_OSD 0
-#define HAVE_DUMMY_OSD 1
+#define HAVE_LIBASS 1
+#define HAVE_LIBASS_OSD 1
+#define HAVE_DUMMY_OSD 0
#define HAVE_ZLIB 1
#define HAVE_ENCODING 0
#define HAVE_LIBBLURAY 0
diff --git a/media/mpv/gen.rc b/media/mpv/gen.rc
index 459951f9..d937846c 100644
--- a/media/mpv/gen.rc
+++ b/media/mpv/gen.rc
@@ -51,18 +51,24 @@ fn file2string {
}
file2string input/input_conf.h etc/input.conf
+file2string sub/osd_font.h sub/osd_font.otf
for(f in assdraw defaults options osc ytdl_hook)
file2string player/lua/$f.inc player/lua/$f.lua
-if(grep -qF 'HAVE_DRM 1' config.h) {
- cflags=($cflags '-isystem desktop/libdrm/'^(src src/include/drm))
- libs=($libs desktop/libdrm/libdrm.a)
-}
if(grep -qF 'HAVE_ALSA 1' config.h) {
cflags=($cflags -isystem '$builddir'/media/alsa-lib/include)
libs=($libs media/alsa-lib/libasound.a)
deps=($deps phony/media/alsa-lib/headers)
}
+if(grep -qF 'HAVE_DRM 1' config.h) {
+ cflags=($cflags '-isystem desktop/libdrm/'^(src src/include/drm))
+ libs=($libs desktop/libdrm/libdrm.a)
+}
+if(grep -qF 'HAVE_LIBASS 1' config.h) {
+ cflags=($cflags -isystem '$builddir'/media/libass/include)
+ libs=($libs media/libass/libass.a desktop/freetype/libfreetype.a extra/fribidi/libfribidi.a)
+ deps=($deps phony/media/libass/headers)
+}
if(grep -qF 'HAVE_LUA 1' config.h) {
cflags=($cflags -isystem devel/lua/src/src)
libs=($libs devel/lua/liblua.a)