changeset 19485:d04ee0eb6a11

support for disabling/enabling bitmap font support from configure
author diego
date Mon, 21 Aug 2006 23:19:11 +0000
parents 6eb79b2384f8
children 6710dbdf1ab2
files configure libvo/Makefile mplayer.c
diffstat 3 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Aug 21 22:02:49 2006 +0000
+++ b/configure	Mon Aug 21 23:19:11 2006 +0000
@@ -228,6 +228,7 @@
   --disable-dvdread      Disable libdvdread support [autodetect]
   --disable-mpdvdkit     Disable mpdvdkit2 support [autodetect]
   --disable-cdparanoia   Disable cdparanoia support [autodetect]
+  --disable-bitmap-font  Disable bitmap font support [enable]
   --disable-freetype     Disable freetype2 font rendering support [autodetect]
   --disable-fontconfig   Disable fontconfig font lookup support [autodetect]
   --disable-unrarlib     Disable Unique RAR File Library [enabled]
@@ -1684,6 +1685,7 @@
 _libdv=auto
 _cdparanoia=auto
 _big_endian=auto
+_bitmap_font=yes
 _freetype=auto
 _fontconfig=auto
 _menu=no
@@ -1987,6 +1989,8 @@
   --disable-cdparanoia)	_cdparanoia=no	;;
   --enable-big-endian)  _big_endian=yes ;;
   --disable-big-endian) _big_endian=no  ;;
+  --enable-bitmap-font)    _bitmap_font=yes   ;;
+  --disable-bitmap-font)   _bitmap_font=no    ;;
   --enable-freetype)    _freetype=yes   ;;
   --disable-freetype)   _freetype=no    ;;
   --enable-fontconfig)  _fontconfig=yes ;;
@@ -5256,6 +5260,15 @@
 echores "$_libcdio"
 
 
+echocheck "bitmap font support"
+if test "$_bitmap_font" = yes ; then
+  _def_bitmap_font="#define HAVE_BITMAP_FONT 1"
+else
+  _def_bitmap_font="#undef HAVE_BITMAP_FONT"
+fi
+echores "$_bitmap_font"
+
+
 echocheck "freetype >= 2.0.9"
 
 # freetype depends on iconv
@@ -7394,6 +7407,7 @@
 DIRECTFB_LIB = $_ld_directfb
 CDDA = $_cdda
 CDPARANOIA_LIB = $_ld_cdparanoia
+BITMAP_FONT = $_bitmap_font 
 FREETYPE = $_freetype
 FREETYPE_LIB = $_ld_freetype
 FONTCONFIG_LIB = $_ld_fontconfig
@@ -7993,6 +8007,9 @@
 $_def_gif_4
 $_def_gif_tvt_hack
 
+/* enable bitmap font support */
+$_def_bitmap_font
+
 /* enable FreeType support */
 $_def_freetype
 
--- a/libvo/Makefile	Mon Aug 21 22:02:49 2006 +0000
+++ b/libvo/Makefile	Mon Aug 21 23:19:11 2006 +0000
@@ -5,7 +5,6 @@
 
 SRCS=aclib.c \
      aspect.c \
-     font_load.c \
      geometry.c \
      osd.c \
      spuenc.c \
@@ -24,6 +23,10 @@
 OBJS_TEMP=$(basename $(SRCS))
 OBJS=$(OBJS_TEMP:%=%.o)
 
+ifeq ($(BITMAP_FONT),yes)
+SRCS += font_load.c
+endif
+
 ifeq ($(FREETYPE),yes)
 SRCS += font_load_ft.c
 endif
--- a/mplayer.c	Mon Aug 21 22:02:49 2006 +0000
+++ b/mplayer.c	Mon Aug 21 23:19:11 2006 +0000
@@ -2840,6 +2840,7 @@
   if(!font_fontconfig)
   {
 #endif
+#ifdef HAVE_BITMAP_FONT
   if(font_name){
        vo_font=read_font_desc(font_name,font_factor,verbose>1);
        if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name);
@@ -2850,6 +2851,7 @@
        if(!vo_font)
        vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1);
   }
+#endif
 #ifdef HAVE_FONTCONFIG
   }
 #endif