works for qt5-base
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.export("CFLAGS", "%s -D_FILE_OFFSET_BITS=64" % get.CFLAGS())
|
||||
|
||||
pisitools.dosed("libspeex/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")
|
||||
|
||||
options = "--enable-ogg \
|
||||
--enable-sse \
|
||||
--disable-static"
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
# ogg only affects the executables so it's safe to disable for emul32
|
||||
options += " --libdir=/usr/lib32 --disable-ogg"
|
||||
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
|
||||
|
||||
autotools.autoreconf("-vif")
|
||||
autotools.configure(options)
|
||||
|
||||
# Remove rpath from speexenc and speexdec
|
||||
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
|
||||
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s docdir=/usr/share/doc/speex" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("README")
|
||||
@@ -0,0 +1,32 @@
|
||||
Index: speex-1.2rc1/configure.ac
|
||||
===================================================================
|
||||
--- speex-1.2rc1.orig/configure.ac
|
||||
+++ speex-1.2rc1/configure.ac
|
||||
@@ -112,9 +112,6 @@ AC_MSG_RESULT($has_visibility)
|
||||
|
||||
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
|
||||
|
||||
-XIPH_PATH_OGG([src="src"], [src=""])
|
||||
-AC_SUBST(src)
|
||||
-
|
||||
AC_CHECK_LIB(m, sin)
|
||||
|
||||
# Check for getopt_long; if not found, use included source.
|
||||
@@ -139,10 +136,16 @@ AC_ARG_ENABLE(valgrind, [ --enable-valg
|
||||
AC_DEFINE([ENABLE_VALGRIND], , [Enable valgrind extra checks])
|
||||
fi])
|
||||
|
||||
+AC_ARG_ENABLE(ogg, [ --enable-ogg Enable OGG support], [if test "$enableval" = yes; then
|
||||
+ XIPH_PATH_OGG([src="src"], [src=""])
|
||||
+ AC_SUBST(src)
|
||||
+fi
|
||||
+])
|
||||
+
|
||||
AC_ARG_ENABLE(sse, [ --enable-sse Enable SSE support], [
|
||||
if test "x$enableval" != xno; then
|
||||
has_sse=yes
|
||||
-CFLAGS="$CFLAGS -O3 -msse"
|
||||
+CFLAGS="$CFLAGS -msse"
|
||||
else
|
||||
has_sse=no
|
||||
fi
|
||||
@@ -0,0 +1,83 @@
|
||||
Index: speex-1.2beta3/libspeex/resample.c
|
||||
===================================================================
|
||||
--- speex-1.2beta3.orig/libspeex/resample.c
|
||||
+++ speex-1.2beta3/libspeex/resample.c
|
||||
@@ -130,7 +130,7 @@ struct SpeexResamplerState_ {
|
||||
int out_stride;
|
||||
} ;
|
||||
|
||||
-static double kaiser12_table[68] = {
|
||||
+static const double kaiser12_table[68] = {
|
||||
0.99859849, 1.00000000, 0.99859849, 0.99440475, 0.98745105, 0.97779076,
|
||||
0.96549770, 0.95066529, 0.93340547, 0.91384741, 0.89213598, 0.86843014,
|
||||
0.84290116, 0.81573067, 0.78710866, 0.75723148, 0.72629970, 0.69451601,
|
||||
@@ -144,7 +144,7 @@ static double kaiser12_table[68] = {
|
||||
0.00105297, 0.00069463, 0.00043489, 0.00025272, 0.00013031, 0.0000527734,
|
||||
0.00001000, 0.00000000};
|
||||
/*
|
||||
-static double kaiser12_table[36] = {
|
||||
+static const double kaiser12_table[36] = {
|
||||
0.99440475, 1.00000000, 0.99440475, 0.97779076, 0.95066529, 0.91384741,
|
||||
0.86843014, 0.81573067, 0.75723148, 0.69451601, 0.62920216, 0.56287762,
|
||||
0.49704014, 0.43304576, 0.37206735, 0.31506490, 0.26276832, 0.21567274,
|
||||
@@ -152,7 +152,7 @@ static double kaiser12_table[36] = {
|
||||
0.03111947, 0.02127838, 0.01402878, 0.00886058, 0.00531256, 0.00298291,
|
||||
0.00153438, 0.00069463, 0.00025272, 0.0000527734, 0.00000500, 0.00000000};
|
||||
*/
|
||||
-static double kaiser10_table[36] = {
|
||||
+static const double kaiser10_table[36] = {
|
||||
0.99537781, 1.00000000, 0.99537781, 0.98162644, 0.95908712, 0.92831446,
|
||||
0.89005583, 0.84522401, 0.79486424, 0.74011713, 0.68217934, 0.62226347,
|
||||
0.56155915, 0.50119680, 0.44221549, 0.38553619, 0.33194107, 0.28205962,
|
||||
@@ -160,7 +160,7 @@ static double kaiser10_table[36] = {
|
||||
0.05731132, 0.04193980, 0.02979584, 0.02044510, 0.01345224, 0.00839739,
|
||||
0.00488951, 0.00257636, 0.00115101, 0.00035515, 0.00000000, 0.00000000};
|
||||
|
||||
-static double kaiser8_table[36] = {
|
||||
+static const double kaiser8_table[36] = {
|
||||
0.99635258, 1.00000000, 0.99635258, 0.98548012, 0.96759014, 0.94302200,
|
||||
0.91223751, 0.87580811, 0.83439927, 0.78875245, 0.73966538, 0.68797126,
|
||||
0.63451750, 0.58014482, 0.52566725, 0.47185369, 0.41941150, 0.36897272,
|
||||
@@ -168,7 +168,7 @@ static double kaiser8_table[36] = {
|
||||
0.10562887, 0.08273982, 0.06335451, 0.04724088, 0.03412321, 0.02369490,
|
||||
0.01563093, 0.00959968, 0.00527363, 0.00233883, 0.00050000, 0.00000000};
|
||||
|
||||
-static double kaiser6_table[36] = {
|
||||
+static const double kaiser6_table[36] = {
|
||||
0.99733006, 1.00000000, 0.99733006, 0.98935595, 0.97618418, 0.95799003,
|
||||
0.93501423, 0.90755855, 0.87598009, 0.84068475, 0.80211977, 0.76076565,
|
||||
0.71712752, 0.67172623, 0.62508937, 0.57774224, 0.53019925, 0.48295561,
|
||||
@@ -177,19 +177,19 @@ static double kaiser6_table[36] = {
|
||||
0.05031820, 0.03607231, 0.02432151, 0.01487334, 0.00752000, 0.00000000};
|
||||
|
||||
struct FuncDef {
|
||||
- double *table;
|
||||
+ const double *table;
|
||||
int oversample;
|
||||
};
|
||||
|
||||
-static struct FuncDef _KAISER12 = {kaiser12_table, 64};
|
||||
+static const struct FuncDef _KAISER12 = {kaiser12_table, 64};
|
||||
#define KAISER12 (&_KAISER12)
|
||||
/*static struct FuncDef _KAISER12 = {kaiser12_table, 32};
|
||||
#define KAISER12 (&_KAISER12)*/
|
||||
-static struct FuncDef _KAISER10 = {kaiser10_table, 32};
|
||||
+static const struct FuncDef _KAISER10 = {kaiser10_table, 32};
|
||||
#define KAISER10 (&_KAISER10)
|
||||
-static struct FuncDef _KAISER8 = {kaiser8_table, 32};
|
||||
+static const struct FuncDef _KAISER8 = {kaiser8_table, 32};
|
||||
#define KAISER8 (&_KAISER8)
|
||||
-static struct FuncDef _KAISER6 = {kaiser6_table, 32};
|
||||
+static const struct FuncDef _KAISER6 = {kaiser6_table, 32};
|
||||
#define KAISER6 (&_KAISER6)
|
||||
|
||||
struct QualityMapping {
|
||||
@@ -197,7 +197,7 @@ struct QualityMapping {
|
||||
int oversample;
|
||||
float downsample_bandwidth;
|
||||
float upsample_bandwidth;
|
||||
- struct FuncDef *window_func;
|
||||
+ const struct FuncDef *window_func;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>speex</Name>
|
||||
<Homepage>http://www.speex.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>xiph</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Audio compression format designed for speech and its converter application</Summary>
|
||||
<Description>speex is an Open Source/Free Software patent-free audio compression format designed for speech. The Speex Project aims to lower the barrier of entry for voice applications by providing a free alternative to expensive proprietary speech codecs. The package also contains a command-line tool to convert to/from Speex codec.</Description>
|
||||
<Archive sha1sum="52daa72572e844e5165315e208da539b2a55c5eb" type="targz">http://downloads.us.xiph.org/releases/speex/speex-1.2rc1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libogg-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">constant.patch</Patch>
|
||||
<Patch level="1">configure.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>speex</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libogg</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>speex-devel</Name>
|
||||
<Summary>Development files for speex</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">speex</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/share/aclocal</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>speex-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32-bit shared libraries for speex</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">speex</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-20</Date>
|
||||
<Version>1.2_rc1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-03-01</Date>
|
||||
<Version>1.2_rc1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>speex</Name>
|
||||
<Summary xml:lang="tr">Konuşma için tasarlanmış bir ses sıkıştırma biçimi kütüphanesi ve araçları</Summary>
|
||||
<Description xml:lang="tr">speex, konuşma için tasarlanmış özgür ve açık kaynaklı bir ses sıkıştırma biçimidir. Paket kütüphanenin yanında speex biçimine/biçiminden dönüştürme yapmak için gerekli araçları içerir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>speex-devel</Name>
|
||||
<Summary xml:lang="tr">speex için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>speex-32bit</Name>
|
||||
<Summary xml:lang="tr">speex için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user