blob: 3e50226b1e64a36a6676c0dd86388b2c32403eda (
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
56
57
58
59
60
61
62
63
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/autopano-sift/autopano-sift-2.4-r1.ebuild,v 1.5 2008/03/16 00:53:57 maekke Exp $
inherit mono eutils
DESCRIPTION="SIFT algorithm for automatic panorama creation"
HOMEPAGE="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/"
SRC_URI="http://user.cs.tu-berlin.de/~nowozin/autopano-sift/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
SLOT="0"
IUSE=""
DEPEND="dev-lang/mono
dev-dotnet/glade-sharp
dev-dotnet/gtk-sharp
>=dev-dotnet/libgdiplus-1.1.11
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"/src
sed -i 's%^AUTOPANO_PATH=.*%AUTOPANO_PATH=/usr/lib/autopano-sift%' \
bin/autopano-complete.sh
if has_version '>=dev-dotnet/gtk-sharp-2' ; then
sed -i 's%pkg:gtk-sharp%pkg:gtk-sharp-2.0%g' Makefile util/Makefile \
util/autopanog/Makefile || die "sed failed"
fi
if has_version '>=dev-dotnet/glade-sharp-2' ; then
sed -i 's%pkg:glade-sharp%pkg:glade-sharp-2.0%g' util/Makefile \
util/autopanog/Makefile || die "sed failed"
fi
}
src_compile() {
cd "${S}"/src
emake -j1 || die "Compile failed"
}
src_install() {
insinto /usr/lib/${PN}
doins src/util/*.exe src/util/autopanog/*.exe src/libsift.dll
exeinto /usr/bin
doexe "${FILESDIR}"/autopano
for file in autopanog generatekeys; do
dosym autopano /usr/bin/"$file"
done
doexe src/bin/autopano-complete.sh
dodoc README CHANGES
cd "${S}"/doc
rm -f template.1 autopano-complete.old.*
dodoc *.pdf *.txt
doman *.1 *.7
}
|