From 0cf1308e21777a13e7b30fc90bad10cb60314747 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 13 Apr 2008 10:44:21 +0000 Subject: [PATCH] Add Makefile variable for DVB OSD menu, saves one ifeq. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26434 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Makefile | 4 +--- configure | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8616896b55..ac9863bd43 100644 --- a/Makefile +++ b/Makefile @@ -98,9 +98,6 @@ SRCS_MPLAYER = mplayer.c \ input/input.c \ SRCS_MPLAYER-$(APPLE_REMOTE) += input/ar.c -ifeq ($(LIBMENU), yes) -SRCS_MPLAYER-$(DVBIN) += libmenu/menu_dvbin.c -endif SRCS_MPLAYER-$(GUI_GTK) += gui/app.c \ gui/bitmap.c \ gui/cfg.c \ @@ -150,6 +147,7 @@ SRCS_MPLAYER-$(LIBMENU) += libmenu/menu.c \ libmenu/menu_txt.c \ libmenu/vf_menu.c \ +SRCS_MPLAYER-$(LIBMENU_DVBIN) += libmenu/menu_dvbin.c SRCS_MPLAYER-$(LIRC) += input/lirc.c OBJS_MPLAYER-$(PE_EXECUTABLE) += osdep/mplayer-rc.o diff --git a/configure b/configure index 4e72a355ce..0a533b912c 100755 --- a/configure +++ b/configure @@ -7192,8 +7192,10 @@ echores "$_byte_order" echocheck "OSD menu" if test "$_menu" = yes ; then _def_menu='#define HAVE_MENU 1' + test $_dvbin = "yes" && _menu_dvbin=yes else _def_menu='#undef HAVE_MENU' + _menu_dvbin=no fi echores "$_menu" @@ -7695,6 +7697,7 @@ VIDIX_PCIDB = $_vidix_pcidb_val CONFIG_POSTPROC = yes MP3LAME = $_mp3lame LIBMENU = $_menu +LIBMENU_DVBIN = $_menu_dvbin MP3LIB = $_mp3lib LIBA52 = $_liba52