ffmpeg: enable or disable debug based on BR2_ENABLE_DEBUG
authorDanomi Manchego <danomimanchego123@gmail.com>
Tue, 9 Sep 2014 02:06:45 +0000 (22:06 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Sep 2014 20:50:38 +0000 (22:50 +0200)
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>
package/ffmpeg/ffmpeg.mk

index 6339cca99b438323b53bb8ea3646132691f3d629..1481abc8140acb72e480de73734fc21cc97619a0 100644 (file)
@@ -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