blob: 1b9ff49bfef5e65dcd88393b833bd38928e4a6b4 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/vigra/vigra-1.5.0-r1.ebuild,v 1.2 2007/04/18 06:30:43 opfer Exp $
inherit multilib
DESCRIPTION="C++ computer vision library with emphasize on customizable algorithms and data structures"
HOMEPAGE="http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/"
SRC_URI="http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/${P/-}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="doc fftw jpeg png tiff zlib"
RDEPEND="png? ( media-libs/libpng )
tiff? ( media-libs/tiff )
jpeg? ( media-libs/jpeg )
fftw? ( >=sci-libs/fftw-3 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S="${WORKDIR}/${P/-}"
MY_DOCDIR="usr/share/doc/${PF}"
src_compile() {
./configure \
--prefix="/usr/" \
--docdir="${D}/${MY_DOCDIR}" \
$(use_with png) \
$(use_with tiff) \
$(use_with jpeg) \
$(use_with zlib) \
$(use_with fftw) \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
emake libdir="${D}/usr/$(get_libdir)" prefix="${D}/usr" install || die "emake install failed"
use doc || rm -Rf "${D}/${MY_DOCDIR}"
dodoc README.txt
}
|