diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-06-08 14:02:21 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-06-08 14:02:21 +0000 |
commit | 2f5ea7cedbecaf57511d30402b1c9d232c56c939 (patch) | |
tree | 640ab01e7a7787816d4e07a5452bd9889e3959e0 /media-libs/libsamplerate | |
parent | Add ~x86-fbsd keyword (diff) | |
download | gentoo-2-2f5ea7cedbecaf57511d30402b1c9d232c56c939.tar.gz gentoo-2-2f5ea7cedbecaf57511d30402b1c9d232c56c939.tar.bz2 gentoo-2-2f5ea7cedbecaf57511d30402b1c9d232c56c939.zip |
Make fftw optional (as it's unusable on FreeBSD).
(Portage version: 2.1_rc4-r4)
Diffstat (limited to 'media-libs/libsamplerate')
-rw-r--r-- | media-libs/libsamplerate/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/libsamplerate/libsamplerate-0.1.2.ebuild | 18 |
2 files changed, 20 insertions, 4 deletions
diff --git a/media-libs/libsamplerate/ChangeLog b/media-libs/libsamplerate/ChangeLog index 03569b7fc0d3..4ed508109bbc 100644 --- a/media-libs/libsamplerate/ChangeLog +++ b/media-libs/libsamplerate/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/libsamplerate # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.34 2006/06/08 13:56:55 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.35 2006/06/08 14:02:21 flameeyes Exp $ + + 08 Jun 2006; Diego Pettenò <flameeyes@gentoo.org> + libsamplerate-0.1.2.ebuild: + Make fftw optional (as it's unusable on FreeBSD). 08 Jun 2006; Diego Pettenò <flameeyes@gentoo.org> libsamplerate-0.1.2.ebuild: diff --git a/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild b/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild index be6371964327..b9cd00f608de 100644 --- a/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild +++ b/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild,v 1.14 2006/06/08 13:56:55 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/libsamplerate-0.1.2.ebuild,v 1.15 2006/06/08 14:02:21 flameeyes Exp $ DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio" HOMEPAGE="http://www.mega-nerd.com/SRC/" @@ -9,13 +9,25 @@ SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ~ppc-macos ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="sndfile" +IUSE="sndfile fftw" -RDEPEND=">=sci-libs/fftw-3.0.1 +RDEPEND="fftw? ( >=sci-libs/fftw-3.0.1 ) sndfile? ( >=media-libs/libsndfile-1.0.2 )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.14.0" +src_compile() { + local myconf + + use fftw || myconf="${myconf} --disable-fftw" + + econf \ + ${myconf} \ + --disable-dependency-tracking \ + || die "econf failed" + emake || die "emake failed" +} + src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS README |