#bug 203856 diff -Naur graphlcd-0.1.5_orig/Makefile graphlcd-0.1.5/Makefile --- graphlcd-0.1.5_orig/Makefile 2007-02-05 19:24:03.000000000 +0100 +++ graphlcd-0.1.5/Makefile 2007-12-31 02:08:00.000000000 +0100 @@ -9,6 +9,9 @@ # PLUGIN = graphlcd +# define this if you built graphlcd-base with freetype: +HAVE_FREETYPE2 = 1 + ### The version number of this plugin (taken from the main source file): VERSION = $(shell grep 'static const char \*VERSION *=' plugin.c | awk '{ print $$6 }' | sed -e 's/[";]//g') @@ -51,9 +54,12 @@ INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I$(INSTALLPREFIX)/include -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DEFINES += -D_GNU_SOURCE +DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +ifdef HAVE_FREETYPE2 + INCLUDES += -I$(INSTALLPREFIX)/include/freetype2 + DEFINES += -DHAVE_FREETYPE2 +endif ### The object files (add further files here):