# Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="GUI for the creation & processing of panoramic images" HOMEPAGE="http://hugin.sf.net" SRC_URI="http://hugin.sourceforge.net/snapshots/hugin_2004_10_15_11_20.tgz" LICENSE="GPL-2 SIFT" KEYWORDS="~x86" IUSE="gtk2 unicode" #at least libpano12-2.7.0.8 recommended by Bruno Postle on [ptx] mailing list. #hugin doesn't work with fftw-3* #wxGTK-2.5.3 needed for wxrc DEPEND=">=media-libs/libpano12-2.7.0.8* =sci-libs/fftw-2* virtual/jdk >=dev-libs/boost-1.30.0 >=x11-libs/wxGTK-2.5.3 sys-libs/zlib media-libs/libpng media-libs/jpeg media-libs/tiff gtk2? ( >=x11-libs/gtk+-2.0.3 )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/splash-configure_ac.patch epatch ${FILESDIR}/hugin-0.4-wx_gtk.m4.patch aclocal -I m4 || die "alocal failed" automake --gnu Makefile || die "automake failed" autoconf || die "autoconf failed" } src_compile() { libtoolize -c -f export WX_GTK_VER="2.5" if ! use gtk2; then need-wxwidgets gtk || die "Emerge wxGTK with -no_wxgtk1 in USE" elif use unicode; then need-wxwidgets unicode || die "Emerge wxGTK with unicode in USE" else need-wxwidgets gtk2 || die "Emerge wxGTK with gtk2 in USE" fi econf --with-wx-config="${WX_CONFIG}" || die "configure failed" emake || die "compiling failed" } src_install() { einstall xrcdir=${D}/usr/share/hugin/xrc xrcdatadir=${D}/usr/share/hugin/xrc/data dodoc AUTHORS BUGS INSTALL LICENCE LICENCE_SIFT README TODO einfo "Please consider the helper apps autopano-sift and enblend." einfo "If you want PTStitcher instead of nona, you must emerge panorama-tools-nonfree" }