summaryrefslogtreecommitdiff
blob: db5db4dd392444a85f6bdac87a95b96108e1b79e (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=4
inherit eutils toolchain-funcs

DESCRIPTION="a collection of programs for creating high dynamic range images"
HOMEPAGE="http://comparametric.sourceforge.net/"
SRC_URI="mirror://sourceforge/comparametric/${P}.tgz"

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

RDEPEND="x11-libs/libX11
	sys-libs/zlib
	media-libs/libpng
	virtual/jpeg"
DEPEND="${RDEPEND}"

DOCS=( AUTHORS README README.MORE )

src_prepare() {
	epatch "${FILESDIR}"/${P}-libpng15.patch

	sed -i \
		-e "s:\$(prefix)/images:\$(prefix)/share/${PN}/images:" \
		images/Makefile.in || die

	sed -i \
		-e "s:\$(prefix)/lookuptables:\$(prefix)/share/${PN}/lookuptables:" \
		lookuptables/Makefile.in || die
}

src_configure() {
	tc-export CC
	econf
}