From 82a60255dc55331fbc7ce030f7f6df13c1819b1c Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Fri, 17 Feb 2017 11:46:30 +0300 Subject: [PATCH] speexdsp:First release --- multimedia/sound/speexdsp/actions.py | 34 +++++++++ .../files/speexdsp-fixbuilds-774c87d.patch | 36 ++++++++++ multimedia/sound/speexdsp/pspec.xml | 71 +++++++++++++++++++ 3 files changed, 141 insertions(+) create mode 100644 multimedia/sound/speexdsp/actions.py create mode 100644 multimedia/sound/speexdsp/files/speexdsp-fixbuilds-774c87d.patch create mode 100644 multimedia/sound/speexdsp/pspec.xml diff --git a/multimedia/sound/speexdsp/actions.py b/multimedia/sound/speexdsp/actions.py new file mode 100644 index 0000000000..812a2bec53 --- /dev/null +++ b/multimedia/sound/speexdsp/actions.py @@ -0,0 +1,34 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + options = "--prefix=/usr \ + --sysconfdir=/etc \ + --disable-static" + + if get.buildTYPE() == "emul32": + # ogg only affects the executables so it's safe to disable for emul32 + options += " --libdir=/usr/lib32" + shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) + + autotools.autoreconf("-vi") + autotools.configure(options) + +def build(): + autotools.make() + +def check(): + autotools.make("check") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README*") diff --git a/multimedia/sound/speexdsp/files/speexdsp-fixbuilds-774c87d.patch b/multimedia/sound/speexdsp/files/speexdsp-fixbuilds-774c87d.patch new file mode 100644 index 0000000000..c02ee29bd7 --- /dev/null +++ b/multimedia/sound/speexdsp/files/speexdsp-fixbuilds-774c87d.patch @@ -0,0 +1,36 @@ +diff --git a/configure.ac b/configure.ac +index 2cd2d1e..1de0c23 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -334,6 +334,12 @@ AC_SUBST([USIZE16]) + AC_SUBST([SIZE32]) + AC_SUBST([USIZE32]) + ++AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include "], ++ [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include "]) ++ ++AC_SUBST([INCLUDE_STDINT]) ++ + AC_CONFIG_FILES([ + Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec + include/Makefile include/speex/Makefile speexdsp.pc +diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in +index 02b82fd..5ea7b55 100644 +--- a/include/speex/speexdsp_config_types.h.in ++++ b/include/speex/speexdsp_config_types.h.in +@@ -1,13 +1,7 @@ + #ifndef __SPEEX_TYPES_H__ + #define __SPEEX_TYPES_H__ + +-#if defined HAVE_STDINT_H +-# include +-#elif defined HAVE_INTTYPES_H +-# include +-#elif defined HAVE_SYS_TYPES_H +-# include +-#endif ++@INCLUDE_STDINT@ + + typedef @SIZE16@ spx_int16_t; + typedef @USIZE16@ spx_uint16_t; diff --git a/multimedia/sound/speexdsp/pspec.xml b/multimedia/sound/speexdsp/pspec.xml new file mode 100644 index 0000000000..ad6ba56318 --- /dev/null +++ b/multimedia/sound/speexdsp/pspec.xml @@ -0,0 +1,71 @@ + + + speexdsp + https://www.speex.org/ + + Alihan Öztürk + alihan@pisilinux.org + + BSD + library + DSP library derived from Speex. + DSP library derived from Speex + + glibc-devel + + http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz + + speexdsp-fixbuilds-774c87d.patch + + + + + speexdsp + DSP library derived from Speex. + + glibc + + + /usr/lib/libspeexdsp* + /usr/share/doc + + + + + speexdsp-devel + Development files for speexdsp + + speexdsp + + + /usr/include + /usr/lib/pkgconfig + /usr/lib32/pkgconfig + + + + + speexdsp-32bit + emul32 + 32-bit shared libraries for speexdsp + emul32 + + + + speexdsp + + + /usr/lib32/libspeexdsp* + + + + + + 2017-02-17 + 1.2_rc3 + First release + Alihan Öztürk + alihan@pisilinux.org + + +