blob: d486fe2f5848afe2590dacc03688eef6993b4621 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/hugin/hugin-0.5_rc1.ebuild,v 1.3 2005/08/11 10:29:19 dholm Exp $
inherit wxwidgets
DESCRIPTION="GUI for the creation & processing of panoramic images"
HOMEPAGE="http://hugin.sf.net"
MY_P=${P/_rc*//}
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 SIFT"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE="gtk2 unicode debug"
DEPEND=">=media-libs/libpano12-2.7.0.8
>=dev-libs/boost-1.30.0
>=x11-libs/wxGTK-2.6.0
sys-libs/zlib
media-libs/libpng
media-libs/jpeg
media-libs/tiff"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if use unicode && ! use gtk2; then
die "You must put gtk2 in your USE if you want unicode."
fi
}
src_compile() {
export WX_GTK_VER="2.6"
if use unicode; then
need-wxwidgets unicode || die "Emerge wxGTK with unicode in USE"
elif ! use gtk2; then
need-wxwidgets gtk || die "Emerge wxGTK with wxgtk1 in USE"
else
need-wxwidgets gtk2 || die "Emerge wxGTK with gtk2 in USE"
fi
myconf="`use_with unicode`
`use_enable debug`"
econf --with-wx-config="${WX_CONFIG}" ${myconf} || die "configure failed"
emake || die "compiling failed"
}
src_install() {
make install DESTDIR=${D} || die
dodoc AUTHORS BUGS INSTALL LICENCE LICENCE_SIFT README TODO
}
pkg_postinst() {
einfo "Please consider the helper apps autopano-sift and enblend."
einfo "autopano-sift is used to automagically generate control"
einfo "points and enblend is used to merge images smoothly."
}
|