From 5d747861353471d5b409d0ed28fd9119512898ae Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Fri, 3 Jun 2016 14:16:50 +0900 Subject: [PATCH] disable unused plugins with tv featuring Change-Id: I6c18f77c75d435a7ce17d48eb71e6a138c6654f6 --- Makefile.am | 12 ++++++++---- configure.ac | 13 +++++++++++++ packaging/gst-plugins-base.spec | 12 ++++++++++-- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2ce92e1..a17bab4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,12 +6,17 @@ else SUBDIRS_EXT = endif +if TV_PROFILE +SUBDIRS_TOOLS = +else +SUBDIRS_TOOLS = tools +endif + SUBDIRS = \ pkgconfig \ gst-libs \ gst sys $(SUBDIRS_EXT) \ - tools \ - tests \ + tests $(SUBDIRS_TOOLS) \ po \ common \ m4 @@ -20,8 +25,7 @@ DIST_SUBDIRS = \ pkgconfig \ gst-libs \ gst sys ext \ - tools \ - tests \ + tests $(SUBDIRS_TOOLS) \ po \ common \ m4 diff --git a/configure.ac b/configure.ac index e29c81f..1213b93 100644 --- a/configure.ac +++ b/configure.ac @@ -153,6 +153,19 @@ AM_CONDITIONAL(HAVE_CXX, test "x$working_cxx" = "xyes") AC_PATH_PROG(VALGRIND_PATH, valgrind, no) AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno") +dnl check for tv profile + +AC_ARG_ENABLE(tv, AC_HELP_STRING([--enable-tv], [enable tv profile]), + [ + case "${enableval}" in + yes) TV_PROFILE=yes ;; + no) TV_PROFILE=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-tv) ;; + esac + ], + [TV_PROFILE=no]) +AM_CONDITIONAL([TV_PROFILE], [test "x$TV_PROFILE" = "xyes"]) + dnl check for tbm buffer AC_ARG_ENABLE(tbmbuf, AC_HELP_STRING([--enable-use-tbmbuf], [use tbm buf]), diff --git a/packaging/gst-plugins-base.spec b/packaging/gst-plugins-base.spec index c01c19b..714e1b6 100644 --- a/packaging/gst-plugins-base.spec +++ b/packaging/gst-plugins-base.spec @@ -5,7 +5,7 @@ Name: gst-plugins-base Version: 1.6.1 -Release: 4 +Release: 5 License: LGPL-2.0+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/ @@ -86,6 +86,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing\ --enable-introspection\ --disable-encoding\ --disable-examples\ + --disable-adder\ +%if "%{?profile}" == "tv" + --enable-tv\ +%endif --enable-use-tbmbuf make %{?_smp_mflags} @@ -106,14 +110,16 @@ mv %{name}-%{gst_branch}.lang %{name}.lang %defattr(-, root, root) %license COPYING.LIB +%if "%{?profile}" != "tv" %{_bindir}/gst-device-monitor-%{gst_branch} %{_bindir}/gst-discoverer-%{gst_branch} %{_bindir}/gst-play-%{gst_branch} +%endif %define _lib_gstreamer_dir %{_libdir}/gstreamer-%{gst_branch} %define _libdebug_dir %{_libdir}/debug/usr/lib -%{_lib_gstreamer_dir}/libgstadder.so +#%{_lib_gstreamer_dir}/libgstadder.so %{_lib_gstreamer_dir}/libgstalsa.so %{_lib_gstreamer_dir}/libgstapp.so %{_lib_gstreamer_dir}/libgstaudioconvert.so @@ -134,9 +140,11 @@ mv %{name}-%{gst_branch}.lang %{name}.lang %{_lib_gstreamer_dir}/libgstvolume.so %{_lib_gstreamer_dir}/libgstvorbis.so +%if "%{?profile}" != "tv" %doc %{_mandir}/man1/gst-device-monitor-* %doc %{_mandir}/man1/gst-discoverer-* %doc %{_mandir}/man1/gst-play-* +%endif %if %{with x} %{_libdir}/gstreamer-%{gst_branch}/libgstximagesink.so -- 2.7.4