summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-05-04 14:10:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-09 07:50:14 +0100
commite846f0bea3e0a803b38b3b88bc70ab443da0fae4 (patch)
tree45b27aeed31574e2043b95a2c9d7fdf371d7a249 /meta/recipes-multimedia
parentab8accbf14f4b6f8c7d72e0a7fba8db47f1bd9ca (diff)
downloadpoky-e846f0bea3e0a803b38b3b88bc70ab443da0fae4.tar.gz
Revert "ffmpeg: move ffmpeg config into packageconfig"
There's very little reason to expose "build shared libraries", "build position-independent code", or "enable threads" as recipe-specific packageconfig options. Revert the commit which did this and explicitly set the relevant options in EXTRA_OECONF. This reverts commit b6e67e3d287407c6f022bbe672d9d206d90a12a4. (From OE-Core rev: ec62603a348154d837d5f0cbd52bb12468973341) (From OE-Core rev: 521a084190f72fc7a8783571829bd697e2baa1f0) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb15
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb
index 7db43a8281..1cd98e63c3 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb
@@ -40,8 +40,7 @@ DEPENDS = "nasm-native"
40inherit autotools pkgconfig 40inherit autotools pkgconfig
41 41
42PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \ 42PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \
43 alsa bzlib lzma pic pthreads shared theora zlib \ 43 alsa bzlib lzma theora zlib \
44 ${@bb.utils.contains('AVAILTUNES', 'mips32r2', 'mips32r2', '', d)} \
45 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}" 44 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}"
46 45
47# libraries to build in addition to avutil 46# libraries to build in addition to avutil
@@ -80,13 +79,6 @@ PACKAGECONFIG[xcb] = "--enable-libxcb,--disable-libxcb,libxcb"
80PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv" 79PACKAGECONFIG[xv] = "--enable-outdev=xv,--disable-outdev=xv,libxv"
81PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" 80PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
82 81
83# other configuration options
84PACKAGECONFIG[mips32r2] = ",--disable-mipsdsp --disable-mipsdspr2"
85PACKAGECONFIG[pic] = "--enable-pic"
86PACKAGECONFIG[pthreads] = "--enable-pthreads,--disable-pthreads"
87PACKAGECONFIG[shared] = "--enable-shared"
88PACKAGECONFIG[strip] = ",--disable-stripping"
89
90# Check codecs that require --enable-nonfree 82# Check codecs that require --enable-nonfree
91USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}" 83USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'openssl' ], 'yes', '', d)}"
92 84
@@ -97,6 +89,10 @@ def cpu(d):
97 return 'generic' 89 return 'generic'
98 90
99EXTRA_OECONF = " \ 91EXTRA_OECONF = " \
92 --disable-stripping \
93 --enable-pic \
94 --enable-shared \
95 --enable-pthreads \
100 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \ 96 ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
101 \ 97 \
102 --cross-prefix=${TARGET_PREFIX} \ 98 --cross-prefix=${TARGET_PREFIX} \
@@ -114,6 +110,7 @@ EXTRA_OECONF = " \
114 --libdir=${libdir} \ 110 --libdir=${libdir} \
115 --shlibdir=${libdir} \ 111 --shlibdir=${libdir} \
116 --datadir=${datadir}/ffmpeg \ 112 --datadir=${datadir}/ffmpeg \
113 ${@bb.utils.contains('AVAILTUNES', 'mips32r2', '', '--disable-mipsdsp --disable-mipsdspr2', d)} \
117 --cpu=${@cpu(d)} \ 114 --cpu=${@cpu(d)} \
118 --pkg-config=pkg-config \ 115 --pkg-config=pkg-config \
119" 116"