diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-12 22:43:21 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-05-12 22:43:21 +0000 |
commit | 217d434036c55bd53168e9a5b0b10d8ec7d8870a (patch) | |
tree | 9cccf91a1a7919897f34f45801c56004ffd9fa27 /media-sound/musepack-tools/musepack-tools-1.15v.ebuild | |
parent | Add ~x86-fbsd keyword. (diff) | |
download | gentoo-2-217d434036c55bd53168e9a5b0b10d8ec7d8870a.tar.gz gentoo-2-217d434036c55bd53168e9a5b0b10d8ec7d8870a.tar.bz2 gentoo-2-217d434036c55bd53168e9a5b0b10d8ec7d8870a.zip |
Add ~x86-fbsd keyword with a patch to build on FreeBSD.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'media-sound/musepack-tools/musepack-tools-1.15v.ebuild')
-rw-r--r-- | media-sound/musepack-tools/musepack-tools-1.15v.ebuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/media-sound/musepack-tools/musepack-tools-1.15v.ebuild b/media-sound/musepack-tools/musepack-tools-1.15v.ebuild index 3897f2377947..df7d070b9946 100644 --- a/media-sound/musepack-tools/musepack-tools-1.15v.ebuild +++ b/media-sound/musepack-tools/musepack-tools-1.15v.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2006 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.ebuild,v 1.7 2006/04/18 17:46:49 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/musepack-tools/musepack-tools-1.15v.ebuild,v 1.8 2006/05/12 22:43:21 flameeyes Exp $ IUSE="static 16bit esd" -inherit eutils flag-o-matic +inherit eutils flag-o-matic flag-o-matic S="${WORKDIR}/sv7" @@ -14,13 +14,14 @@ SRC_URI="http://files.musepack.net/source/mpcsv7-src-${PV}.tar.bz2" SLOT="0" LICENSE="LGPL-2.1" -KEYWORDS="~amd64 x86" +KEYWORDS="~amd64 x86 ~x86-fbsd" RDEPEND="esd? ( media-sound/esound ) media-libs/id3lib" DEPEND="${RDEPEND} x86? ( dev-lang/nasm ) + x86-fbsd? ( dev-lang/nasm ) amd64? ( dev-lang/nasm )" src_unpack() { @@ -39,7 +40,7 @@ src_unpack() { Makefile fi - if ! use x86 ; then + if [[ $(tc-arch) != "x86" ]] ; then sed -i 's/#define USE_ASM/#undef USE_ASM/' mpp.h fi @@ -49,6 +50,7 @@ src_unpack() { sed -i -e 's/$(LDADD) &> $(LOGFILE)/$(LDADD)/' Makefile epatch "${FILESDIR}/${P}-execstack.patch" + epatch "${FILESDIR}/${P}-fbsd.patch" } src_compile() { @@ -58,7 +60,7 @@ src_compile() { append-flags -I${S} - ARCH= emake mppenc mppdec replaygain || die + ARCH= emake CC="$(tc-getCC)" mppenc mppdec replaygain || die } src_install() { |