summaryrefslogtreecommitdiff
blob: 4765f888616287a1775b4710a028529055940299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libkarma/libkarma-0.1.0.ebuild,v 1.8 2009/05/12 11:08:48 ssuominen Exp $

EAPI=2
inherit eutils mono multilib toolchain-funcs

DESCRIPTION="Support library for using Rio devices with mtp"
HOMEPAGE="http://www.freakysoft.de/html/libkarma/"
SRC_URI="http://www.freakysoft.de/html/libkarma/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="mono"

RDEPEND="virtual/libiconv
	media-libs/taglib
	mono? ( dev-lang/mono )
	dev-libs/libusb"
DEPEND="${RDEPEND}"

MAKEOPTS="${MAKEOPTS} -j1"

src_prepare() {
	use mono || epatch "${FILESDIR}"/libkarma-0.0.6-mono.patch
	epatch "${FILESDIR}"/${P}-multilib.patch
}

src_compile() {
	tc-export AR CC RANLIB
	emake all || die "emake failed"
}

src_install() {
	export _LIBDIR=$(get_libdir)
	emake PREFIX="${D}/usr" install || die "emake install failed"
}