summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanomi Manchego <danomimanchego123@gmail.com>2014-09-08 22:06:45 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-09-21 22:50:38 +0200
commitca57e88552759dc729226888e43df26b61487219 (patch)
tree9bebf5748583f18cd961bf0c0b1a498c698f45e5
parent255aab75fc596d58c6f5f15870dd498d09978fc6 (diff)
downloadbuildroot-ca57e88552759dc729226888e43df26b61487219.tar.gz
buildroot-ca57e88552759dc729226888e43df26b61487219.zip
ffmpeg: enable or disable debug based on BR2_ENABLE_DEBUG
Rather than hard-code --disable-debug, selectively enable or disable based on BR2_ENABLE_DEBUG. (Similar to gst1-libav.) [Thomas: do not make other changes such as reformatting the --prefix=/usr line.] Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/ffmpeg/ffmpeg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index 6339cca99b..1481abc814 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -19,7 +19,6 @@ endif
FFMPEG_CONF_OPT = \
--prefix=/usr \
--enable-avfilter \
- --disable-debug \
--disable-version3 \
--enable-logging \
--enable-optimizations \
@@ -67,6 +66,12 @@ FFMPEG_CONF_OPT = \
FFMPEG_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+ifeq ($(BR2_ENABLE_DEBUG),y)
+FFMPEG_CONF_OPT += --enable-debug
+else
+FFMPEG_CONF_OPT += --disable-debug
+endif
+
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
FFMPEG_CONF_OPT += --enable-gpl
else
OpenPOWER on IntegriCloud