$NetBSD: patch-ab,v 1.1 2006/09/22 21:53:57 joerg Exp $ --- config/cf/X11.tmpl.orig 2005-12-15 00:41:52.000000000 +0100 +++ config/cf/X11.tmpl @@ -4042,27 +4042,6 @@ InstallNamedTargetNoClobber(install,file * MakeFcCache - generate rules to build fontconfig cache database */ -#if defined UseFreetype2 && !CrossCompiling - -# ifndef MakeFcCache -# define MakeFcCache(deplist) @@\ -all:: fonts.cache @@\ - @@\ -fonts.cache: deplist @@\ - RunProgram(FCCACHE, $(FCCACHEOPTS) .) @@\ - @@\ -clean:: @@\ - RemoveFiles(fonts.cache*) -# endif /* MakeFcCache */ - -# ifndef InstallFcCache -# define InstallFcCache(dest) @@\ -install:: @@\ - RunProgram(FCCACHE, $(FCCACHEOPTS) $(DESTDIR)dest) -# endif /* InstallFcCache */ - -#else - #ifndef MakeFcCache #define MakeFcCache(deplist) #endif @@ -4071,8 +4050,6 @@ install:: @@\ #define InstallFcCache(dest) #endif -#endif - /* * MakeFontsScale - generate rules to build fonts.scale database. */ @@ -4098,21 +4075,9 @@ clean:: @@\ * MakeFontsDir - generate rules to build fonts.dir database. */ #ifndef MakeFontsDir -# if !CrossCompiling || UseInstalledOnCrossCompile # define MakeFontsDir(deplist) @@\ -all:: fonts.dir @@\ - @@\ -fonts.dir: deplist @@\ - RemoveFile(fonts.dir) @@\ - RunProgram(MKFONTDIR, $(MKFONTDIROPTS) .) @@\ - @@\ clean:: @@\ RemoveFile(fonts.dir) -# else -# define MakeFontsDir(deplist) @@\ -clean:: @@\ - RemoveFile(fonts.dir) -# endif #endif /* MakeFontsDir */ @@ -4138,21 +4103,7 @@ clean:: @@\ #endif /* MakeFonts */ #ifndef InstallFontsDir -# if !CrossCompiling || UseInstalledOnCrossCompile -# define InstallFontsDir(dest) @@\ -install:: @@\ - MakeDir($(DESTDIR)dest) @@\ - @if [ X$(STATIC_FONTS_SCALE) = X ]; then (set -x; \ @@\ - RemoveFile($(DESTDIR)dest/fonts.scale); \ @@\ - RunProgram(MKFONTSCALE, $(DESTDIR)dest)); \ @@\ - else (set -x; \ @@\ - InstallInline(fonts.scale,$(INSTDATFLAGS),dest)); \ @@\ - fi @@\ - RemoveFile($(DESTDIR)dest/fonts.dir) @@\ - RunProgram(MKFONTDIR, $(MKFONTDIROPTS) $(DESTDIR)dest) -# else # define InstallFontsDir(dest) -# endif #endif /* @@ -4348,12 +4299,7 @@ InstallEncObjs($(OBJS),dest) #endif /* InstallEncodings */ #ifndef InstallEncodingsDir -# if !CrossCompiling || UseInstalledOnCrossCompile -# define InstallEncodingsDir(edir,fdir) @@\ -InstallNamedTarget(install,edir/encodings.dir,$(INSTDATFLAGS),fdir,encodings.dir) -# else # define InstallEncodingsDir(edir,fdir) -# endif #endif