瀏覽代碼

package/vlc: add optional dependency to libsamplerate

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Bernd Kuhls 7 年之前
父節點
當前提交
70858702a7
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      package/vlc/vlc.mk

+ 7 - 1
package/vlc/vlc.mk

@@ -51,7 +51,6 @@ VLC_CONF_OPTS += \
 	--disable-mmal-vout \
 	--disable-mtp \
 	--disable-projectm \
-	--disable-samplerate \
 	--disable-schroedinger \
 	--disable-shout \
 	--disable-twolame \
@@ -262,6 +261,13 @@ else
 VLC_CONF_OPTS += --disable-svg --disable-svgdec
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
+VLC_CONF_OPTS += --enable-samplerate
+VLC_DEPENDENCIES += libsamplerate
+else
+VLC_CONF_OPTS += --disable-samplerate
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSSH2),y)
 VLC_CONF_OPTS += --enable-sftp
 VLC_DEPENDENCIES += libssh2