summaryrefslogtreecommitdiff
blob: d137ce795af938db9293d2338d89ff977f154a31 (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
48
49
50
51
52
53
54
55
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/hermes/hermes-1.3.2-r2.ebuild,v 1.21 2004/07/01 07:56:10 eradicator Exp $

inherit eutils gnuconfig

MY_P=${P/h/H}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Library for fast colorspace conversion and other graphics routines"
HOMEPAGE="http://hermes.terminal.at/"
SRC_URI="http://dark.x.dtu.dk/~mbn/clanlib/download/download-sphair/${MY_P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha ~mips amd64 ~hppa"

DEPEND="sys-devel/libtool
	sys-devel/automake
	sys-devel/autoconf"

RDEPEND="virtual/libc"

src_unpack() {
	unpack ${A} || die
	cd ${S} || die
	epatch ${FILESDIR}/hermes-1.3.2-amd64.patch
	use alpha && gnuconfig_update
	use amd64 && gnuconfig_update
	use hppa && gnuconfig_update
	aclocal || die "aclocal failed"
	env WANT_AUTOMAKE=1.4 automake -a || die "automake failed"
	autoconf || die "autoconf failed"
}

src_compile() {
	econf || die
	sh ltconfig ltmain.sh || die "ltconfig failed"
	emake || die "emake failed"
}

src_install() {
	make \
		prefix=${D}/usr \
		install || die

	dodoc AUTHORS ChangeLog FAQ NEWS README TODO*

	dohtml docs/api/*.htm
	docinto print
	dodoc docs/api/*.ps
	docinto txt
	dodoc docs/api/*.txt
	docinto sgml
	dodoc docs/api/sgml/*.sgml
}