From a78af2a7dca599bb3aaa4570300abec9424dae4b Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Mon, 26 Sep 2016 20:37:44 +0200 Subject: media-libs/openjpeg: Fix static builds - Use same DBUILD_TESTING logic - CODEC must be enabled when tests are enabled Package-Manager: portage-2.3.1 --- media-libs/openjpeg/openjpeg-2.1.1_p20160922.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-libs/openjpeg/openjpeg-2.1.1_p20160922.ebuild b/media-libs/openjpeg/openjpeg-2.1.1_p20160922.ebuild index 5fa0dcbab47c..94dacc4a7e35 100644 --- a/media-libs/openjpeg/openjpeg-2.1.1_p20160922.ebuild +++ b/media-libs/openjpeg/openjpeg-2.1.1_p20160922.ebuild @@ -59,9 +59,9 @@ multilib_src_configure() { if use static-libs; then mycmakeargs=( -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)" - $(cmake-utils_use_build test TESTING) + -DBUILD_TESTING="$(usex test)" -DBUILD_SHARED_LIBS=OFF - -DBUILD_CODEC=OFF + -DBUILD_CODEC="$(usex test)" ) BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure fi -- cgit v1.2.3-65-gdbad