From 6d1ae9655f0dec2fcb678c489c80c305b9f174af Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 9 Jul 2006 22:11:53 +0000 Subject: Simplify ASS handling second try, this time taking FreeType into account. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18987 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Makefile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2ed2853e05..2e5aec7174 100644 --- a/Makefile +++ b/Makefile @@ -60,10 +60,6 @@ ifeq ($(UNRARLIB),yes) SRCS_COMMON += unrarlib.c endif -ifeq ($(FREETYPE),yes) -SRCS_MENCODER += libvo/font_load_ft.c -endif - OBJS_MENCODER = $(SRCS_MENCODER:.c=.o) OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) @@ -82,12 +78,6 @@ ifeq ($(EXTERNAL_VIDIX),yes) VO_LIBS += $(EXTERNAL_VIDIX_LIB) endif -ASS_LIB = - -ifeq ($(CONFIG_ASS),yes) -ASS_LIB += libass/libass.a -endif - AO_LIBS = $(ARTS_LIB) \ $(ESD_LIB) \ $(JACK_LIB) \ @@ -119,13 +109,11 @@ COMMON_LIBS = libmpcodecs/libmpcodecs.a \ $(W32_LIB) \ libaf/libaf.a \ libmpdemux/libmpdemux.a \ - $(ASS_LIB) \ libswscale/libswscale.a \ osdep/libosdep.a \ $(DVDREAD_LIB) \ $(DVDNAV_LIB) \ $(CODEC_LIBS) \ - $(FREETYPE_LIB) \ $(TERMCAP_LIB) \ $(CDPARANOIA_LIB) \ $(MPLAYER_NETWORK_LIB) \ @@ -263,9 +251,14 @@ COMMON_DEPS += libmpdvdkit2/libmpdvdkit.a endif ifeq ($(CONFIG_ASS),yes) COMMON_DEPS += libass/libass.a +COMMON_LIBS += libass/libass.a PARTS += libass endif - +# FreeType needs to come after ASS to avoid link failures on MinGW +ifeq ($(FREETYPE),yes) +SRCS_MENCODER += libvo/font_load_ft.c +COMMON_LIBS += $(FREETYPE_LIB) +endif ifeq ($(GUI),yes) COMMON_DEPS += Gui/libgui.a GUI_LIBS = Gui/libgui.a -- cgit v1.2.3