[vlc-devel] commit: Initial libass support. (Laurent Aimar )

git version control git at videolan.org
Tue Aug 5 00:33:29 CEST 2008


vlc | branch: 0.9.0-libass | Laurent Aimar <fenrir at videolan.org> | Tue Aug  5 00:04:28 2008 +0200| [683e9ff866e47e2734cfcef4a5f80e642be6c844] | committer: Laurent Aimar 

Initial libass support.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=683e9ff866e47e2734cfcef4a5f80e642be6c844
---

 configure.ac             |   21 +++++++++++++++++++++
 modules/codec/Modules.am |    1 +
 2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 69532b0..e679d06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3759,6 +3759,27 @@ AS_IF( [test "${enable_csri}" = "yes"], [
   ])
 
 dnl
+dnl libass subtitle rendering module
+dnl
+AC_ARG_ENABLE(libass,
+  [  --enable-libass           Subtitle support using libass (default disabled)])
+AS_IF( [test "${enable_libass}" = "yes"], [
+  PKG_CHECK_MODULES(LIBASS,
+      libass >= 0.9.5,
+      [
+        VLC_ADD_LDFLAGS([libass],[$LIBASS_LIBS])
+        VLC_ADD_CFLAGS([libass],[$LIBASS_CFLAGS])
+        VLC_ADD_PLUGIN([libass])
+
+		AC_CHECK_HEADERS(fontconfig/fontconfig.h,
+		  [VLC_ADD_CPPFLAGS([libass],[-DHAVE_FONTCONFIG])
+		   VLC_ADD_LIBS([libass],[-lfontconfig])])
+      ],[
+        AC_MSG_WARN([LIBASS library not found])
+      ])
+  ])
+
+dnl
 dnl asa demuxer
 dnl
 AC_ARG_ENABLE(asademux,
diff --git a/modules/codec/Modules.am b/modules/codec/Modules.am
index 5a4c2e0..a1e4d24 100644
--- a/modules/codec/Modules.am
+++ b/modules/codec/Modules.am
@@ -37,3 +37,4 @@ SOURCES_fluidsynth = fluidsynth.c
 SOURCES_cc = cc.c cc.h
 SOURCES_kate = kate.c
 SOURCES_schroedinger = schroedinger.c
+SOURCES_libass = libass.c




More information about the vlc-devel mailing list