2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 11:44:08 +01:00
|
|
|
#
|
|
|
|
# mediastreamer
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 11:44:08 +01:00
|
|
|
|
2013-10-07 22:21:57 +02:00
|
|
|
MEDIASTREAMER_VERSION = 2.9.0
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_SITE = http://download.savannah.nongnu.org/releases/linphone/mediastreamer
|
|
|
|
MEDIASTREAMER_INSTALL_STAGING = YES
|
2013-03-25 11:44:08 +01:00
|
|
|
MEDIASTREAMER_DEPENDENCIES = host-intltool host-pkgconf ortp host-gettext
|
2012-06-05 04:06:33 +02:00
|
|
|
# tests fail linking on some architectures, so disable them
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS = --disable-tests --disable-glx --disable-strict
|
2013-03-25 11:44:08 +01:00
|
|
|
MEDIASTREAMER_LICENSE = GPLv2+
|
|
|
|
MEDIASTREAMER_LICENSE_FILES = COPYING
|
2012-06-03 21:21:28 +02:00
|
|
|
|
2012-06-08 09:43:01 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yy)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-alsa
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += alsa-lib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-alsa
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
2012-06-19 08:57:35 +02:00
|
|
|
# portaudio backend needs speex as well
|
|
|
|
ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEX),yy)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-portaudio
|
2012-06-19 08:57:35 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += portaudio speex
|
2012-06-03 21:21:28 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-portaudio
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-pulseaudio
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += pulseaudio
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-pulseaudio
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SPEEX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-speex
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += speex
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-speex
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-ffmpeg
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += ffmpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-ffmpeg
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-sdl
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += sdl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-sdl
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-23 11:49:19 +02:00
|
|
|
# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support
|
|
|
|
# is only used for SDL output)
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-x11
|
2012-06-06 23:12:17 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-x11
|
2012-06-06 23:12:17 +02:00
|
|
|
endif
|
2012-06-03 21:21:28 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-xv
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += xlib_libXv
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-xv
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-theora
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += libtheora
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-theora
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --enable-libv4l1 --enable-libv4l2
|
2012-06-03 21:21:28 +02:00
|
|
|
MEDIASTREAMER_DEPENDENCIES += libv4l
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
MEDIASTREAMER_CONF_OPTS += --disable-libv4l1 --disable-libv4l2
|
2012-06-03 21:21:28 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|