summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-30 12:41:05 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-30 12:41:05 +0000
commitbc93e2529900f55f16a299ec91d5e084f169f242 (patch)
treeb5eb27eb91a2aa7fb650f9f939aae497fe7b0224 /libvo
parent52b8a22453c87bb987e371fb3ebacf0d231a7fc9 (diff)
downloadmpv-bc93e2529900f55f16a299ec91d5e084f169f242.tar.bz2
mpv-bc93e2529900f55f16a299ec91d5e084f169f242.tar.xz
Move conditional FreeType support compilation to the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18869 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/Makefile5
-rw-r--r--libvo/font_load_ft.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/libvo/Makefile b/libvo/Makefile
index 6e7560e699..6851f83fab 100644
--- a/libvo/Makefile
+++ b/libvo/Makefile
@@ -6,7 +6,6 @@ LIBNAME = libvo.a
SRCS=aclib.c \
aspect.c \
font_load.c \
- font_load_ft.c \
geometry.c \
osd.c \
spuenc.c \
@@ -25,6 +24,10 @@ endif
OBJS_TEMP=$(basename $(SRCS))
OBJS=$(OBJS_TEMP:%=%.o)
+ifeq ($(FREETYPE),yes)
+SRCS += font_load_ft.c
+endif
+
ifeq ($(VIDIX),yes)
SRCS += vosub_vidix.c
endif
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c
index 13e9421319..e1d475f4a8 100644
--- a/libvo/font_load_ft.c
+++ b/libvo/font_load_ft.c
@@ -11,8 +11,6 @@
#include "config.h"
-#ifdef HAVE_FREETYPE
-
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@ -1170,5 +1168,3 @@ void load_font_ft(int width, int height)
vo_font=read_font_desc_ft(font_name, width, height);
#endif
}
-
-#endif /* HAVE_FREETYPE */