diff options
author | Samuli Suominen <drac@gentoo.org> | 2007-04-22 11:02:07 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2007-04-22 11:02:07 +0000 |
commit | c00c19ab48df7708fe94c96f9d8dcf6f411e2d88 (patch) | |
tree | 9a69bb0badd6a23340d343cc00cadd67dad7cb0c | |
parent | Added ~ppc64; bug #175164 (diff) | |
download | gentoo-2-c00c19ab48df7708fe94c96f9d8dcf6f411e2d88.tar.gz gentoo-2-c00c19ab48df7708fe94c96f9d8dcf6f411e2d88.tar.bz2 gentoo-2-c00c19ab48df7708fe94c96f9d8dcf6f411e2d88.zip |
Initial commit for bug 174342 as per request from Chainsaw.
(Portage version: 2.1.2.4)
-rw-r--r-- | media-sound/ttaenc/ChangeLog | 11 | ||||
-rw-r--r-- | media-sound/ttaenc/Manifest | 24 | ||||
-rw-r--r-- | media-sound/ttaenc/files/digest-ttaenc-3.3 | 3 | ||||
-rw-r--r-- | media-sound/ttaenc/files/ttaenc-3.3-cflags.patch | 11 | ||||
-rw-r--r-- | media-sound/ttaenc/files/ttaenc-3.3-warnings.patch | 49 | ||||
-rw-r--r-- | media-sound/ttaenc/metadata.xml | 6 | ||||
-rw-r--r-- | media-sound/ttaenc/ttaenc-3.3.ebuild | 35 |
7 files changed, 139 insertions, 0 deletions
diff --git a/media-sound/ttaenc/ChangeLog b/media-sound/ttaenc/ChangeLog new file mode 100644 index 000000000000..44234cbf415b --- /dev/null +++ b/media-sound/ttaenc/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-sound/ttaenc +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/ttaenc/ChangeLog,v 1.1 2007/04/22 11:02:07 drac Exp $ + +*ttaenc-3.3 (22 Apr 2007) + + 22 Apr 2007; Samuli Suominen <drac@gentoo.org> + +files/ttaenc-3.3-cflags.patch, +files/ttaenc-3.3-warnings.patch, + +ttaenc-3.3.ebuild: + Initial commit for bug 174342, thanks to Sergey D. and Tony Vroon. + diff --git a/media-sound/ttaenc/Manifest b/media-sound/ttaenc/Manifest new file mode 100644 index 000000000000..ed531909370c --- /dev/null +++ b/media-sound/ttaenc/Manifest @@ -0,0 +1,24 @@ +AUX ttaenc-3.3-cflags.patch 309 RMD160 4a28bce2e7bfeaf1ad388004188152d1f8be71bc SHA1 1628ade9c163d8fdb468624433a5e1f80feafb84 SHA256 0b27a9a42609c844c8e08c045a6a6f90ed4b72ceed16135d4c123d1fc4e8f3d9 +MD5 6fc35376115e24eac385b5277d62ff7e files/ttaenc-3.3-cflags.patch 309 +RMD160 4a28bce2e7bfeaf1ad388004188152d1f8be71bc files/ttaenc-3.3-cflags.patch 309 +SHA256 0b27a9a42609c844c8e08c045a6a6f90ed4b72ceed16135d4c123d1fc4e8f3d9 files/ttaenc-3.3-cflags.patch 309 +AUX ttaenc-3.3-warnings.patch 1865 RMD160 a28eb4b6fc6fad2a0e7dc1730d77564ed5d19f04 SHA1 adedc61a932833c86b0376a0b18d4e4f59e6a29d SHA256 db360229b2dd7a42ce2b97a3ef3a3a9430631d988a46be49c31f58ad7cd3414b +MD5 dcbfa394f7257739bf3c30dbc75b39fb files/ttaenc-3.3-warnings.patch 1865 +RMD160 a28eb4b6fc6fad2a0e7dc1730d77564ed5d19f04 files/ttaenc-3.3-warnings.patch 1865 +SHA256 db360229b2dd7a42ce2b97a3ef3a3a9430631d988a46be49c31f58ad7cd3414b files/ttaenc-3.3-warnings.patch 1865 +DIST ttaenc-3.3-src.zip 24092 RMD160 2d3f4c6575852529a9d161ee92a0b9875bc8475b SHA1 8701f812e24d803f16d77ad580686baa3d5f64b9 SHA256 66461407b7494ff37b86127628086f95676fbf227f039e84d93f234ac5cd4c5b +EBUILD ttaenc-3.3.ebuild 619 RMD160 789b7d55154a8396af7c03e8b3f048f700ee3e8c SHA1 03d43568213df80487040af2eb198008e1222e6b SHA256 724b63b17ed2d89b26f4622fc06781e16241fba97f5bd2f7293214996159c214 +MD5 0ac5ce24558feb11def35d88c9c538c2 ttaenc-3.3.ebuild 619 +RMD160 789b7d55154a8396af7c03e8b3f048f700ee3e8c ttaenc-3.3.ebuild 619 +SHA256 724b63b17ed2d89b26f4622fc06781e16241fba97f5bd2f7293214996159c214 ttaenc-3.3.ebuild 619 +MISC ChangeLog 355 RMD160 1c6fb05827d4d2e46e27f2a1f2f5b1de99d9f1a2 SHA1 8619a7c93b40c65a47b7e6340ec321feea3e49d5 SHA256 516cf76d36851b6371b7a993d7aba3bd562e3913f3ac277198a468483315e786 +MD5 9eabdd37493fd50c5cdad7887464cf8c ChangeLog 355 +RMD160 1c6fb05827d4d2e46e27f2a1f2f5b1de99d9f1a2 ChangeLog 355 +SHA256 516cf76d36851b6371b7a993d7aba3bd562e3913f3ac277198a468483315e786 ChangeLog 355 +MISC metadata.xml 214 RMD160 3ef8a9b331ffe9433ac2b885f83a985e0f89236f SHA1 ec7c7723b21b430e43c31acc7176045413af0225 SHA256 690c22b23be5f116a9ab2986b9fdae7b4f53788c4a8fafb369f3f636a3b619ba +MD5 97f43390489104c86df538d5759098f0 metadata.xml 214 +RMD160 3ef8a9b331ffe9433ac2b885f83a985e0f89236f metadata.xml 214 +SHA256 690c22b23be5f116a9ab2986b9fdae7b4f53788c4a8fafb369f3f636a3b619ba metadata.xml 214 +MD5 a5bc4334c20e3ddbcfd829ff2cc9a03c files/digest-ttaenc-3.3 232 +RMD160 70108c7068f32e7ad9e1999eaf9f60dce7e5b3df files/digest-ttaenc-3.3 232 +SHA256 5e8ae4617b0fa3f3579a0c3abce01fbf35780af19299f59250704b80d6135bbd files/digest-ttaenc-3.3 232 diff --git a/media-sound/ttaenc/files/digest-ttaenc-3.3 b/media-sound/ttaenc/files/digest-ttaenc-3.3 new file mode 100644 index 000000000000..46828242851e --- /dev/null +++ b/media-sound/ttaenc/files/digest-ttaenc-3.3 @@ -0,0 +1,3 @@ +MD5 074031c89233cb6956947c18c43ad7f7 ttaenc-3.3-src.zip 24092 +RMD160 2d3f4c6575852529a9d161ee92a0b9875bc8475b ttaenc-3.3-src.zip 24092 +SHA256 66461407b7494ff37b86127628086f95676fbf227f039e84d93f234ac5cd4c5b ttaenc-3.3-src.zip 24092 diff --git a/media-sound/ttaenc/files/ttaenc-3.3-cflags.patch b/media-sound/ttaenc/files/ttaenc-3.3-cflags.patch new file mode 100644 index 000000000000..3de56ea2af18 --- /dev/null +++ b/media-sound/ttaenc/files/ttaenc-3.3-cflags.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2007-04-21 21:07:25.000000000 +0100 ++++ Makefile 2007-04-21 21:07:40.000000000 +0100 +@@ -2,7 +2,7 @@ + # $Id: ttaenc-3.3-cflags.patch,v 1.1 2007/04/22 11:02:07 drac Exp $ + # + +-CFLAGS = -Wall -O2 -funroll-loops -fomit-frame-pointer ++CFLAGS += -Wall -O2 + LIBS = -lm + TTAENC = ttaenc + INSDIR = /usr/local/bin diff --git a/media-sound/ttaenc/files/ttaenc-3.3-warnings.patch b/media-sound/ttaenc/files/ttaenc-3.3-warnings.patch new file mode 100644 index 000000000000..515ed2693985 --- /dev/null +++ b/media-sound/ttaenc/files/ttaenc-3.3-warnings.patch @@ -0,0 +1,49 @@ +--- ttaenc.c.orig 2007-04-21 21:26:53.000000000 +0100 ++++ ttaenc.c 2007-04-21 21:28:38.000000000 +0100 +@@ -641,7 +641,7 @@ + + // grab some space for an encoder buffers + data = (long *) tta_malloc(num_chan * framelen, sizeof(long)); +- st = seek_table = (long *) tta_malloc(st_size, sizeof(long)); ++ st = seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long)); + enc = tta = tta_malloc(num_chan, sizeof(encoder)); + + // write TTA header +@@ -770,7 +770,7 @@ + unsigned long byte_size, data_size, checksum, errors; + unsigned long framelen, lastlen, fframes; + unsigned long framesize, st_size, *st; +- char *data; ++ unsigned char *data; + + // print process banner + fwprintf(stderr, L"Test: processing ..\r"); +@@ -833,8 +833,8 @@ + st_size = (fframes + 1); + + // grab some space for a buffer +- data = (char *) tta_malloc(framesize, 1); +- seek_table = (long *) tta_malloc(st_size, sizeof(long)); ++ data = (unsigned char *) tta_malloc(framesize, 1); ++ seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long)); + + // read seek table + if (fread(seek_table, st_size, sizeof(long), fdin) == 0) +@@ -890,7 +890,7 @@ + long *p, *data, value; + unsigned long num_chan, byte_size, data_size, checksum; + unsigned long k, depth, framelen, lastlen, fframes; +- unsigned long unary, binary, st_size, st_state, *st; ++ unsigned long unary, binary = 0, st_size, st_state, *st; + unsigned long is_float, def_subchunk_size = 16; + encoder *tta, *enc; + time_t stime = time(NULL); +@@ -982,7 +982,7 @@ + // grab some space for a buffer + data = (long *) tta_malloc(num_chan * framelen, sizeof(long)); + enc = tta = tta_malloc(num_chan, sizeof(encoder)); +- seek_table = (long *) tta_malloc(st_size, sizeof(long)); ++ seek_table = (unsigned long *) tta_malloc(st_size, sizeof(long)); + + // read seek table + if (fread(seek_table, st_size, sizeof(long), fdin) == 0) diff --git a/media-sound/ttaenc/metadata.xml b/media-sound/ttaenc/metadata.xml new file mode 100644 index 000000000000..7db7530d1880 --- /dev/null +++ b/media-sound/ttaenc/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sound</herd> +<maintainer><email>drac@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/media-sound/ttaenc/ttaenc-3.3.ebuild b/media-sound/ttaenc/ttaenc-3.3.ebuild new file mode 100644 index 000000000000..d8e5a5c357e2 --- /dev/null +++ b/media-sound/ttaenc/ttaenc-3.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/ttaenc/ttaenc-3.3.ebuild,v 1.1 2007/04/22 11:02:07 drac Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="True Audio Compressor Software" +HOMEPAGE="http://tta.sourceforge.net" +SRC_URI="mirror://sourceforge/tta/${P}-src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="" + +S="${WORKDIR}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-cflags.patch + epatch "${FILESDIR}"/${P}-warnings.patch + + sed -i -e "s:gcc:$(tc-getCC):g" Makefile +} + +src_compile () { + emake || die "emake failed." +} + +src_install () { + dobin ttaenc + dodoc Readme +} |