# Copyright 2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" inherit eutils toolchain-funcs cmake-utils DESCRIPTION="elastix: a toolbox for rigid and nonrigid registration of images" HOMEPAGE="http://elastix.isi.uu.nl/" SRC_URI="http://elastix.isi.uu.nl/download/elastix_sources_v${PV}.zip" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" IUSE="debug" RDEPEND="sys-libs/zlib >=sci-libs/itk-4.2 " DEPEND="${RDEPEND} >=dev-util/cmake-2.8 app-arch/unzip " MY_PN=elastix S="${WORKDIR}/${MY_PN}-${PV}/src" src_unpack() { mkdir ${MY_PN}-${PV} cd ${MY_PN}-${PV} unpack ${A} epatch "${FILESDIR}/elastix-4.6-honour-disabled-mevisdicomtiff.patch" cd .. } src_configure() { local mycmakeargs=( #make sure this is OFF because it will search for itk_tiff.h that doesn't exist anymore # -DELASTIX_USE_MEVISDICOMTIFF=OFF #turn this on, because otherwiese libANN is not build the the linker wants it later # -DUSE_KNNGraphAlphaMutualInformationMetric=ON ) cmake-utils_src_configure }