summaryrefslogtreecommitdiff
path: root/media-sound/toolame
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/toolame
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/toolame')
-rw-r--r--media-sound/toolame/Manifest8
-rw-r--r--media-sound/toolame/files/toolame-02l-gentoo.diff69
-rw-r--r--media-sound/toolame/files/toolame-02l-uint.patch27
-rw-r--r--media-sound/toolame/files/toolame-02l-uint32_t.patch18
-rw-r--r--media-sound/toolame/metadata.xml11
-rw-r--r--media-sound/toolame/toolame-02l-r4.ebuild35
6 files changed, 168 insertions, 0 deletions
diff --git a/media-sound/toolame/Manifest b/media-sound/toolame/Manifest
new file mode 100644
index 000000000000..6924fb02ca71
--- /dev/null
+++ b/media-sound/toolame/Manifest
@@ -0,0 +1,8 @@
+AUX toolame-02l-gentoo.diff 2188 SHA256 a7d2b7524c52a68952cd060e67a61cd78e9ecb25e63af480347f81652d3b95de SHA512 1d2c19fa4607f67f2fc8b6384d80fdf52e21438ecfecc6b2e2a0cbb84abd7019b340196324f1e43f81f698be96a2cccf970890908d8c05415b82ecb516da2484 WHIRLPOOL d629c63414de05255342d7ecc2c30cb4271687f43d6f66991de8f253234733de7205ca16f313bbb4f8098831637b27c384eec31a4fb1c1cf96b751f89d95d1af
+AUX toolame-02l-uint.patch 950 SHA256 d45a1564663337b0f7b50120f3491542b9ceaf6a003b73d786f9f41f01d78dfa SHA512 ef81fd06b5371ab9fa16037a3cb06ae4dbc9cf7f74c2c1553a06d40a9974ee509ec4f63f6dd5c7b21edb6763c5ea8e43273e98699c73013df430d7e008049f1d WHIRLPOOL e57d6847d07bb19a72ec440eb341b7c9f91db650c0b30fa4987ace6c89460c5078cdc62fdeab48439bdeaf5430cfc2036649aee7e26f89162e5ac72459cb81e5
+AUX toolame-02l-uint32_t.patch 624 SHA256 e76d347149cb0df2b75d65c448070b04c9f9e7c876d4b54131ef8deeb2ec23cb SHA512 cfde68fe55830f97caf38defc186aa6e95ee3c513e22af4aa06c89e1e071d2caadf22479e260c631442647c43b733aa13bedfca885f68cccf1187fad8aeccb05 WHIRLPOOL 44f9789acdc490b818312f1f78a7cdf3fced34cbf43233d421fc36333ce3309f0e64500e7f2d93738a8832d67cd04610936be4de0660678c585c85f244871dca
+DIST toolame-02l.tgz 127493 SHA256 3b95cd2504bceac4aab2fca03bb3b5974d1d44b5afdd8eb4cc0f0899521bffc4 SHA512 b88c524e1ad65ef30cfcffb53ab0d3552c916714dbde447d714e90ddf048e481d3b1a33f64081c4accc64a776b009d2737c7ab0863695652f2b0743f44a8055e WHIRLPOOL 95b7dd571d9d3a2243f7e90647560d755838c95f9bbbf982bcecc33c18b0b10ba387f8957667ca5c204fd0c94ac7b443a47bee1123fe625d9507210bc6f6266f
+EBUILD toolame-02l-r4.ebuild 758 SHA256 e70034567054d23feace76f2469512be825534927f3e6fe501909a74da5c0d54 SHA512 97ded645a563dcb5fcc84f29b705b66ed20492784d1a1ffcc6dd0ab36702296892a4b26b6b888d640eddb2822b753ed3f8b560288450110bfbf9d075eeff663b WHIRLPOOL 11b19427a3c8a3b89a910d47dea8aa92c1b2dd68f25829fae38afc2d2f17d8f03e947e34e9b631dda1647810f1021ad2545164e0c5c421584a5c381dec9f0bab
+MISC ChangeLog 2848 SHA256 46fd39375ed45a30db496ee897c619cfe4e6e219633a99bbfbd914037784da36 SHA512 e1f220fbb64f3d69cad96cdf85d2d14b02f4264d9890d820e4497ddb6cbb16c5cbea4a8ae64ae9fb540cfbf6c7e83a8a13be10aecb672aa7acf517f8f65175e6 WHIRLPOOL ae91a5eeb981402bccb467799194366c9eca202bc7efc4d811fb74d01953d3c6de81ca9750a32c946e97281d8cbb14fc21dc72d7311cf76ee4df2aadb9aaa491
+MISC ChangeLog-2015 4034 SHA256 dc08f42bd769a612edffcaa092c93cd4378c48749816927b9e32874e4b41bac6 SHA512 217e3afce18bcd91c8548b86ad8aa518782f535c53f8c9b03f30bd11d8ec2064c5e012c49590d2abe7eb800043868c6496ccf14d30b9f37eb5dfada5b6ceb859 WHIRLPOOL 0d9e9a0f642ebf1ff41dc138a0ce599609f3bb878a9f7bfa22e6120dae94f70f3d67e14791bb5e8c2bdd1801ffb101a0e99274685a46a208a100b6cd45cce36c
+MISC metadata.xml 330 SHA256 55df7138e4f74f20b036fbe83f24355c450994809c50b3769751d749e4dff8d6 SHA512 e4b6308fa4241c592a768a0a21629e0b0de427c39c8d0ef9c26e093e029de51e55a28ae547b93a584c373a1f29034069198cff2667d647238e20bd4b4f7b8b2e WHIRLPOOL 94820accf0e2c931e06ad00a0ed964664a75970330368d6ecc292cb6548bb2ca70b09df2e23271b849a30cb48c4917ba476e1a01ed09ab9dc4f904b97fde6a13
diff --git a/media-sound/toolame/files/toolame-02l-gentoo.diff b/media-sound/toolame/files/toolame-02l-gentoo.diff
new file mode 100644
index 000000000000..f96020f0a815
--- /dev/null
+++ b/media-sound/toolame/files/toolame-02l-gentoo.diff
@@ -0,0 +1,69 @@
+--- toolame-02l/Makefile 2003-03-02 08:07:02.000000000 +0100
++++ toolame-02l/Makefile.new 2003-04-14 14:00:10.000000000 +0200
+@@ -1,6 +1,3 @@
+-
+-CC = gcc
+-
+ c_sources = \
+ common.c \
+ encode.c \
+@@ -26,37 +23,16 @@
+
+ OBJ = $(c_sources:.c=.o)
+
+-#Uncomment this if you want to do some profiling/debugging
+-#PG = -g -pg
+-PG = -fomit-frame-pointer
+-
+-# Optimize flag. 3 is about as high as you can sanely go with GCC3.2.
+-OPTIM = -O3
+-
+ # These flags are pretty much mandatory
+ REQUIRED = -DNDEBUG -DINLINE=inline
+
+-#pick your architecture
+-ARCH = -march=pentium
+-#Possible x86 architectures
+-#gcc3.2 => i386, i486, i586, i686, pentium, pentium-mmx
+-# pentiumpro, pentium2, pentium3, pentium4, k6, k6-2, k6-3,
+-# athlon, athlon-tbird, athlon-4, athlon-xp and athlon-mp.
+-
+-#TWEAK the hell out of the compile. Some of these are real dodgy
+-# and will cause program instability
+-#TWEAKS = -finline-functions -fexpensive-optimizations -ffast-math \
+-# -malign-double \
+-# -mfancy-math-387 -funroll-loops -funroll-all-loops -pipe \
+-# -fschedule-insns2 -fno-strength-reduce
+-
+ #Set a stack of warnings to overcome my atrocious coding style . MFC.
+ WARNINGS = -Wall
+ WARNINGS2 = -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wredundant-decls
+
+ NEW_02L_FIXES = -DNEWENCODE -DNEWATAN
+
+-CC_SWITCHES = $(OPTIM) $(REQUIRED) $(ARCH) $(PG) $(TWEAKS) $(WARNINGS) $(NEW_02L_FIXES)
++CC_SWITCHES = $(CFLAGS) $(REQUIRED) $(WARNINGS) $(NEW_02L_FIXES)
+
+ PGM = toolame
+
+@@ -75,16 +51,16 @@
+ $(CC) $(CC_SWITCHES) -c $< -o $@
+
+ $(PGM): $(OBJ) Makefile
+- $(CC) $(PG) -o $(PGM) $(OBJ) $(LIBS)
++ $(CC) $(LDFLAGS) -o $(PGM) $(OBJ) $(LIBS)
+
+ clean:
+- -rm $(OBJ) $(DEP)
++ -rm $(OBJ) $(DEP) 2>/dev/null
+
+ megaclean:
+- -rm $(OBJ) $(DEP) $(PGM) \#*\# *~
++ -rm $(OBJ) $(DEP) $(PGM) \#*\# *~ 2>/dev/null
+
+ distclean:
+- -rm $(OBJ) $(DEP) $(PGM) \#* *~ gmon.out gprof* core *shit* *.wav *.mp2 *.c.* *.mp2.* *.da *.h.* *.d *.mp3 *.pcm *.wav logfile
++ -rm $(OBJ) $(DEP) $(PGM) \#* *~ gmon.out gprof* core *shit* *.wav *.mp2 *.c.* *.mp2.* *.da *.h.* *.d *.mp3 *.pcm *.wav logfile 2>/dev/null
+
+ tags: TAGS
+
diff --git a/media-sound/toolame/files/toolame-02l-uint.patch b/media-sound/toolame/files/toolame-02l-uint.patch
new file mode 100644
index 000000000000..619c98bb4547
--- /dev/null
+++ b/media-sound/toolame/files/toolame-02l-uint.patch
@@ -0,0 +1,27 @@
+diff -aur toolame-02l/audio_read.c toolame-02l-fixed/audio_read.c
+--- toolame-02l/audio_read.c 2003-03-01 17:18:30.000000000 -0800
++++ toolame-02l-fixed/audio_read.c 2005-04-19 22:32:41.288998770 -0700
+@@ -436,7 +436,7 @@
+
+ if (pcm_aiff_data->sampleSize != sizeof (short) * BITS_IN_A_BYTE) {
+ fprintf (stderr, "Sound data is not %d bits in \"%s\".\n",
+- sizeof (short) * BITS_IN_A_BYTE, file_name);
++ (int)(sizeof (short) * BITS_IN_A_BYTE), file_name);
+ exit (1);
+ }
+
+diff -aur toolame-02l/fft.c toolame-02l-fixed/fft.c
+--- toolame-02l/fft.c 2003-03-01 23:14:45.000000000 -0800
++++ toolame-02l-fixed/fft.c 2005-04-19 22:47:49.019986989 -0700
+@@ -1190,9 +1190,9 @@
+ static FLOAT atan_t[ATANSIZE];
+
+ INLINE FLOAT atan_table(FLOAT y, FLOAT x) {
+- int index;
++ unsigned int index;
+
+- index = (int)(ATANSCALE * fabs(y/x));
++ index = (unsigned int)(ATANSCALE * fabs(y/x));
+ if (index>=ATANSIZE)
+ index = ATANSIZE-1;
+
diff --git a/media-sound/toolame/files/toolame-02l-uint32_t.patch b/media-sound/toolame/files/toolame-02l-uint32_t.patch
new file mode 100644
index 000000000000..624c342781d4
--- /dev/null
+++ b/media-sound/toolame/files/toolame-02l-uint32_t.patch
@@ -0,0 +1,18 @@
+diff -ur toolame-02l.orig/audio_read.c toolame-02l/audio_read.c
+--- toolame-02l.orig/audio_read.c 2003-03-02 03:18:30.000000000 +0200
++++ toolame-02l/audio_read.c 2009-05-30 15:24:41.000000000 +0300
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include "common.h"
+@@ -329,7 +330,7 @@
+ }
+ }
+ if (NativeByteOrder == order_littleEndian) {
+- samplerate = *(unsigned long *) (&wave_header_buffer[24]);
++ samplerate = *(uint32_t *)(&wave_header_buffer[24]);
+ } else {
+ samplerate = wave_header_buffer[27] +
+ (wave_header_buffer[26] << 8) +
diff --git a/media-sound/toolame/metadata.xml b/media-sound/toolame/metadata.xml
new file mode 100644
index 000000000000..b24fd1523aab
--- /dev/null
+++ b/media-sound/toolame/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">toolame</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/toolame/toolame-02l-r4.ebuild b/media-sound/toolame/toolame-02l-r4.ebuild
new file mode 100644
index 000000000000..685ff590e1c3
--- /dev/null
+++ b/media-sound/toolame/toolame-02l-r4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="tooLAME - an optimized mpeg 1/2 layer 2 audio encoder"
+HOMEPAGE="http://www.planckenergy.com"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-gentoo.diff"
+ "${FILESDIR}/${P}-uint.patch"
+ "${FILESDIR}/${P}-uint32_t.patch"
+)
+
+src_prepare() {
+ # fix #571774 by restoring pre-GCC5 inline semantics
+ append-cflags -std=gnu89
+
+ append-lfs-flags
+ tc-export CC
+
+ default
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README HISTORY FUTURE html/* text/*
+}