summaryrefslogtreecommitdiff
blob: 32c7d6dd26797154aa0ff04cd56490dd1a602ffb (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/panotools/panotools-2.6.ebuild,v 1.1 2004/03/05 05:12:33 lu_zero Exp $

inherit eutils

DESCRIPTION="Helmut Dersch's panorama toolbox library"

HOMEPAGE="http://www.path.unimelb.edu.au/~dersch/
		http://bugbear.blackfish.org.uk/~bruno/panorama-tools/"
SRC_URI="http://dev.gentoo.org/~lu_zero/distfiles/${P}.tar.bz2
		http://dev.gentoo.org/~lu_zero/distfiles/${P}-patches-${PR}.patch.bz2"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86 ~ppc"

IUSE=""

DEPEND="media-libs/libpng
		media-libs/tiff
		media-libs/jpeg
		sys-libs/zlib"
S=${WORKDIR}/${P}

src_unpack() {
	unpack ${P}.tar.bz2
	cd ${S}
	epatch ${DISTDIR}/${P}-patches-${PR}.patch.bz2
}

src_compile() {
	emake CFLAGS="$CFLAGS -D__Ansi__=1" || die
}

src_install() {
	insinto /usr/lib
	doins libpano12.so
	insinto /usr/include/pano12
	doins *.h
}