summaryrefslogtreecommitdiff
path: root/media-libs/aften
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/aften')
-rw-r--r--media-libs/aften/Manifest9
-rw-r--r--media-libs/aften/aften-0.0.8-r2.ebuild36
-rw-r--r--media-libs/aften/aften-0.0.8.ebuild33
-rw-r--r--media-libs/aften/files/aften-0.0.8-multilib.patch13
-rw-r--r--media-libs/aften/files/aften-0.0.8-no-static-aften.patch15
-rw-r--r--media-libs/aften/files/aften-0.0.8-ppc.patch97
-rw-r--r--media-libs/aften/metadata.xml16
7 files changed, 219 insertions, 0 deletions
diff --git a/media-libs/aften/Manifest b/media-libs/aften/Manifest
new file mode 100644
index 000000000000..ac5f014eda69
--- /dev/null
+++ b/media-libs/aften/Manifest
@@ -0,0 +1,9 @@
+AUX aften-0.0.8-multilib.patch 576 SHA256 46f6bf70bb525147b1c574057dc57091a14fd13a761d559ce97f1886982771a4 SHA512 875ea34217569ceb0b1b5ff1d572aa501bec2a439e6f21c4a7aa3fd804c8a8739257e91485afe17b1d5b77bb8b8441e723c585af0ed589f343e7870e0552dc04 WHIRLPOOL caa24e026bf1acee493bb751755dc9b49584ac21ecc272fed526bd15443555f1096b004e73866cd0c064224ed7bfc2192b211ea016f11635cb7a8f1dba1655dc
+AUX aften-0.0.8-no-static-aften.patch 684 SHA256 8b08778eaf48f3b862e8cc2b40f78128440b694061bf690483f3d0c09a6b8199 SHA512 cfd2b151a031b64cb3f09b0bfa514e220fade4372dbe37bccbb58a158053ec25715617ffbcd5fd3b5e0a348488f28d13711db5a18bd62fc67058dbee540a36a5 WHIRLPOOL e9c7253ab6573996633d00354ac6dca2e587a6e9adf64bfdca995703b1f9ceecce998948992ea47c0cd77ce641535d269b917dce8ee8bbe14d30f8e0a45c8a60
+AUX aften-0.0.8-ppc.patch 4066 SHA256 2061cb6be2eb3d6fccec74bec69a1069562c4e8adccd7147301b12830664e9c3 SHA512 5022529320ae0cefbbd4124c37bdf3d2451c4733b41007f77cfcb5a26ae32ca159716ce4782b6e75767309a2057c839e467e966c8d9ad159d074c53ffdaf4ef5 WHIRLPOOL c0c839933148b29300351997f4b6d6363d99c0bdb806a6c59181737cd5e8cdf9a649a7638b5b48558d4c4475dd54dbda3b735a47349b4edaa07f49bb443f4a3a
+DIST aften-0.0.8.tar.bz2 80865 SHA256 87cc847233bb92fbd5bed49e2cdd6932bb58504aeaefbfd20ecfbeb9532f0c0a SHA512 1261297eac5065c6f028618d3e15e9b152ac35440c74cfb09d98cd99a90fb1c6a49585f70928834c3f6ddbcdd1d8721f7329d24f57cd30901dff09bbc0d419e3 WHIRLPOOL c47442eb3aa978972c5185b637de39a80bd3910934097d31dbcd3e24348c59c9ed99980fd276f0b9e1c0dc90c07e591d4d057ac9bcb4f460806984e1558c1350
+EBUILD aften-0.0.8-r2.ebuild 753 SHA256 0fdf03520832608a28fd0cafb48e3bb251220b1f195883c92ae9beb298c76fa5 SHA512 78c4c2c0cc1b467e5eee3c92016c7b6328ffbd5649b3bfe8ff0160e208242d0555161e0486d4d281eac5f2c1dca841043a0d49496751a2a9d0a4e247acea2225 WHIRLPOOL 3a39f4baec74d90585f47932c6dec48e4515dc817e05305381743103a20135b2477fb271d39790dbf5b1d24720574ee51b6a1e78fd6a7565d5ccb2e3b758f281
+EBUILD aften-0.0.8.ebuild 739 SHA256 2fca043408e95016ed8dff419b8bafc85f66e5c03e94e76f212c499c3039e352 SHA512 002b86d193810c8696a3fd17e6f883201503d26f49fe2daa89abaadbc20f76a4968560eee07997490cbda2887c8794569b729c3ec50f2c025e2bd989a589f7c7 WHIRLPOOL 8b3c7d0594a96abf651ba5cd34d8e352a543b01cec61441424314e85e7feb6e3bf00938029c0f1785213c62be14591b229ac817a3af1ea476293aae6bae40106
+MISC ChangeLog 3363 SHA256 041ed7c8aedadacb2d96819cfcb6bab1f9bfcdc9f1899866019549935ef99209 SHA512 4fe83adeef9fa818a014c3203d6ad9a93648390df1974ca7fe5d427f592c93026b54f7c17403d3e0bd5f5b57f94f2ce387a893eb7f64b803d0a286dbbec2ec13 WHIRLPOOL 0ed911dd44946e62352df735c125fa306f99a71559b66dee6d044f715af6d64bb164a5f02a7d57432cdc938e2a1d8df07b54201d5b73d6f4668a399375a17c03
+MISC ChangeLog-2015 1384 SHA256 562d76f230aab92357b7e466b0c0035e2aa587d1d941a90fe36743a04a5da603 SHA512 e92936f61c83c691dfe6e6a836f88df4f874ba70fd40435caa64660d14ef74e08a00ed7887260523380caca457e970b254bfadb54c2530aa4d0170c0934bb52b WHIRLPOOL 18ea82761da8fa4b97e1df45a902ec98c26c0ae8e9029f7e34878f543696ee56f11b02366d12ebec8f7e604373f328a5afe64cda457937cb91dd60cbbae0918a
+MISC metadata.xml 602 SHA256 2d5370354fd54b38cd8ae8cd6418761b7d69fc9eeed7972ab78c690429cfeff9 SHA512 6b78ecfd5eefe1ce29c875db4d487ed23fda5faf9a1bc97b75d6de9afad30be6aceffabd3031bf35badbfb8cabdb4bfa24fb2c7a3905d7a68b9ef9bc0bf0d458 WHIRLPOOL 9e69cac2fd6bd0327adc8441dbcd4e1f124b2a0c7fa2b81812823f612c76629a2e21c0f0c5c38bebf117b9d9f531682d18517ff3b7e13f9cfe147e1346267f53
diff --git a/media-libs/aften/aften-0.0.8-r2.ebuild b/media-libs/aften/aften-0.0.8-r2.ebuild
new file mode 100644
index 000000000000..65594d77cbbd
--- /dev/null
+++ b/media-libs/aften/aften-0.0.8-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="An A/52 (AC-3) audio encoder"
+HOMEPAGE="http://aften.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cxx"
+
+PATCHES=(
+ "${FILESDIR}/${P}-multilib.patch"
+ "${FILESDIR}/${P}-ppc.patch"
+ "${FILESDIR}/${P}-no-static-aften.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DSHARED=1
+ -DBINDINGS_CXX=$(usex cxx)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README Changelog
+ # File collision with media-sound/wavbreaker, upstream informed
+ mv "${D}"/usr/bin/wavinfo{,-aften} || die
+}
diff --git a/media-libs/aften/aften-0.0.8.ebuild b/media-libs/aften/aften-0.0.8.ebuild
new file mode 100644
index 000000000000..1b01dc33c91f
--- /dev/null
+++ b/media-libs/aften/aften-0.0.8.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="An A/52 (AC-3) audio encoder"
+HOMEPAGE="http://aften.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="cxx"
+
+PATCHES=(
+ "${FILESDIR}/${P}-multilib.patch"
+ "${FILESDIR}/${P}-ppc.patch"
+)
+
+src_configure() {
+ local mycmakeargs="-DSHARED=1"
+ use cxx && mycmakeargs+=" -DBINDINGS_CXX=1"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README Changelog
+ # File collision with media-sound/wavbreaker, upstream informed
+ mv "${D}/usr/bin/wavinfo" "${D}/usr/bin/wavinfo-aften" || die
+}
diff --git a/media-libs/aften/files/aften-0.0.8-multilib.patch b/media-libs/aften/files/aften-0.0.8-multilib.patch
new file mode 100644
index 000000000000..f09b8dc5bb1c
--- /dev/null
+++ b/media-libs/aften/files/aften-0.0.8-multilib.patch
@@ -0,0 +1,13 @@
+Index: aften-0.0.8/CMakeLists.txt
+===================================================================
+--- aften-0.0.8.orig/CMakeLists.txt
++++ aften-0.0.8/CMakeLists.txt
+@@ -305,6 +305,6 @@ ENDIF(BINDINGS_CXX)
+
+ INSTALL(TARGETS ${INSTALL_TARGETS} aften_exe wavinfo wavrms wavfilter
+ RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib)
++ LIBRARY DESTINATION lib${LIB_SUFFIX}
++ ARCHIVE DESTINATION lib${LIB_SUFFIX})
+ INSTALL(FILES ${INSTALL_HEADERS} libaften/aften.h libaften/aften-types.h DESTINATION include/aften)
diff --git a/media-libs/aften/files/aften-0.0.8-no-static-aften.patch b/media-libs/aften/files/aften-0.0.8-no-static-aften.patch
new file mode 100644
index 000000000000..66cb18d3d445
--- /dev/null
+++ b/media-libs/aften/files/aften-0.0.8-no-static-aften.patch
@@ -0,0 +1,15 @@
+Patch from user Ihar Hrachyshka on Gentoo bug 258397. Replaces the
+"aften_static" target with "aften" which is dynamically linked.
+
+diff -urN aften-0.0.8.orig/CMakeLists.txt aften-0.0.8/CMakeLists.txt
+--- a/CMakeLists.txt 2007-09-08 04:51:47.000000000 +0300
++++ b/CMakeLists.txt 2009-08-30 22:56:00.000000000 +0300
+@@ -278,7 +278,7 @@
+ # When linking to static aften, dllimport mustn't be used
+ SET_TARGET_PROPERTIES(aften_exe PROPERTIES COMPILE_FLAGS -DAFTEN_BUILD_LIBRARY)
+ ENDIF(WIN32)
+-TARGET_LINK_LIBRARIES(aften_exe aften_pcm aften_static)
++TARGET_LINK_LIBRARIES(aften_exe aften_pcm aften)
+
+ ADD_EXECUTABLE(wavinfo util/wavinfo.c)
+ TARGET_LINK_LIBRARIES(wavinfo aften_pcm)
diff --git a/media-libs/aften/files/aften-0.0.8-ppc.patch b/media-libs/aften/files/aften-0.0.8-ppc.patch
new file mode 100644
index 000000000000..f21d816b55ca
--- /dev/null
+++ b/media-libs/aften/files/aften-0.0.8-ppc.patch
@@ -0,0 +1,97 @@
+Index: libaften/ppc/ppc_cpu_caps.h
+===================================================================
+--- aften-0.0.8/libaften/ppc/ppc_cpu_caps.h
++++ aften-0.0.8/libaften/ppc/ppc_cpu_caps.h
+@@ -20,6 +20,7 @@
+ #ifndef PPC_CPU_CAPS_H
+ #define PPC_CPU_CAPS_H
+
++#include "aften-types.h"
+ #include "common.h"
+ #include "cpu_caps.h"
+
+Index: libaften/ppc/mdct_altivec.c
+===================================================================
+--- aften-0.0.8/libaften/ppc/mdct_altivec.c (revision 659)
++++ aften-0.0.8/libaften/ppc/mdct_altivec.c (revision 660)
+@@ -47,11 +47,11 @@
+ #include "mem.h"
+
+ // sign change constants
+-static const vec_u32_t vPNNP = (vec_u32_t)
++static const vec_u32_t vPNNP = VEC_U32
+ (0x00000000, 0x80000000, 0x80000000, 0x00000000);
+-static const vec_u32_t vPNPN = (vec_u32_t)
++static const vec_u32_t vPNPN = VEC_U32
+ (0x00000000, 0x80000000, 0x00000000, 0x80000000);
+-static const vec_u32_t vNNNN = (vec_u32_t)
++static const vec_u32_t vNNNN = VEC_U32
+ (0x80000000, 0x80000000, 0x80000000, 0x80000000);
+
+
+@@ -92,7 +92,7 @@
+ vec_u8_t perm1036 = VPERMUTE4(1, 0, 3, 6);
+ vec_u8_t perm5472 = VPERMUTE4(5, 4, 7, 2);
+ vector float zero = (vector float) vec_splat_u32(0);
+- vector float pi2_8 = (vector float)(AFT_PI2_8, AFT_PI2_8, AFT_PI2_8, AFT_PI2_8);
++ vector float pi2_8 = VEC_FLOAT(AFT_PI2_8, AFT_PI2_8, AFT_PI2_8, AFT_PI2_8);
+ vector float x0to3, x4to7, x8to11, x12to15;
+ vector float v1, v2, v3, v4, v5;
+
+@@ -143,7 +143,7 @@
+ vec_u8_t perm0022 = VPERMUTE4(0, 0, 2, 2);
+ vec_u8_t perm1405 = VPERMUTE4(1, 4, 0, 5);
+ vector float zero = (vector float) vec_splat_u32(0);
+- vector float cpi = (vector float) (AFT_PI2_8, AFT_PI2_8, AFT_PI1_8, AFT_PI3_8);
++ vector float cpi = VEC_FLOAT(AFT_PI2_8, AFT_PI2_8, AFT_PI1_8, AFT_PI3_8);
+ vec_u32_t vNPNP = vec_sld(vPNPN, vPNPN, 4);
+ vector float x0to3, x4to7, x8to11, x12to15, x16to19, x20to23, x24to27, x28to31;
+ vector float pi3122, pi1322, pi1313, pi3131;
+@@ -395,7 +395,7 @@
+ vec_u8_t perm3636 = vec_add(perm1414, vec_splat_u8(8));
+ vec_u8_t perm2266, perm3377;
+
+- vector float point5 = (vector float) (0.5f, 0.5f, 0.5f, 0.5f);
++ vector float point5 = VEC_FLOAT(0.5f, 0.5f, 0.5f, 0.5f);
+ vector float zero = (vector float) vec_splat_u32(0);
+ vec_u32_t vNPNP = vec_sld(vPNPN, vPNPN, 4);
+
+Index: libaften/ppc/altivec_common.h
+===================================================================
+--- aften-0.0.8/libaften/ppc/altivec_common.h (revision 659)
++++ aften-0.0.8/libaften/ppc/altivec_common.h (revision 660)
+@@ -28,11 +28,23 @@
+ typedef vector unsigned int vec_u32_t;
+ typedef vector signed int vec_s32_t;
+
++#if defined( __APPLE_CC__ ) && defined( __APPLE_ALTIVEC__ ) /* apple */
++#define VEC_U32(a,b,c,d) (vec_u32_t) (a, b, c, d)
++#define VEC_FLOAT(a,b,c,d) (vector float) (a, b, c, d)
+ #define VPERMUTE4(a,b,c,d) (vec_u8_t) \
+ ( (a*4)+0, (a*4)+1, (a*4)+2, (a*4)+3, \
+ (b*4)+0, (b*4)+1, (b*4)+2, (b*4)+3, \
+ (c*4)+0, (c*4)+1, (c*4)+2, (c*4)+3, \
+ (d*4)+0, (d*4)+1, (d*4)+2, (d*4)+3 )
++#else /* gnu */
++#define VEC_U32(a,b,c,d) {a, b, c, d}
++#define VEC_FLOAT(a,b,c,d) {a, b, c, d}
++#define VPERMUTE4(a,b,c,d) \
++ { (a*4)+0, (a*4)+1, (a*4)+2, (a*4)+3, \
++ (b*4)+0, (b*4)+1, (b*4)+2, (b*4)+3, \
++ (c*4)+0, (c*4)+1, (c*4)+2, (c*4)+3, \
++ (d*4)+0, (d*4)+1, (d*4)+2, (d*4)+3 }
++#endif
+
+ static inline vector float vec_ld_float(const float *a)
+ {
+--- aften-0.0.8/ppc_cpu_caps.bak 2007-12-23 17:13:33.000000000 +0000
++++ aften-0.0.8/libaften/ppc/ppc_cpu_caps.c 2007-12-23 17:13:43.000000000 +0000
+@@ -81,7 +81,7 @@
+ //Attempt to use AltiVec
+ if(!sigsetjmp(g_env, 0))
+ {
+- asm volatile ( "vor v0, v0, v0" );
++ asm volatile ( "vor 0, 0, 0" );
+ }
+
+ //Restore the old signal handler
diff --git a/media-libs/aften/metadata.xml b/media-libs/aften/metadata.xml
new file mode 100644
index 000000000000..6a9998ee68eb
--- /dev/null
+++ b/media-libs/aften/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+ <longdescription lang="en">
+ Aften is an audio encoder which generates compressed audio streams based
+ on ATSC A/52 specification. This type of audio is also known as AC-3 or
+ Dolby® Digital and is one of the audio codecs used in DVD-Video content.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">aften</remote-id>
+ </upstream>
+</pkgmetadata>