aboutsummaryrefslogtreecommitdiff
blob: c560adb8a82f066fa2ae29d1f866c76d74935d0d (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
39
40
41
42
43
44
45
46
47
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Enlightenment eina library"
HOMEPAGE="http://www.enlightenment.org/"
ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk/${PN}"
ESVN_REVISION="r38104"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="mmx sse sse2 alitvec threads doc"

inherit autotools subversion

RDEPEND=""
DEPEND=">=dev-util/pkgconfig-0.9.0"

S="${WORKDIR}/${PN}"

src_unpack() {
	subversion_src_unpack

	cd "${S}"

	eautoreconf || die "eautoreconf failed"
}

src_compile() {
	local myconf

	myconf="${myconf}
	        $(use_enable mmx  cpu-mmx) \
	        $(use_enable sse  cpu-sse) \
	        $(use_enable sse2 cpu-sse2) \
	        $(use_enable altivec cpu-altivec) \
	        $(use_enable threads pthread) \
	        $(use_enable doc)"

	econf $myconf || die "econf failed"
	emake || die "emake failed"
}

src_install () {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog COPYING NEWS README
}