summaryrefslogtreecommitdiff
blob: add0e8b1d33059335cc48f21544207f636708fb4 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libvisual/libvisual-0.1.6.ebuild,v 1.5 2004/10/03 20:11:11 dholm Exp $

IUSE="pic static"

inherit eutils

DESCRIPTION="Libvisual is an abstraction library that comes between applications and audio visualisation plugins."

SRC_URI="mirror://sourceforge/libvisual/${P}.tar.gz"
HOMEPAGE="http://libvisual.sourceforge.net/"

LICENSE="LGPL-2.1 GPL-2"

SLOT="0"
KEYWORDS="~x86 ~amd64 ~sparc ~ppc"

DEPEND=""

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-libdir.patch
	epatch ${FILESDIR}/${P}-destdir.patch
}

src_compile() {
	local myconf=""

	use pic && myconf="${myconf} --with-pic"
	use static && myconf="${myconf} --enable-static"

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

src_install() {
	make DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog NEWS README TODO
}