# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils # source maintainers named it hugin_YYYY_MM_DD-hh_mm instead of hotplug-YYYYMMDDhhmm MY_P=${PN}_${PV:0:4}_${PV:4:2}_${PV:6:2}-${PV:8:2}_${PV:10:2} S=${WORKDIR}/${PN} DESCRIPTION="an easy to use cross-platform GUI for Panorama Tools" HOMEPAGE="http://hugin.sourceforge.net/" SRC_URI="http://hugin.sourceforge.net/snapshots/${MY_P}.tgz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="gtk2" DEPEND="media-libs/vigra dev-libs/boost media-libs/panotools media-gfx/panorama-tools >=x11-libs/wxGTK-2.4.0 =dev-libs/fftw-2*" src_compile(){ use gtk2 && sed -i "s:lwx_gtk_xrc-2.4:lwx_gtk2_xrc-2.4:g" ${S}/configure ./configure --prefix=/usr || die emake || die } src_install() { cd ${S}/src dodir /usr/share/${PN}/xrc/data/ insinto /usr/share/${PN}/xrc/data/ cd ${S}/src/hugin/xrc/data doins *.htm *.xpm *.png *.html insinto /usr/share/${PN}/xrc/ cd ${S}/src/hugin/xrc doins *.xrc cd ${S}/src/hugin/po domo de/hugin.mo cd ${S}/src/hugin dobin hugin insinto /usr/share/applications doins hugin.desktop cd ${S}/src/tools dobin nona autopano automatch panosifter autooptimiser cd ${S}/src/PanoImage dobin panoviewer cd ${S}/src/keypoints dobin keypoints cd ${S} dodoc AUTHORS BUGS INSTALL LICENCE LICENCE_SIFT README TODO windows_DOT_NET_compile.txt windows_compile.txt utils/pta2hugin.py }