summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2008-12-09 03:26:00 +0000
committerJeremy Olexa <darkside@gentoo.org>2008-12-09 03:26:00 +0000
commit82e14cffabee49d8a44e619d563fa7b02c212d68 (patch)
tree7aac39e756d8cd4cba88b53baea637d5e50852a0 /media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
parentStable for HPPA (bug #249695). (diff)
downloadhistorical-82e14cffabee49d8a44e619d563fa7b02c212d68.tar.gz
historical-82e14cffabee49d8a44e619d563fa7b02c212d68.tar.bz2
historical-82e14cffabee49d8a44e619d563fa7b02c212d68.zip
(non maintainer commit) 64 bit fix as presented in bug #188160. Thanks to Rene Treffer for the patch
Package-Manager: portage-2.2_rc17/cvs/Linux 2.6.27.7 x86_64
Diffstat (limited to 'media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild')
-rw-r--r--media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild b/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
index 84476b52fc44..a48a9210267c 100644
--- a/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
+++ b/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild,v 1.2 2007/05/14 21:21:37 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/musepack-tools-1.15v-r1.ebuild,v 1.3 2008/12/09 03:26:00 darkside Exp $
IUSE="static 16bit esd"
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
epatch "${FILESDIR}/${P}-Makefile.patch"
epatch "${FILESDIR}/${P}-gcc4.patch"
@@ -46,6 +46,10 @@ src_unpack() {
sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h
fi
+ if [[ "$(tc-arch)" == "amd64" ]] ; then
+ sed -i 's/-f elf$/-f elf64/' Makefile
+ fi
+
use 16bit && sed -i 's|//#define MAKE_16BIT|#define MAKE_16BIT|' mpp.h
# Bug #109699; console redirection to /dev/tty makes no sense