# Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit wxwidgets DESCRIPTION="GUI for the creation & processing of panoramic images" HOMEPAGE="http://hugin.sf.net" MY_P="${PN}-${PV/_/-}" SRC_URI="mirror://sourceforge/hugin/${MY_P}.tar.bz2" LICENSE="GPL-2 SIFT" KEYWORDS="~x86" IUSE="gtk2 unicode debug" #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* >=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 )" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} sed -i 's/"autopanog.exe"/"autopanog"/' \ ${S}/src/include/hugin/config_defaults.h # make nona (not PTStitcher the default stitcher sed -i '/"pano_choice_stitcher"/,/<\/object>/{s/\(\)0/\11/}' \ ${S}/src/hugin/xrc/pano_panel.xrc } src_compile() { 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 myconf="`use_with unicode`" use debug && myconf="${myconf} --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." }