XCOMM $XFree86: xc/lib/freetype2/freetype/config/Imakefile,v 1.13 2003/10/31 20:49:05 herrb Exp $ FREETYPETOP = $(TOP)/extras/freetype2 FREETYPESRC = $(FREETYPETOP)/src FREETYPEINC = $(FREETYPETOP)/include/freetype HEADERS= \ ftconfig.h \ ftheader.h \ ftmodule.h \ ftoption.h \ ftstdlib.h BuildIncludes($(HEADERS),freetype2/freetype/config,../../..) InstallMultipleFlags($(HEADERS),$(INCDIR)/freetype2/freetype/config,$(INSTINCFLAGS)) #if 0 LinkSourceFile(ftconfig.h,$(FREETYPEINC)/config) #else LinkSourceFile(ftconfig.h,$(FONTLIBSRC)/FreeType) #endif LinkSourceFile(ftheader.h,$(FREETYPEINC)/config) LinkSourceFile(ftmodule.h,$(FREETYPEINC)/config) LinkSourceFile(ftoption.h,$(FREETYPEINC)/config) LinkSourceFile(ftstdlib.h,$(FREETYPEINC)/config) XCOMM Build and install a configure-compatible freetype-config LinkSourceFile(freetype-config.in,$(FREETYPETOP)/builds/unix) FREETYPE_VERSION=Freetype2Version RPATH_CFLAG = HardCodeLibdirFlag freetype-config: freetype-config.in sed -e s%@prefix@%$(PROJECTROOT)% -e s%@exec_prefix@%$(PROJECTROOT)% \ -e s%@libdir@%$(USRLIBDIR)%g -e s%@includedir@%$(INCDIR)% \ -e s%@ft_version@%$(FREETYPE_VERSION)% -e s%@LIBZ@%% \ -e s%@hardcode_libdir_flag_spec@%$(RPATH_CFLAG)% \ < freetype-config.in > $@ includes:: freetype-config InstallNamedProg(freetype-config,freetype-config,$(BINDIR)) clean:: RemoveFile(freetype-config)