From: Bernd Kuhls Date: Sun, 29 Mar 2015 17:11:19 +0000 (+0200) Subject: package/mplayer: add optional ncurses support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7220d1f2106edd122f034ac767c1fc81fb2d71d9;p=buildroot.git 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 --- 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 \