diff options
Diffstat (limited to 'media-libs/vidstab/vidstab-1.1.0-r1.ebuild')
-rw-r--r-- | media-libs/vidstab/vidstab-1.1.0-r1.ebuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/media-libs/vidstab/vidstab-1.1.0-r1.ebuild b/media-libs/vidstab/vidstab-1.1.0-r1.ebuild index 31b7ac658193..3c4dc91eba9a 100644 --- a/media-libs/vidstab/vidstab-1.1.0-r1.ebuild +++ b/media-libs/vidstab/vidstab-1.1.0-r1.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/georgmartius/vid.stab/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" S="${WORKDIR}/vid.stab-${PV}" fi @@ -24,14 +24,16 @@ SLOT="0" IUSE="openmp cpu_flags_x86_sse2" PATCHES=( "${FILESDIR}/vidstab-1.1.0-tests-should-exit-with-code-0-on-success.patch" + "${FILESDIR}/vidstab-1.1.0-tests-use-sse2-only-if-available.patch" ) src_prepare() { # USE=cpu_flags_x86_sse2 instead - sed -E 's#include (FindSSE)##' -i CMakeLists.txt + sed -E 's#include (FindSSE)##' -i CMakeLists.txt || die + sed -E 's#include (FindSSE)##' -i tests/CMakeLists.txt || die # strip some CFLAGS for FILE_TO_PATCH in {,transcode/,tests/}CMakeLists.txt; do - sed -E 's#(add_definitions.* )-g #\1#' -i ${FILE_TO_PATCH} - sed -E 's#(add_definitions.* )-O3 #\1#' -i ${FILE_TO_PATCH} + sed -E 's#(add_definitions.* )-g #\1#' -i ${FILE_TO_PATCH} || die + sed -E 's#(add_definitions.* )-O3 #\1#' -i ${FILE_TO_PATCH} || die done cmake-utils_src_prepare } @@ -48,6 +50,7 @@ src_configure() { multilib_src_test() { local mycmakeargs=( -DUSE_OMP="$(usex openmp)" + -DSSE2_FOUND="$(usex cpu_flags_x86_sse2)" ) local CMAKE_USE_DIR="${CMAKE_USE_DIR}/tests" local BUILD_DIR="${BUILD_DIR}/tests" |