summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/mplayer/mplayer.mk9
1 files changed, 9 insertions, 0 deletions
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 \
OpenPOWER on IntegriCloud