summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-10-31 20:06:48 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-11-16 00:36:50 +0100
commit686a963478c33ea1b28acd15d026062eed154128 (patch)
treef32dc215c33c4cea38cbe60b4d17bb3c6d385cef /media-libs
parentmedia-libs/mlt: Add patches to drop bogus Qt5OpenGL DEPEND (diff)
downloadgentoo-686a963478c33ea1b28acd15d026062eed154128.tar.gz
gentoo-686a963478c33ea1b28acd15d026062eed154128.tar.bz2
gentoo-686a963478c33ea1b28acd15d026062eed154128.zip
media-libs/mlt: string to array
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/mlt/mlt-6.4.1-r5.ebuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/media-libs/mlt/mlt-6.4.1-r5.ebuild b/media-libs/mlt/mlt-6.4.1-r5.ebuild
index 05105d0264dd..f03b17023623 100644
--- a/media-libs/mlt/mlt-6.4.1-r5.ebuild
+++ b/media-libs/mlt/mlt-6.4.1-r5.ebuild
@@ -118,7 +118,8 @@ src_configure() {
# bug 589848
append-cxxflags -std=c++11
- local myconf="--enable-gpl
+ local myconf=(
+ --enable-gpl
--enable-gpl3
--enable-motion-est
--target-arch=$(tc-arch)
@@ -144,21 +145,24 @@ src_configure() {
$(use_enable xml)
$(use_enable xine)
$(use_enable kdenlive)
- --disable-sox"
+ --disable-sox
+ )
#$(use_enable sox) FIXME
if use qt5 ; then
- myconf+=" --enable-qt
+ myconf+=(
+ --enable-qt
--qt-includedir=$(pkg-config Qt5Core --variable=includedir)
- --qt-libdir=$(pkg-config Qt5Core --variable=libdir)"
+ --qt-libdir=$(pkg-config Qt5Core --variable=libdir)
+ )
else
- myconf+=" --disable-qt"
+ myconf+=( --disable-qt )
fi
if use x86 || use amd64 ; then
- myconf+=" $(use_enable cpu_flags_x86_mmx mmx)"
+ myconf+=( $(use_enable cpu_flags_x86_mmx mmx) )
else
- myconf+=" --disable-mmx"
+ myconf+=( --disable-mmx )
fi
if ! use melt; then
@@ -168,14 +172,14 @@ src_configure() {
# TODO: add swig language bindings
# see also https://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover
- local swig_lang
+ local swig_lang=()
# TODO: java perl php tcl
for i in lua python ruby ; do
- use $i && swig_lang="${swig_lang} $i"
+ use $i && swig_lang+=( $i )
done
- [ -z "${swig_lang}" ] && swig_lang="none"
+ [[ -z ${swig_lang} ]] && swig_lang=( none )
- econf ${myconf} --swig-languages="${swig_lang}"
+ econf ${myconf[@]} --swig-languages="${swig_lang[@]}"
sed -i -e s/^OPT/#OPT/ "${S}/config.mak" || die
}