From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] libmediastreamer: a multimedia streaming engine for linphone
Date: Fri, 6 Apr 2012 07:51:51 +0200 [thread overview]
Message-ID: <20120406055151.GX28453@pengutronix.de> (raw)
In-Reply-To: <201204041007.30577.jbe@pengutronix.de>
On Wed, Apr 04, 2012 at 10:07:30AM +0200, Juergen Beisert wrote:
> Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
>
> diff --git a/patches/mediastreamer-2.8.0/add_floating_cap_guessed.diff b/patches/mediastreamer-2.8.0/add_floating_cap_guessed.diff
> new file mode 100644
> index 0000000..e2d69b3
> --- /dev/null
> +++ b/patches/mediastreamer-2.8.0/add_floating_cap_guessed.diff
> @@ -0,0 +1,55 @@
> +From: Juergen Beisert <jbe@pengutronix.de>
> +Subject: Read floating/fixed point arithemetics from the compiler
> +
> +The user can still force fixed or floating point usage.
> +
> +Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
> +---
> + configure.ac | 33 +++++++++++++++++++--------------
> + 1 file changed, 19 insertions(+), 14 deletions(-)
> +
> +Index: mediastreamer-2.8.0/configure.ac
> +===================================================================
> +--- mediastreamer-2.8.0.orig/configure.ac
> ++++ mediastreamer-2.8.0/configure.ac
> +@@ -224,21 +224,26 @@ AC_ARG_ENABLE(fixed_point,
> + esac],[fixed_point=guess])
> +
> + if test "$fixed_point" = "guess" ; then
> +- AC_MSG_CHECKING([whether fixed point arithmetic is preferred])
> +- case ${target_cpu}${host_cpu} in
> +- *bfin*)
> +- fixed_point=true
> +- ;;
> +- *arm*)
> +- fixed_point=true
> +- ;;
> +- *)
> +- fixed_point=false
> +- ;;
> +- esac
> +- AC_MSG_RESULT([$fixed_point])
> ++#
> ++# If the compiler comes with software float support, we guess using
> ++# fixed point is more performant on this architecture
> ++#
> ++AC_MSG_CHECKING(for fix point arithmetics restriction)
> ++AC_COMPILE_IFELSE(
> ++ [AC_LANG_PROGRAM([[]],
> ++ [[
> ++#define HARD_FP_SUPPORT 1
> ++#if defined(__SOFTFP__)
> ++# undef HARD_FP_SUPPORT
> ++#endif
> ++int foo = HARD_FP_SUPPORT;
> ++ ]])],
> ++ [fixed_point=false],
> ++ [fixed_point=true],
> ++ [fixed point arithmetics])
> ++AC_MSG_RESULT(${fixed_point})
> ++
> + fi
> +-
> +
> + if test x$fixed_point = xtrue ; then
> + MS_PUBLIC_CFLAGS="$MS_PUBLIC_CFLAGS -DMS_FIXED_POINT"
> diff --git a/patches/mediastreamer-2.8.0/autogen.sh b/patches/mediastreamer-2.8.0/autogen.sh
> new file mode 120000
> index 0000000..9f8a4cb
> --- /dev/null
> +++ b/patches/mediastreamer-2.8.0/autogen.sh
> @@ -0,0 +1 @@
> +../autogen.sh
> \ No newline at end of file
> diff --git a/patches/mediastreamer-2.8.0/series b/patches/mediastreamer-2.8.0/series
> new file mode 100644
> index 0000000..2f2bc7e
> --- /dev/null
> +++ b/patches/mediastreamer-2.8.0/series
> @@ -0,0 +1 @@
> +add_floating_cap_guessed.diff
> diff --git a/rules/libmediastreamer.in b/rules/libmediastreamer.in
> new file mode 100644
> index 0000000..3aa990a
> --- /dev/null
> +++ b/rules/libmediastreamer.in
> @@ -0,0 +1,56 @@
> +## SECTION=system_libraries
> +
> +menuconfig LIBMEDIASTREAMER
> + tristate
> + prompt "libmediastreamer "
> + select LIBORTP
> + select SPEEX if LIBMEDIASTREAMER_SPEEX
> + select ALSA_LIB if LIBMEDIASTREAMER_ALSA
> + select LIBC_PTHREAD
> + select LIBC_M
> + select LIBC_RT
> + select LIBC_DL
> + select GCCLIBS_GCC_S
> + select GCCLIBS_CXX
> +# this only to re-generate the configure.ac
> + select HOST_GETTEXT
> + select HOST_INTLTOOL
> + help
> + Multimedia streaming engine for linphone
> +
> +if LIBMEDIASTREAMER
> +
> +config LIBMEDIASTREAMER_DEBUG
> + bool
> + prompt "enable debug"
> + help
> + Make the library larger and more noisy.
> +
> +config LIBMEDIASTREAMER_ALSA
> + bool
> + default y
> + help
> + Only *with* ALSA tested yet.
> +
> +config LIBMEDIASTREAMER_OSS
> + bool
> + help
> + Only *without* OSS tested yet.
> +
> +config LIBMEDIASTREAMER_SPEEX
> + bool
> + default y
> + help
> + Only *with* SPEEX tested yet.
> +
> +config LIBMEDIASTREAMER_FFMPEG
> + bool
> + help
> + Only *without* ffmpeg tested yet.
> +
> +config LIBMEDIASTREAMER_FIXED_FPOINT
> + bool
> + help
> + Force using of fixed point arithmetic
> +
> +endif
> diff --git a/rules/libmediastreamer.make b/rules/libmediastreamer.make
> new file mode 100644
> index 0000000..7cf9df8
> --- /dev/null
> +++ b/rules/libmediastreamer.make
> @@ -0,0 +1,96 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2011 by Juergen Beisert <jbe@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBMEDIASTREAMER) += libmediastreamer
> +
> +#
> +# Paths and names
> +#
> +LIBMEDIASTREAMER_VERSION:= 2.8.0
2.8.2 maybe?
> +LIBMEDIASTREAMER_MD5 := e5744a02f9d3788df4bde730bb00d832
> +LIBMEDIASTREAMER := mediastreamer-$(LIBMEDIASTREAMER_VERSION)
> +LIBMEDIASTREAMER_SUFFIX := tgz
tar.gz
Michael
> +LIBMEDIASTREAMER_URL := http://download.savannah.gnu.org/releases/linphone/mediastreamer/$(LIBMEDIASTREAMER).$(LIBMEDIASTREAMER_SUFFIX)
> +LIBMEDIASTREAMER_SOURCE := $(SRCDIR)/$(LIBMEDIASTREAMER).$(LIBMEDIASTREAMER_SUFFIX)
> +LIBMEDIASTREAMER_DIR := $(BUILDDIR)/$(LIBMEDIASTREAMER)
> +LIBMEDIASTREAMER_LICENSE:= GPLv2
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +LIBMEDIASTREAMER_CONF_TOOL := autoconf
> +LIBMEDIASTREAMER_CONF_OPT := $(CROSS_AUTOCONF_USR) \
> + --disable-strict \
> + $(GLOBAL_IPV6_OPTION) \
> + --enable-shared \
> + --disable-static \
> + --$(call ptx/endis, PTXCONF_LIBMEDIASTREAMER_DEBUG)-debug \
> + --disable-nls \
> + --disable-rpath \
> + --$(call ptx/endis, PTXCONF_LIBMEDIASTREAMER_OSS)-oss \
> + --$(call ptx/endis, PTXCONF_LIBMEDIASTREAMER_ALSA)-alsa \
> + --disable-artsc \
> + --disable-portaudio \
> + --disable-macsnd \
> + --disable-macaqsnd \
> + --disable-pulseaudio \
> + --$(call ptx/endis, PTXCONF_LIBMEDIASTREAMER_SPEEX)-speex \
> + --disable-gsm \
> + --disable-spandsp \
> + --disable-video \
> + --$(call ptx/endis, PTXCONF_LIBMEDIASTREAMER_FFMPEG)-ffmpeg \
> + --disable-sdl \
> + --disable-x11 \
> + --disable-xv \
> + --disable-theora \
> + --disable-vp8 \
> + --enable-external-ortp \
> + --disable-libv4l1 \
> + --disable-libv4l2 \
> + --disable-tests \
> + ac_cv_path_DOXYGEN=false
> +
> +# force fixed point or let the configure guess it
> +# enable = force fixed point
> +# disable = force floating point
> +# "not given" = guess from compiler's settings
> +ifdef PTXCONF_LIBMEDIASTREAMER_FIXED_FPOINT
> +LIBMEDIASTREAMER_CONF_OPT += --enable-fixed-point
> +endif
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libmediastreamer.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, libmediastreamer)
> + @$(call install_fixup, libmediastreamer,PRIORITY,optional)
> + @$(call install_fixup, libmediastreamer,SECTION,base)
> + @$(call install_fixup, libmediastreamer,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
> + @$(call install_fixup, libmediastreamer,DESCRIPTION,"multimedia streaming engine")
> +
> + @$(call install_copy, libmediastreamer, 0, 0, 0755, /usr/lib/mediastreamer)
> + @$(call install_copy, libmediastreamer, 0, 0, 0755, /usr/lib/mediastreamer/plugins)
> + @$(call install_lib, libmediastreamer, 0, 0, 0644, libmediastreamer)
> +
> + @$(call install_finish, libmediastreamer)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
>
> --
> Pengutronix e.K. | Juergen Beisert |
> Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2012-04-06 5:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 8:07 Juergen Beisert
2012-04-06 5:51 ` Michael Olbrich [this message]
2012-04-06 9:47 ` Juergen Beisert
2012-04-06 20:10 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120406055151.GX28453@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox