summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-12-10 11:27:22 +0100
committerDavid Seifert <soap@gentoo.org>2016-12-10 11:28:20 +0100
commitf18edb2a313dfbf9b1bb083fecae0edb40612a60 (patch)
treed12dfed5848f704250d62f568cc48ce161f4112e /media-libs/jasper
parentnet-misc/remmina: Drop live ebuild (#602134) and unused patch. (diff)
downloadgentoo-f18edb2a313dfbf9b1bb083fecae0edb40612a60.tar.gz
gentoo-f18edb2a313dfbf9b1bb083fecae0edb40612a60.tar.bz2
gentoo-f18edb2a313dfbf9b1bb083fecae0edb40612a60.zip
media-libs/jasper: Fix automagic logic
Gentoo-bug: 602186 Package-Manager: portage-2.3.3
Diffstat (limited to 'media-libs/jasper')
-rw-r--r--media-libs/jasper/jasper-2.0.5.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/media-libs/jasper/jasper-2.0.5.ebuild b/media-libs/jasper/jasper-2.0.5.ebuild
index 0582d9cda28f..5eb318c69bc0 100644
--- a/media-libs/jasper/jasper-2.0.5.ebuild
+++ b/media-libs/jasper/jasper-2.0.5.ebuild
@@ -41,18 +41,25 @@ DEPEND="${RDEPEND}
multilib_src_configure() {
local mycmakeargs=(
- -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
-DALLOW_IN_SOURCE_BUILD=OFF
-DBASH_PROGRAM="${EPREFIX}"/bin/bash
-DJAS_ENABLE_ASAN=OFF
- -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
-DJAS_ENABLE_LSAN=OFF
-DJAS_ENABLE_MSAN=OFF
- -DJAS_ENABLE_OPENGL=$(usex opengl)
-DJAS_ENABLE_SHARED=ON
-DJAS_ENABLE_STRICT=ON
-DJAS_ENABLE_USAN=OFF
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
+
+ # JPEG
+ -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+ -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=$(usex !jpeg)
+
+ # OpenGL
+ -DJAS_ENABLE_OPENGL=$(usex opengl)
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=$(usex !opengl)
+
+ # Doxygen
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
)
cmake-utils_src_configure