app-text/poppler: fix build with jpeg or jpeg2k USE flags disabled
authorMichael Palimaka <kensington@gentoo.org>
Sat, 3 Jun 2017 15:38:20 +0000 (01:38 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Sat, 3 Jun 2017 15:38:35 +0000 (01:38 +1000)
Thanks to those that suggested solutions on the bugs.

Gentoo-bug: 619568
Gentoo-bug: 619720
Package-Manager: Portage-2.3.5, Repoman-2.3.2

app-text/poppler/poppler-0.55.0-r1.ebuild

index df90008fc2504766bf355462685bc8defa6399d7..d429f13df27e20bebf663fb5544c276918391955 100644 (file)
@@ -111,10 +111,15 @@ src_configure() {
                $(cmake-utils_use_find_package qt5 Qt5Core)
                -DWITH_TIFF="$(usex tiff)"
        )
+       if use jpeg; then
+               mycmakeargs+=(-DENABLE_DCTDECODER=libjpeg)
+       else
+               mycmakeargs+=(-DENABLE_DCTDECODER=none)
+       fi
        if use jpeg2k; then
                mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2)
        else
-               mycmakeargs+=(-DENABLE_LIBOPENJPEG=)
+               mycmakeargs+=(-DENABLE_LIBOPENJPEG=none)
        fi
        if use lcms; then
                mycmakeargs+=(-DENABLE_CMS=lcms2)