From f4092abdf94af6a99aff944d6264bc1284e8bdd4 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 10 Oct 2011 17:43:39 +0200 Subject: Imported nx-X11-3.1.0-1.tar.gz Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository --- nx-X11/lib/Xrender/Imakefile | 167 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 nx-X11/lib/Xrender/Imakefile (limited to 'nx-X11/lib/Xrender/Imakefile') diff --git a/nx-X11/lib/Xrender/Imakefile b/nx-X11/lib/Xrender/Imakefile new file mode 100644 index 000000000..c690dc0f0 --- /dev/null +++ b/nx-X11/lib/Xrender/Imakefile @@ -0,0 +1,167 @@ +XCOMM $XFree86: xc/lib/Xrender/Imakefile,v 1.10tsi Exp $ + +#ifdef UseInstalled + +XCOMM Allow for builds against old installed bits. Note that this requires +XCOMM that additional files be copied (or linked) into this directory. See +XCOMM NONSTANDARD_HEADERS below. + +#ifndef SharedLibXrender +#define SharedLibXrender YES +#endif + +#ifndef NormalLibXrender +#define NormalLibXrender (!SharedLibXrender | ForceNormalLib) +#endif + +#ifndef DebugLibXrender +#define DebugLibXrender NO +#endif + +#ifndef ProfileLibXrender +#define ProfileLibXrender NO +#endif + +#undef SharedXrenderRev +#define SharedXrenderRev 1.1 +SOXRENDERREV = SharedXrenderRev + +#if SharedLibXrender +#define SharedXft1Rev 1.2 +SharedLibReferences(XFT1,Xft,$(XFT1SRC),SOXFT1REV,SharedXft1Rev) +#else +ProjectUnsharedLibReferences(XFT1,Xft,$(XFT1SRC),BuildLibDir) +#endif + +#undef LinkBuildLibrary +#define LinkBuildLibrary(lib) MakeDir($(BUILDLIBDIR)) @@\ + RemoveFile($(BUILDLIBDIR)/lib) @@\ + cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib . +#undef _LinkBuildLibrary +#define _LinkBuildLibrary(lib) LinkBuildLibrary(lib) + +#undef LinkBuildLibraryMaybe +#define LinkBuildLibraryMaybe(lib,doit) MakeDir($(BUILDLIBDIR)) @@\ + @if doit; then (set -x; \ @@\ + RemoveFile($(BUILDLIBDIR)/lib); \ @@\ + cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .); fi + +#undef LdPreLibs +#define LdPreLibs -L$(BUILDLIBDIR) LdPreLib XLdPreLibs + +LDPRELIBS = LdPreLibs + +NONSTANDARD_HEADERS = extutil.h region.h render.h renderproto.h + +all:: $(NONSTANDARD_HEADERS) +includes depend:: $(NONSTANDARD_HEADERS) + +$(NONSTANDARD_HEADERS): + @echo Header file $@ is missing. + +#ifdef XBuildIncDir +RENDERCLEANDIR = $(BUILDINCROOT) +#else +RENDERCLEANDIR = $(BUILDINCDIR) +#endif + +clean:: + $(RM) -r $(RENDERCLEANDIR) + +#endif + +#define DoNormalLib NormalLibXrender +#define DoSharedLib SharedLibXrender +#define DoDebugLib DebugLibXrender +#define DoProfileLib ProfileLibXrender +#define LibName Xrender +#define SoRev SOXRENDERREV + +#ifdef XBuildIncDir +#define IncSubdir X11 +#define IncSubSubdir extensions +RENDERINCDIR = $(BUILDINCDIR) +#else +#define IncSubdir extensions +RENDERINCDIR = $(BUILDINCROOT) +#endif + +#include + +#ifdef SharedXrenderReqs +REQUIREDLIBS = SharedXrenderReqs +#endif + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + + DEFINES = $(ALLOC_DEFINES) +#ifdef UseInstalled + INCLUDES = -I$(RENDERINCDIR) -I$(INCROOT)/X11 -I$(INCROOT)/X11/extensions +#else + INCLUDES = -I$(XLIBSRC) -I$(EXTINCSRC) +#endif + + SRCS = Xrender.c \ + AddTrap.c \ + Color.c \ + Composite.c \ + Cursor.c \ + Glyph.c \ + Picture.c \ + FillRect.c \ + FillRects.c \ + Filter.c \ + Poly.c \ + Trap.c \ + Tri.c + + OBJS = Xrender.o \ + AddTrap.o \ + Color.o \ + Composite.o \ + Cursor.o \ + Glyph.o \ + Picture.o \ + FillRect.o \ + FillRects.o \ + Filter.o \ + Poly.o \ + Trap.o \ + Tri.o + + LINTLIBS = $(LINTXLIB) + +HEADERS = Xrender.h $(NONSTANDARD_HEADERS) + +SUBSTVARS=prefix="$(PROJECTROOT)" \ + exec_prefix="$(BINDIR)" \ + libdir="$(USRLIBDIR)" \ + includedir="$(INCROOT)" \ + VERSION="0.8.4" \ + X_REQUIRES="" \ + RENDER_CFLAGS="" \ + X_NON_PKG_CFLAGS="" \ + X_NON_PKG_LIBS="-lX11 -lXext" + +#include + +DependTarget() + +#ifndef clean +/* Generate a distclean target */ +distclean:: clean + RemoveFile(Makefile) +#endif + +all:: xrender.pc + +xrender.pc: xrender.pc.in + RemoveFile($@) + sh ../Xcursor/config-subst $(SUBSTVARS) < xrender.pc.in > $@ + +InstallNonExecFile(xrender.pc,$(USRLIBDIR)/pkgconfig) + +clean:: + RemoveFile(xrender.pc) -- cgit v1.2.3