From 7220d1f2106edd122f034ac767c1fc81fb2d71d9 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 29 Mar 2015 19:11:19 +0200 Subject: [PATCH] package/mplayer: add optional ncurses support [Thomas: don't pass --enable-termcap, and rely on autodetection instead of forcing -lncurses.] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/mplayer/mplayer.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk index 70a8842ea2..06cddf60fe 100644 --- a/package/mplayer/mplayer.mk +++ b/package/mplayer/mplayer.mk @@ -45,6 +45,15 @@ else MPLAYER_CONF_OPTS += --disable-freetype endif +# We intentionally don't pass --enable-termcap, in order to let the +# autodetection find with which library to link with. Otherwise, we +# would have to pass it manually. +ifeq ($(BR2_PACKAGE_NCURSES),y) +MPLAYER_DEPENDENCIES += ncurses +else +MPLAYER_CONF_OPTS += --disable-termcap +endif + ifeq ($(BR2_PACKAGE_LIBDVDREAD),y) MPLAYER_CONF_OPTS += \ --enable-dvdread \