# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit git-r3 cmake-multilib MY_PN="vid.stab" DESCRIPTION="Video stabilization library" HOMEPAGE="http://public.hronopik.de/vid.stab/" EGIT_REPO_URI=( {https,git}://github.com/georgmartius/${MY_PN}.git ) #EGIT_COMMIT="v1.1.0" LICENSE="GPL-2+" SLOT="0" KEYWORDS="" IUSE="cpu_flags_x86_sse2 openmp" PATCHES=( "${FILESDIR}/${PN}-gentoo.diff" ) RDEPEND="openmp? ( sys-devel/gcc[openmp] )" DEPEND="${RDEPEND}" src_configure() { use openmp && append-cppflags "-fopenmp -DUSE_OMP" use cpu_flags_x86_sse2 && append-cppflags "-DUSE_SSE2 -msse2 -ffast-math" cmake-multilib_src_configure }