disable unused plugins with tv featuring
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 3 Jun 2016 05:16:50 +0000 (14:16 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 3 Jun 2016 05:19:23 +0000 (14:19 +0900)
Change-Id: I6c18f77c75d435a7ce17d48eb71e6a138c6654f6

Makefile.am
configure.ac
packaging/gst-plugins-base.spec

index 2ce92e1..a17bab4 100644 (file)
@@ -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
index e29c81f..1213b93 100644 (file)
@@ -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]),
index c01c19b..714e1b6 100644 (file)
@@ -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