aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/Xft/Imakefile
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
commitf4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch)
tree2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/lib/Xft/Imakefile
parenta840692edc9c6d19cd7c057f68e39c7d95eb767d (diff)
downloadnx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository
Diffstat (limited to 'nx-X11/lib/Xft/Imakefile')
-rw-r--r--nx-X11/lib/Xft/Imakefile145
1 files changed, 145 insertions, 0 deletions
diff --git a/nx-X11/lib/Xft/Imakefile b/nx-X11/lib/Xft/Imakefile
new file mode 100644
index 000000000..4b827be5c
--- /dev/null
+++ b/nx-X11/lib/Xft/Imakefile
@@ -0,0 +1,145 @@
+XCOMM $XFree86: xc/lib/Xft/Imakefile,v 1.28 2003/11/17 15:18:04 tsi Exp $
+XCOMM $XdotOrg: xc/lib/Xft/Imakefile,v 1.5 2005/10/19 02:46:56 kem Exp $
+
+#define DoNormalLib NormalLibXft
+#define DoSharedLib SharedLibXft
+#define DoExtraLib SharedLibXft
+#define DoDebugLib DebugLibXft
+#define DoProfileLib ProfileLibXft
+
+#define HasSharedData YES
+#define LibName Xft
+#define SoRev SOXFTREV
+#define IncSubdir X11
+#define IncSubSubdir Xft
+
+#include <Threads.tmpl>
+
+#ifndef XftLibDir
+#define XftLibDir $(LIBDIR)
+#endif
+
+#ifndef XftType1Dir
+#define XftType1Dir $(LIBDIR)/fonts/Type1
+#endif
+
+#ifdef UseInstalled
+/* when using xmkmf, make sure the needed definitions for the fontconfig
+ * library are available
+ */
+
+#ifndef SharedFontconfigRev
+#define SharedFontconfigRev 1.0.4
+SharedLibReferences(FONTCONFIG,fontconfig,$(FONTCONFIGLIBSRC),SOFONTCONFIGREV,SharedFontconfigRev)
+#endif
+
+/* make sure we're building the right major version */
+SOXFTREV=2.1
+
+#endif
+
+XFTLIBDIR=XftLibDir
+
+TYPE1DIR=XftType1Dir
+#if HasGcc2 || HasGcc3
+WARNINGS=-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
+#endif
+INCLUDES=$(FONTCONFIGINCLUDES) $(FREETYPE2INCLUDES) -I$(XBUILDINCDIR) $(WARNINGS)
+DEFINES=$(FREETYPE2DEFINES) $(RENDERDEFINES) -DXFREE86_FT2
+
+XFT_REVISION=8
+XFT_VERSION=2.1.$(XFT_REVISION)
+
+FREETYPE_LIBS=$(FREETYPE2LIB)
+FREETYPE_CFLAGS=$(FREETYPE2INCLUDES)
+XRENDER_LIBS=$(XRENDERLIB)
+XRENDER_CFLAGS=$(XRENDERINCLUDES)
+FONTCONFIG_CFLAGS=$(FONTCONFIGINCLUDES)
+FONTCONFIG_LIBS=$(FONTCONFIGLIB)
+
+#if !defined(UseInstalled)
+
+/* these must always be computed using the installed location,
+ * when building inside the tree that means extra work
+ */
+#if BuildFontconfigLibrary
+FONTCONFIG_LIBS=-L$(USRLIBDIR) -lfontconfig
+FONTCONFIG_CFLAGS=-I$(INCROOT)
+#endif
+
+#if BuildFreetype2Library
+FREETYPE_LIBS=-L$(USRLIBDIR) -lfreetype
+FREETYPE_CFLAGS=-I$(INCROOT)/freetype2
+#endif
+
+#if BuildRenderLibrary
+XRENDER_LIBS=-L$(USRLIBDIR) -lXrender
+XRENDER_CFLAGS=-I$(INCROOT)
+#endif
+
+#endif
+
+RPATH_CFLAG = HardCodeLibdirFlag
+
+SUBSTVARS=prefix="$(PROJECTROOT)" \
+ exec_prefix="$(BINDIR)" \
+ libdir="$(USRLIBDIR)" \
+ hardcode_libdir_flag_spec="$(RPATH_CFLAG)" \
+ includedir="$(INCROOT)" \
+ VERSION="$(XFT_VERSION)" \
+ FREETYPE_LIBS="$(FREETYPE_LIBS)" \
+ FREETYPE_CFLAGS="$(FREETYPE_CFLAGS)" \
+ XRENDER_LIBS="$(XRENDER_LIBS)" \
+ XRENDER_CFLAGS="$(XRENDER_CFLAGS)" \
+ FONTCONFIG_CFLAGS="$(FONTCONFIG_CFLAGS)" \
+ FONTCONFIG_LIBS="$(FONTCONFIG_LIBS)"
+
+REQUIREDLIBS=$(LDPRELIBS) $(XRENDERLIB) $(XLIB) $(FONTCONFIGLIB) $(EXPATLIB) $(FREETYPE2LIB)
+
+HEADERS = Xft.h XftCompat.h
+
+ SRCS = xftcolor.c xftdbg.c xftdpy.c \
+ xftdraw.c xftextent.c xftfont.c \
+ xftinit.c xftlist.c \
+ xftname.c xftstr.c xftswap.c xftxlfd.c \
+ xftfreetype.c xftglyphs.c xftrender.c xftcore.c
+
+ OBJS = xftcolor.o xftdbg.o xftdpy.o \
+ xftdraw.o xftextent.o xftfont.o \
+ xftinit.o xftlist.o \
+ xftname.o xftstr.o xftswap.o xftxlfd.o \
+ xftfreetype.o xftglyphs.o xftrender.o xftcore.o
+
+#include <Library.tmpl>
+
+#if DoSharedLib && SharedDataSeparation
+SpecialCObjectRule(sharedlib,NullParameter,$(SHLIBDEF))
+#endif
+
+#define ConfigSubst(file, old_suffix, new_suffix) @@\
+ @@\
+all:: Concat(file,new_suffix) @@\
+ @@\
+Concat(file,new_suffix): Concat(file,old_suffix) @@\
+ RemoveFile($@) @@\
+ sh config/config-subst $(SUBSTVARS) < Concat(file,old_suffix) > $@ @@\
+ @@\
+clean:: @@\
+ RemoveFile(Concat(file,new_suffix))
+
+XCOMM Create xft-config.script from xft-config.in
+ConfigSubst(xft-config,.in,.script)
+InstallScript(xft-config,$(BINDIR))
+
+XCOMM Create xft.pc from xft.pc.in
+ConfigSubst(xft.pc,.in,/*none*/)
+InstallNonExecFile(xft.pc,$(USRLIBDIR)/pkgconfig)
+
+XCOMM Create man pages from .*.in files
+ConfigSubst(xft-config,.1.in,.man)
+ConfigSubst(Xft,.3.in,.man)
+
+InstallGenManPage(xft-config,$(MANDIR),$(MANSUFFIX))
+InstallGenManPage(Xft,$(LIBMANDIR),$(LIBMANSUFFIX))
+
+DependTarget()