media-libs/aften: Declare mycmakeargs to be an array

Gentoo-Bug: 573152
* EAPI=6
* Amend patch to be -p1 compliant

Package-Manager: portage-2.2.27
This commit is contained in:
David Seifert
2016-01-27 21:12:01 +01:00
parent 59876fbbdb
commit 3478887cc8
2 changed files with 44 additions and 8 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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"
)
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
}

View File

@@ -1,7 +1,7 @@
Index: libaften/ppc/ppc_cpu_caps.h
===================================================================
--- libaften/ppc/ppc_cpu_caps.h
+++ 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
@@ -12,8 +12,8 @@ Index: libaften/ppc/ppc_cpu_caps.h
Index: libaften/ppc/mdct_altivec.c
===================================================================
--- libaften/ppc/mdct_altivec.c (revision 659)
+++ libaften/ppc/mdct_altivec.c (revision 660)
--- 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"
@@ -58,8 +58,8 @@ Index: libaften/ppc/mdct_altivec.c
Index: libaften/ppc/altivec_common.h
===================================================================
--- libaften/ppc/altivec_common.h (revision 659)
+++ libaften/ppc/altivec_common.h (revision 660)
--- 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;
@@ -84,8 +84,8 @@ Index: libaften/ppc/altivec_common.h
static inline vector float vec_ld_float(const float *a)
{
--- ppc_cpu_caps.bak 2007-12-23 17:13:33.000000000 +0000
+++ libaften/ppc/ppc_cpu_caps.c 2007-12-23 17:13:43.000000000 +0000
--- 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))