From patchwork Sun Apr 26 15:00:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 464704 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 56119140150 for ; Mon, 27 Apr 2015 01:01:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4FDD6304FB; Sun, 26 Apr 2015 15:01:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vwz1VHbrTRZp; Sun, 26 Apr 2015 15:01:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3E9D127287; Sun, 26 Apr 2015 15:01:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 481141C2453 for ; Sun, 26 Apr 2015 15:01:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4412789F1A for ; Sun, 26 Apr 2015 15:01:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y3aQcZVjidLJ for ; Sun, 26 Apr 2015 15:01:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) by hemlock.osuosl.org (Postfix) with ESMTPS id EA21589F22 for ; Sun, 26 Apr 2015 15:01:10 +0000 (UTC) Received: from fwd10.aul.t-online.de (fwd10.aul.t-online.de [172.20.26.152]) by mailout06.t-online.de (Postfix) with SMTP id F2A0614A42 for ; Sun, 26 Apr 2015 17:01:08 +0200 (CEST) Received: from fli4l.lan.fli4l (VajDiaZc8hdbPlywWdazqka+2gL79PPty9Qks3qSaCBXcE44S+qdUp+fhMKLCNbw4U@[87.146.216.185]) by fwd10.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YmO3G-0KtALw0; Sun, 26 Apr 2015 17:00:58 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:40411) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1YmO3D-0000xZ-1H; Sun, 26 Apr 2015 17:00:58 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 26 Apr 2015 17:00:51 +0200 Message-Id: <1430060451-4075-4-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1430060451-4075-1-git-send-email-bernd.kuhls@t-online.de> References: <1430060451-4075-1-git-send-email-bernd.kuhls@t-online.de> X-ID: VajDiaZc8hdbPlywWdazqka+2gL79PPty9Qks3qSaCBXcE44S+qdUp+fhMKLCNbw4U X-TOI-MSGID: 38d87d2b-8c2a-47c9-86f4-d3fd93fe061a Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 3/3] package/libspandsp: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Bernd Kuhls --- package/Config.in | 1 + package/libspandsp/0001-fix-compiler-opts.patch | 23 +++++++++++++++++++++ package/libspandsp/Config.in | 9 ++++++++ package/libspandsp/libspandsp.hash | 2 ++ package/libspandsp/libspandsp.mk | 25 +++++++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 package/libspandsp/0001-fix-compiler-opts.patch create mode 100644 package/libspandsp/Config.in create mode 100644 package/libspandsp/libspandsp.hash create mode 100644 package/libspandsp/libspandsp.mk diff --git a/package/Config.in b/package/Config.in index 2a06a3d..d47b787 100644 --- a/package/Config.in +++ b/package/Config.in @@ -682,6 +682,7 @@ menu "Audio/Sound" source "package/libsidplay2/Config.in" source "package/libsndfile/Config.in" source "package/libsoxr/Config.in" + source "package/libspandsp/Config.in" source "package/libvorbis/Config.in" source "package/mp4v2/Config.in" source "package/opencore-amr/Config.in" diff --git a/package/libspandsp/0001-fix-compiler-opts.patch b/package/libspandsp/0001-fix-compiler-opts.patch new file mode 100644 index 0000000..c3bd800 --- /dev/null +++ b/package/libspandsp/0001-fix-compiler-opts.patch @@ -0,0 +1,23 @@ +Fix bfin compilation + +cc1: error: unrecognized command line option "-Wunused-but-set-variable" + +using this defconfig + +BR2_bfin=y +BR2_PACKAGE_LIBSPANDSP=y + +Signed-off-by: Bernd Kuhls + +diff -uNr spandsp-0.0.6.org/configure.ac spandsp-0.0.6/configure.ac +--- spandsp-0.0.6.org/configure.ac 2014-08-09 10:19:27.000000000 +0200 ++++ spandsp-0.0.6/configure.ac 2015-04-25 17:46:27.717349873 +0200 +@@ -337,7 +337,7 @@ + + case "${ax_cv_c_compiler_vendor}" in + gnu) +- COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" ++ COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" + if test "$enable_neon" = "yes" ; then + COMP_VENDOR_CFLAGS="-mfpu=neon -mfloat-abi=hard $COMP_VENDOR_CFLAGS" + fi diff --git a/package/libspandsp/Config.in b/package/libspandsp/Config.in new file mode 100644 index 0000000..9a22209 --- /dev/null +++ b/package/libspandsp/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBSPANDSP + bool "libspandsp" + select BR2_PACKAGE_TIFF + help + Spandsp is a library of many DSP functions for telephony. + These range from simple modules, such as DTMF detection, to a + complete software FAX machine. + + http://www.soft-switch.org diff --git a/package/libspandsp/libspandsp.hash b/package/libspandsp/libspandsp.hash new file mode 100644 index 0000000..3bd7fa6 --- /dev/null +++ b/package/libspandsp/libspandsp.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 6a86ccf68c2af46c1f98334b8e300c75df1be39b5620d689285c35167737c913 spandsp-20140809.tar.gz diff --git a/package/libspandsp/libspandsp.mk b/package/libspandsp/libspandsp.mk new file mode 100644 index 0000000..b543a1d --- /dev/null +++ b/package/libspandsp/libspandsp.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# libspandsp +# +################################################################################ + +LIBSPANDSP_VERSION = 20140809 +LIBSPANDSP_SOURCE = spandsp-$(LIBSPANDSP_VERSION).tar.gz +LIBSPANDSP_SITE = http://www.soft-switch.org/downloads/spandsp/snapshots +LIBSPANDSP_LICENSE = LGPL-2.1 +LIBSPANDSP_LICENSE_FILES = COPYING +LIBSPANDSP_INSTALL_STAGING = YES +LIBSPANDSP_AUTORECONF = YES + +# Fixes broken gcc +# http://thread.gmane.org/gmane.linux.lib.musl.general/2468/ +LIBSPANDSP_CONF_ENV = ac_cv_header_tgmath_h=no + +LIBSPANDSP_DEPENDENCIES = tiff + +ifeq ($(BR2_PACKAGE_JPEG),y) +LIBSPANDSP_DEPENDENCIES += jpeg +endif + +$(eval $(autotools-package))