mac, ttaenc, alacenc: optional decoders for flacon.

This commit is contained in:
4fury-c3440d8
2023-01-22 19:17:56 +03:00
parent 0a8e81760e
commit 1322b7955d
9 changed files with 239 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import autotools, pisitools
def build():
autotools.make()
def install():
pisitools.dobin("ttaenc")
@@ -0,0 +1,21 @@
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,12 @@
# $Id: Makefile,v 1.4 2007/04/04 00:00:00 root Exp $
#
-CFLAGS = -Wall -O3 -fomit-frame-pointer -funroll-loops \
- -fforce-addr -falign-functions=4 -msse
+CFLAGS += -Wall
TTAENC = ttaenc
INSDIR = /usr/bin
ttaenc: $(patsubst %.c, %.o, $(wildcard *.c))
- gcc $^ -o $@ $(CFLAGS)
-
-%.o: %.c
- gcc -c $(CFLAGS) $<
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
install:
[ -d "$(INSDIR)" ] || mkdir $(INSDIR)
@@ -0,0 +1,13 @@
https://bugs.gentoo.org/721988
--- a/ttaenc.c
+++ b/ttaenc.c
@@ -525,7 +525,7 @@ __inline void memshl (register int *pA, register int *pB) {
*pA = *pB;
}
-__inline void hybrid_filter (fltst *fs, int *in, int mode) {
+static void hybrid_filter (fltst *fs, int *in, int mode) {
register int *pA = fs->dl;
register int *pB = fs->qm;
register int *pM = fs->dx;
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ttaenc</Name>
<Homepage>https://sourceforge.net/projects/tta/</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>GPL-2</License>
<IsA>app</IsA>
<PartOf>multimedia.sound</PartOf>
<Summary>Lossless audio codec.</Summary>
<Description>TTA performs lossless compression on multichannel 8,16 and 24 bits data of the Wav audio files.</Description>
<Archive sha1sum="7bfeb86aeb1d4d5db3adb13cae6015a1c914f682" type="targz">
mirrors://sourceforge/project/tta/tta/ttaenc-src/ttaenc-3.4.1-src.tgz
</Archive>
<BuildDependencies>
<Dependency>libgcc</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level='1'></Patch> -->
<Patch level='1'>gentoo/ttaenc-3.4.1-fix-build-system.patch</Patch>
<Patch level='1'>gentoo/ttaenc-3.4.1-fix-hybrid-filter.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ttaenc</Name>
<RuntimeDependencies>
<!-- <Dependency>libgcc</Dependency> -->
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/ttaenc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2023-01-22</Date>
<Version>3.4.1</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>