Skip to content

Commit

Permalink
media-libs/mlt: Fix configure with USE=qt4, bug 570576
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
a17r authored and kensington committed Jan 2, 2016
1 parent dbd5386 commit c0117cc
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,15 @@ src_configure() {

# kde means kde4 at this point
if use qt5 ; then
myconf+=" --enable-qt $(use_with opengl)
myconf+=" --enable-qt
--qt-includedir=$(pkg-config Qt5Core --variable=includedir)
--qt-libdir=$(pkg-config Qt5Core --variable=libdir)"
elif use qt4 ; then
myconf+=" --enable-qt $(use_with opengl) $(use_with kde)
--qt-includedir=$(pkg-config QtCore --variable=includedir)
# pkg-config QtCore does not give us qt4 parent include dir
local qtinclude=$(pkg-config QtCore --variable=includedir)
[[ ${qtinclude} == *QtCore ]] && qtinclude=$(dirname ${qtinclude})
myconf+=" --enable-qt $(use_with kde)
--qt-includedir=${qtinclude}
--qt-libdir=$(pkg-config QtCore --variable=libdir)"
else
myconf+=" --disable-qt"
Expand All @@ -167,7 +170,13 @@ src_configure() {
[ -z "${swig_lang}" ] && swig_lang="none"

econf ${myconf} --swig-languages="${swig_lang}"

sed -i -e s/^OPT/#OPT/ "${S}/config.mak" || die
if use qt5 || use qt4 ; then
if ! use opengl ; then
sed -i -e "/^USE_QT_OPENGL/ s/^/#/" "${S}/src/modules/qt/config.mak" || die
fi
fi
}

src_install() {
Expand Down

0 comments on commit c0117cc

Please sign in to comment.