# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils MY_P=${P/bundler-/bundler-v} S=${WORKDIR}/${MY_P}-source IUSE="" DESCRIPTION="Bundler is a structure-from-motion system for unordered image collections" HOMEPAGE="http://phototour.cs.washington.edu/${PN}/" SRC_URI="http://phototour.cs.washington.edu/${PN}/distr/${MY_P}-source.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" DEPEND=">=media-libs/jpeg-8 >=virtual/blas-1.0 >=virtual/lapack-3.1" RDEPEND=">=dev-lang/perl-5.12.2-r4 >=media-gfx/imagemagick-6.6.5.6 >=media-gfx/jhead-2.86 ${DEPEND}" src_prepare() { rm bin/jhead* bin/libANN_char* bin/zlib* rm -R lib/jpeg lib/zlib rm -R vc++ epatch "${FILESDIR}/${P}-no-duplicate-lib.patch" epatch "${FILESDIR}/${P}-soname-for-libANN_char.patch" sed -i s/'^\(BASE_PATH=\).*'/'\1"\/usr"'/1 RunBundler.sh } src_install() { exeinto /usr/bin newlib.so lib/libANN_char.so libANN_char.so.1.1.0 dosym libANN_char.so.1.1.0 /usr/$(get_libdir)/libANN_char.so.1 dosym libANN_char.so.1.1.0 /usr/$(get_libdir)/libANN_char.so dobin bin/Bundle2PMVS bin/Bundle2Vis bin/bundler bin/extract_focal.pl \ bin/KeyMatchFull bin/RadialUndistort bin/ToSift.sh doexe RunBundler.sh dodoc CHANGELOG README.txt }