mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
libav: Add PACKAGECONFIG options: avdevice, avfilter, avplay, gpl
(From OE-Core rev: 896c27d45d77a2bb57b3cd350b60f1bd97dd13dc) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7ba85f1c13
commit
fda98598f0
@@ -34,9 +34,13 @@ BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
|
|||||||
EXTRA_FFCONF_armv7a = "--cpu=cortex-a8"
|
EXTRA_FFCONF_armv7a = "--cpu=cortex-a8"
|
||||||
EXTRA_FFCONF ?= ""
|
EXTRA_FFCONF ?= ""
|
||||||
|
|
||||||
PACKAGECONFIG ??= "bzip2 x264 theora ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
|
PACKAGECONFIG ??= "avdevice avfilter avplay bzip2 gpl theora x264 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
|
||||||
|
PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"
|
||||||
|
PACKAGECONFIG[avfilter] = "--enable-avfilter,--disable-avfilter"
|
||||||
|
PACKAGECONFIG[avplay] = "--enable-avplay,--disable-avplay"
|
||||||
PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2"
|
PACKAGECONFIG[bzip2] = "--enable-bzlib,--disable-bzlib,bzip2"
|
||||||
PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"
|
PACKAGECONFIG[faac] = "--enable-libfaac,--disable-libfaac,faac"
|
||||||
|
PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
|
||||||
PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
|
PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
|
||||||
PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
|
PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
|
||||||
PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
|
PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
|
||||||
@@ -56,14 +60,11 @@ USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ],
|
|||||||
EXTRA_OECONF = " \
|
EXTRA_OECONF = " \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-pthreads \
|
--enable-pthreads \
|
||||||
--enable-gpl \
|
|
||||||
${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
|
${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
|
||||||
--enable-avfilter \
|
|
||||||
\
|
\
|
||||||
--cross-prefix=${TARGET_PREFIX} \
|
--cross-prefix=${TARGET_PREFIX} \
|
||||||
--prefix=${prefix} \
|
--prefix=${prefix} \
|
||||||
\
|
\
|
||||||
--enable-avplay \
|
|
||||||
--ld="${CCLD}" \
|
--ld="${CCLD}" \
|
||||||
--arch=${TARGET_ARCH} \
|
--arch=${TARGET_ARCH} \
|
||||||
--target-os="linux" \
|
--target-os="linux" \
|
||||||
@@ -87,7 +88,9 @@ do_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/
|
if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'avfilter', 'yes', '', d)}" ]; then
|
||||||
|
install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES += "${PN}-vhook-dbg ${PN}-vhook ffmpeg-x264-presets"
|
PACKAGES += "${PN}-vhook-dbg ${PN}-vhook ffmpeg-x264-presets"
|
||||||
|
|||||||
Reference in New Issue
Block a user