From 4cf8fbb6f138203019c67df2db9b48f2b02cae79 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 8 Dec 2012 22:18:30 +0100 Subject: add gst-mixer-applet (moved from mate-applets package) it will builds only if gstreamer is enabled --- configure.ac | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6d73426..6ec2ec8 100644 --- a/configure.ac +++ b/configure.ac @@ -222,6 +222,33 @@ AC_SUBST(GSTMIXER_CFLAGS) AC_SUBST(GSTMIXER_LIBS) AM_CONDITIONAL(HAVE_GSTMIXER, [test x$have_gstmixer = xyes]) +dnl======================================================================= +dnl gst-mixer-applet +dnl======================================================================= +have_gstmixer_applet=no +if test "x$have_gstmixer" = "xyes"; then + AC_ARG_ENABLE([gst-mixer-applet], + AC_HELP_STRING([--enable-gst-mixer-applet], [Enable the gstreamer-based mixer applet.]), + enable_mixerapplet=$enableval, + enable_mixerapplet=no) + if test "x$enable_mixerapplet" != "xno"; then + have_gstmixer_applet=yes + MIXER_APPLET_DEPS="gstreamer-$GST_MAJORMINOR >= $GST_REQ + gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQ + gstreamer-audio-$GST_MAJORMINOR >= $GST_REQ + mate-desktop-2.0 >= 1.5.0 + ibmatepanelapplet-4.0 >= 1.5.0" + PKG_CHECK_MODULES(MIXER, $GST10_PKGS, have_gst_mixer_applet_deps=yes, have_gst_mixer_applet_deps=no) + if test "x$have_gst_mixer_applet_deps" = "xno"; then + have_gstmixer_applet=no + enable_mixerapplet=no + AC_MSG_ERROR([Mixer applet explicitly requested but a compatible gstreamer version was not found]) + fi + fi + AC_SUBST(MIXERAPPLET_CFLAGS) + AC_SUBST(MIXERAPPLET_LIBS) +fi +AM_CONDITIONAL(HAVE_GSTMIXER_APPLET, test "x$have_gstmixer_applet" = "xyes") dnl --------------------------------------------------------------------------- dnl - Finish @@ -309,6 +336,8 @@ gst-mixer/src/Makefile gst-mixer/pixmaps/Makefile gst-mixer/doc/Makefile gst-mixer/mate-volume-control.desktop.in +gst-mixer-applet/Makefile +gst-mixer-applet/docs/Makefile ]) AC_OUTPUT @@ -325,6 +354,8 @@ echo " CFLAGS: ${CFLAGS} PulseAudio Volume Control $have_pulseaudio + GStreamer mixer: $have_gstmixer + GStreamer mixer applet: $have_gstmixer_applet " -- cgit v1.2.1