1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils toolchain-funcs
12 DESCRIPTION="refocus images using FIR Wiener filtering"
13 HOMEPAGE="http://refocus.sourceforge.net"
14 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 RDEPEND="lapack-atlas? (
33 epatch "${FILESDIR}"/${MY_PN}-gimp-2.0.patch
34 epatch "${FILESDIR}"/${MY_PN}-0.9.0-gimp-2.2_rlx.diff
35 epatch "${FILESDIR}"/${PN}-gimp2.6.patch
36 epatch "${FILESDIR}"/${PN}-atlas.patch
42 export GIMPTOOL="/usr/bin/gimptool-2.0"
44 if use lapack-atlas; then
45 econf --with-lapack-libs="$($(tc-getPKG_CONFIG) --libs lapack)" \
46 --with-lapack-includes="$($(tc-getPKG_CONFIG) --cflags lapack)"
53 exeinto "$(gimptool-2.0 --gimpplugindir)/plug-ins"
54 doexe src/refocus || die