[vlc-commits] Add HAVE_DVBPSI, and use it, DVBPSI_CFLAGS and DVBPSI_LIBS

Rémi Denis-Courmont git at videolan.org
Wed May 11 21:44:00 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 11 22:19:13 2011 +0300| [2b4266d1ea6ddebfa76652687d99ba52186d2bf7] | committer: Rémi Denis-Courmont

Add HAVE_DVBPSI, and use it, DVBPSI_CFLAGS and DVBPSI_LIBS

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

 configure.ac                |   11 +++--------
 modules/demux/Modules.am    |    9 ++++++++-
 modules/mux/Modules.am      |   11 +++++++++++
 modules/mux/mpeg/Modules.am |    8 --------
 4 files changed, 22 insertions(+), 17 deletions(-)

diff --git a/configure.ac b/configure.ac
index 06f1972..d092604 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2203,14 +2203,9 @@ fi
 dnl
 dnl  libdvbpsi check for ts mux/demux
 dnl
-PKG_WITH_MODULES([DVBPSI], [libdvbpsi],
-    VLC_ADD_PLUGIN([ts])
-    VLC_ADD_LIBS([ts],[-ldvbpsi])
-if test "${enable_sout}" != "no"; then
-    VLC_ADD_PLUGIN([mux_ts])
-    VLC_ADD_LIBS([mux_ts],[-ldvbpsi])
-fi
-)
+have_dvbpsi="no"
+PKG_WITH_MODULES([DVBPSI], [libdvbpsi], [have_dvbpsi="yes"])
+AM_CONDITIONAL(HAVE_DVBPSI, [test "${have_dvbpsi}" = "yes"])
 
 dnl
 dnl  Screen capture module
diff --git a/modules/demux/Modules.am b/modules/demux/Modules.am
index 526d0d0..c17947c 100644
--- a/modules/demux/Modules.am
+++ b/modules/demux/Modules.am
@@ -11,7 +11,6 @@ SOURCES_wav = wav.c
 SOURCES_live555 = live555.cpp ../access/mms/asf.c ../access/mms/buffer.c
 SOURCES_nsv = nsv.c
 SOURCES_real = real.c
-SOURCES_ts = ts.c ../mux/mpeg/csa.c dvb-text.h
 SOURCES_ps = ps.c ps.h
 SOURCES_mod = mod.c dummy.cpp
 SOURCES_pva = pva.c
@@ -63,6 +62,14 @@ libvlc_LTLIBRARIES += \
 	libimage_plugin.la \
 	$(NULL)
 
+libts_plugin_la_SOURCES = ts.c ../mux/mpeg/csa.c dvb-text.h
+libts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
+libts_plugin_la_LIBADD = $(AM_LIBADD) $(DVBPSI_LIBS)
+libts_plugin_la_DEPENDENCIES =
+if HAVE_DVBPSI
+libvlc_LTLIBRARIES += libts_plugin.la
+endif
+
 BUILT_SOURCES += dummy.cpp
 
 dummy.cpp:
diff --git a/modules/mux/Modules.am b/modules/mux/Modules.am
index 67aee7b..71f82ba 100644
--- a/modules/mux/Modules.am
+++ b/modules/mux/Modules.am
@@ -15,3 +15,14 @@ libvlc_LTLIBRARIES += \
 	libmux_wav_plugin.la \
 	libmux_mpjpeg_plugin.la \
 	$(NULL)
+
+libmux_ts_plugin_la_SOURCES = \
+	mpeg/pes.c mpeg/pes.h \
+	mpeg/csa.c mpeg/csa.h \
+	mpeg/ts.c bits.h
+libmux_ts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
+libmux_ts_plugin_la_LIBADD = $(AM_LIBADD) $(DVBPSI_LIBS)
+libmux_ts_plugin_la_DEPENDENCIES =
+if HAVE_DVBPSI
+libvlc_LTLIBRARIES += libmux_ts_plugin.la
+endif
diff --git a/modules/mux/mpeg/Modules.am b/modules/mux/mpeg/Modules.am
index 323c59b..3fccb60 100644
--- a/modules/mux/mpeg/Modules.am
+++ b/modules/mux/mpeg/Modules.am
@@ -3,12 +3,4 @@ SOURCES_mux_ps = ps.c \
                  pes.h \
                  bits.h \
                  $(NULL)
-SOURCES_mux_ts = ts.c \
-                 pes.c \
-                 pes.h \
-                 csa.c \
-                 csa.h \
-                 bits.h \
-                 $(NULL)
-
 libvlc_LTLIBRARIES += libmux_ps_plugin.la



More information about the vlc-commits mailing list