1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 85_nx-X11_debian-ld.dpatch by <marceloshima@gmail.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Change the library filename to not conflict with Xorg ones.
8
diff -urNad nx-x11_3.3.0-5~/config/cf/X11.tmpl nx-x11_3.3.0-5/config/cf/X11.tmpl
9
--- nx-x11_3.3.0-5~/config/cf/X11.tmpl 2005-12-14 21:41:52.000000000 -0200
10
+++ nx-x11_3.3.0-5/config/cf/X11.tmpl 2009-01-23 20:14:30.000000000 -0200
12
#ifndef SharedXrenderRev
13
#define SharedXrenderRev 1.2.2
15
-SharedLibReferences(XRENDER,Xrender,$(XRENDERLIBSRC),SOXRENDERREV,SharedXrenderRev)
16
+SharedLibReferences(XRENDER,Xrender-nx,$(XRENDERLIBSRC),SOXRENDERREV,SharedXrenderRev)
18
-ProjectUnsharedLibReferences(XRENDER,Xrender,$(XRENDERLIBSRC),XBuildLibDir)
19
+ProjectUnsharedLibReferences(XRENDER,Xrender-nx,$(XRENDERLIBSRC),XBuildLibDir)
22
XRANDRLIBSRC = $(LIBSRC)/Xrandr
23
diff -urNad nx-x11_3.3.0-5~/lib/X11/Imakefile nx-x11_3.3.0-5/lib/X11/Imakefile
24
--- nx-x11_3.3.0-5~/lib/X11/Imakefile 2009-01-23 20:14:26.000000000 -0200
25
+++ nx-x11_3.3.0-5/lib/X11/Imakefile 2009-01-23 20:14:30.000000000 -0200
27
#define DoExtraLib SharedLibX11
28
#define DoDebugLib DebugLibX11
29
#define DoProfileLib ProfileLibX11
31
+#define LibName X11-nx
32
#define SoRev SOXLIBREV
33
#define HugeLibrary YES
35
diff -urNad nx-x11_3.3.0-5~/lib/Xext/Imakefile nx-x11_3.3.0-5/lib/Xext/Imakefile
36
--- nx-x11_3.3.0-5~/lib/Xext/Imakefile 2004-08-16 12:02:59.000000000 -0300
37
+++ nx-x11_3.3.0-5/lib/Xext/Imakefile 2009-01-23 20:14:30.000000000 -0200
39
#define DoExtraLib SharedLibXext
40
#define DoDebugLib DebugLibXext
41
#define DoProfileLib ProfileLibXext
43
+#define LibName Xext-nx
44
#define SoRev SOXEXTREV
47
#include <Threads.tmpl>
50
-REQUIREDLIBS = SharedXextReqs
51
+/* REQUIREDLIBS = SharedXextReqs $(NX_REQUIREDLIBS) */
52
+REQUIREDLIBS = -L../../exports/lib/ -lX11-nx $(NX_REQUIREDLIBS)
56
diff -urNad nx-x11_3.3.0-5~/lib/Xft/Imakefile nx-x11_3.3.0-5/lib/Xft/Imakefile
57
--- nx-x11_3.3.0-5~/lib/Xft/Imakefile 2005-10-19 00:46:56.000000000 -0200
58
+++ nx-x11_3.3.0-5/lib/Xft/Imakefile 2009-01-23 20:14:30.000000000 -0200
60
FONTCONFIG_CFLAGS="$(FONTCONFIG_CFLAGS)" \
61
FONTCONFIG_LIBS="$(FONTCONFIG_LIBS)"
63
-REQUIREDLIBS=$(LDPRELIBS) $(XRENDERLIB) $(XLIB) $(FONTCONFIGLIB) $(EXPATLIB) $(FREETYPE2LIB)
65
+REQUIREDLIBS=$(LDPRELIBS) -L../../exports/lib/ -lXrender-nx -lX11-nx $(FONTCONFIGLIB) $(EXPATLIB) $(FREETYPE2LIB)
66
HEADERS = Xft.h XftCompat.h
68
SRCS = xftcolor.c xftdbg.c xftdpy.c \
69
diff -urNad nx-x11_3.3.0-5~/lib/Xft1/Imakefile nx-x11_3.3.0-5/lib/Xft1/Imakefile
70
--- nx-x11_3.3.0-5~/lib/Xft1/Imakefile 2004-04-23 15:43:44.000000000 -0300
71
+++ nx-x11_3.3.0-5/lib/Xft1/Imakefile 2009-01-23 20:14:30.000000000 -0200
73
FREETYPE2REQLIB = $(FREETYPE2LIB)
76
-REQUIREDLIBS=$(LDPRELIBS) $(XRENDERLIB) $(XLIB) $(FONTCONFIGLIB) $(EXPATLIB) $(FREETYPE2REQLIB)
77
+REQUIREDLIBS=$(LDPRELIBS) -L../../exports/lib/ -lXrender-nx -lX11-nx $(FONTCONFIGLIB) $(EXPATLIB) $(FREETYPE2REQLIB)
81
diff -urNad nx-x11_3.3.0-5~/lib/Xrender/Imakefile nx-x11_3.3.0-5/lib/Xrender/Imakefile
82
--- nx-x11_3.3.0-5~/lib/Xrender/Imakefile 2004-08-06 21:40:40.000000000 -0300
83
+++ nx-x11_3.3.0-5/lib/Xrender/Imakefile 2009-01-23 20:14:30.000000000 -0200
85
#define DoSharedLib SharedLibXrender
86
#define DoDebugLib DebugLibXrender
87
#define DoProfileLib ProfileLibXrender
88
-#define LibName Xrender
89
+#define LibName Xrender-nx
90
#define SoRev SOXRENDERREV
94
#include <Threads.tmpl>
96
#ifdef SharedXrenderReqs
97
-REQUIREDLIBS = SharedXrenderReqs
98
+/* REQUIREDLIBS = SharedXrenderReqs */
99
+REQUIREDLIBS = $(LDPRELIB) -L../../exports/lib/ -lXext-nx -lX11-nx
102
#if Malloc0ReturnsNull
103
diff -urNad nx-x11_3.3.0-5~/programs/Xserver/Imakefile nx-x11_3.3.0-5/programs/Xserver/Imakefile
104
--- nx-x11_3.3.0-5~/programs/Xserver/Imakefile 2009-01-23 20:14:26.000000000 -0200
105
+++ nx-x11_3.3.0-5/programs/Xserver/Imakefile 2009-01-23 20:14:31.000000000 -0200
108
NXAGENT = hw/nxagent/LibraryTargetName(nxagent)
109
NXAGENTLIBS = PreFbLibs $(NXAGENT) FbPostFbLibs $(NXAGENT) $(MI)
110
-NXAGENTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XLIB) $(SYSLIBS) $(XPMLIB)
111
+NXAGENTSYSLIBS = $(FONTLIBS) $(LDPRELIBS) -lX11-nx -lXext-nx -lXrender-nx $(SYSLIBS) $(XPMLIB)
113
MakeMutex($(NXAGENTDIRS) $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTSYSLIBS))
115
@@ -1016,11 +1016,11 @@
116
-L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite
117
#elif defined(cygwinArchitecture)
118
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext \
119
- -lXcomp -lXcompext -lXrender -lX11 -lXext -lXcomposite -lXfixes \
120
+ -lXcomp -lXcompext -lX11-nx -lXext-nx -lXrender-nx -lXcomposite -lXfixes \
121
-L ../../../nxcompshad -lXcompshad -L../../../nx-X11/exports/lib -lXtst
123
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
124
- -lXcomp -lXcompext -lXcompshad -lXrender -lX11 -lXext -lXfixes \
125
+ -lXcomp -lXcompext -lXcompshad -lX11-nx -lXext-nx -lXrender-nx -lXfixes \
126
-L../../../nx-X11/exports/lib -lXtst -lXdamage -lXrandr -lXcomposite
129
@@ -1073,7 +1073,7 @@
131
$(CCLINK) -o nxagent_static_nolibs -Wl,-Bstatic $(LDOPTIONS) $(NXAGENTOBJS) \
132
$(NXAGENTLIBS) $(LOADABLEEXTS) $(LIBCWRAPPER) $(LDLIBS) $(FONTLIBS) \
133
- $(LDPRELIBS) $(SYSLIBS) -Wl,-Bdynamic -lXext -lX11 $(EXTRA_LOAD_FLAGS)
134
+ $(LDPRELIBS) $(SYSLIBS) -Wl,-Bdynamic -lX11-nx -lXext-nx $(EXTRA_LOAD_FLAGS)
135
#endif /* NXAgentServer */
137
#if defined(XnonServer) && XnonServer