Git init
[framework/uifw/xorg/util/xutils-dev.git] / xorg-cf-files / xprint_host.def
1 /* host.def config for the Xprint server standalone packages */
2
3 /*
4  * Enable this if you want to build the GISWxprintglue package...
5  * #define BuildGISWxprintglue YES
6  * Then do a % make World ; cd packager/solaris/GISWxprintglue/ ; make make_GISWxprintglue
7  */
8  
9 /*
10  * Enable this if you want to build the GISWxprint package...
11  * #define BuildGISWxprint YES
12  * Then do a % make World ; cd packager/solaris/GISWxprint/ ; make make_GISWxprint
13  */
14
15 /*
16  * Enable this if you want to build the Debian Xprint server package
17  * #define BuildDebianXprintPackage YES
18  */
19
20 /*
21  * If you build a RPM package from this tree the xprint.spec file
22  * will set BuildXprintRPMPackage to YES
23  */
24  
25 /*
26  * Enable this if you want to build the Mozilla Xprint XPI server package
27  * #define BuildMozillaXprintXPIPackage YES
28  */
29  
30 /* HasDocBookTools - set to YES if "xsltproc", "xmllint", "docbook2man",
31  * "lynx" and the docbook-xsl-stylesheets are installed.
32  * #define HasDocBookTools YES
33  */
34
35 /* #########################################################################
36  * ############ xprint.mozdev.org defaults start (do not edit!) ############
37  * #########################################################################
38  */
39
40 #ifndef BuildGISWxprintglue
41 # define BuildGISWxprintglue           NO
42 #endif /* BuildGISWxprintglue */
43
44 #ifndef BuildGISWxprint
45 # define BuildGISWxprint               NO
46 #endif /* BuildGISWxprint */
47
48 #ifndef BuildDebianXprintPackage
49 # define BuildDebianXprintPackage      NO
50 #endif /* BuildDebianXprintPackage */
51
52 #ifndef BuildXprintRPMPackage
53 # define BuildXprintRPMPackage         NO
54 #endif /* BuildXprintRPMPackage */
55
56 #ifndef BuildMozillaXprintXPIPackage
57 # define BuildMozillaXprintXPIPackage  NO
58 #endif /* BuildMozillaXprintXPIPackage */
59
60 /* If we do not build any of the special packages then build and
61  * install everything */
62 #ifndef BuildFullXprintDistrib
63 # if BuildGISWxprintglue || BuildGISWxprint || BuildDebianXprintPackage || BuildXprintRPMPackage || BuildMozillaXprintXPIPackage
64 #  define BuildFullXprintDistrib       NO
65 # else
66 #  define BuildFullXprintDistrib       YES
67 # endif /* BuildGISWxprintglue || BuildGISWxprint || BuildDebianXprintPackage || BuildXprintRPMPackage || BuildMozillaXprintXPIPackage */
68 #endif /* BuildFullXprintDistrib */
69
70 /* Verify that only one package is enabled at the same time */
71 #if (BuildGISWxprintglue + BuildGISWxprint + BuildDebianXprintPackage + BuildXprintRPMPackage + BuildFullXprintDistrib + BuildMozillaXprintXPIPackage) > 1
72 # error Building more than one special package is not allowed.
73 #endif /* Verify */
74
75 /* Some flags to build the Xprint server (Xprt), the tools and the fonts */
76 #define BuildServer                    YES
77 #define XprtServer                     YES
78
79 /* Needed to build encoding files */
80 #define BuildFonts                     YES
81 #define BuildSpeedoFonts               NO
82 #define BuildType1Fonts                NO
83 #define BuildCIDFonts                  NO
84 #define BuildTrueTypeFonts             NO
85 #define BuildEthiopicFonts             NO
86 #define BuildBethMarduthoFonts         NO
87
88 /* X extensions not needed (or not supported yet by Xprt) */
89 #define BuildXKB                       NO
90 #define BuildRECORD                    NO
91 #define BuildDPMS                      NO
92 #define BuildXF86VidModeExt            NO
93 #define BuildXInputExt                 NO
94 #define BuildScreenSaverExt            NO
95 #define BuildXvExt                     NO
96 #define BuildXvMCExt                   NO
97 #define BuildDmx                       NO
98 #define BuildXF86DRI                   NO
99 #define BuildRender                    NO
100 #define BuildXfixes                    NO
101 #define BuildDamage                    NO
102 #define BuildComposite                 NO
103 #define BuildXevie                     NO
104 #define BuildXF86DGA                   NO
105 #define BuildRandR                     NO
106 #define BuildXinerama                  NO
107
108 /* X extensions needed */
109 #define BuildGlxExt                    YES
110 /* LBX is needed for compatibility to the XWeb stuff */
111 #define BuildLBX                       YES
112
113 /* Xprt's non-bitmap based DDX (PS, PCL, PDF, SVGprint etc.) cannot support MIT-SHM */
114 #undef HasShm
115 #define HasShm NO
116 /* Disable stipple code due portability issues
117  * (see http://xprint.mozdev.org/bugs/show_bug.cgi?id=2220) */
118 #define BuildStippleCode NO
119
120 /* Temporary for Xorg tree */
121 #define BuildFontconfigLibrary         NO
122 #define XorgServer                     NO
123 #define XF86Server                     NO
124 #define XnestServer                    NO
125 #define XVirtualFramebufferServer      NO
126 #define XdmxServer                     NO
127
128 #define GzipFontCompression            YES
129 #define BuildFreeType                  YES
130 #define BuildFreetype2Library          YES
131 #define SharedLibFreetype2             NO
132 #define NormalLibFreetype2             YES
133 #define HasFreetype2                   NO
134 #define Freetype2BuildDefines -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
135
136 #define BuildType1                     NO
137 #define BuildCID                       NO
138 #define BuildSpeedo                    NO
139 #define BuildFontCache                 NO
140 #define BuildRender                    NO
141 #define BuildRenderLibrary             NO
142 #define BuildRandRLibrary              NO
143 #define BuildXcursorLibrary            NO
144 #define BuildXcursorgen                NO
145 #define SharedLibFontEnc               NO
146 #define SharedLibFont                  NO
147 #define XserverStaticFontLib           YES
148
149 /* Build only Xprint applications */
150 #ifndef BuildXprintAppsOnly
151 #define BuildXprintAppsOnly YES
152 #endif /* BuildXprintAppsOnly */
153
154 /* Set our own XVendorString/XVendorRelease
155  * (and to avoid that xorg.cf sets it's own stuff here) */
156 #define XVendorString "xprint.mozdev.org"
157 #define XVendorRelease 100000
158
159 #define UseHackLinkAgainstInstalledX11Libs NO
160 #if UseHackLinkAgainstInstalledX11Libs
161 /* "Hack" to reuse an already installed X11 distribution when linking our
162  * programs (this assumes that the installed X version is at least X11R6.4) */
163 # ifndef IBMArchitecture
164 #  define LdPreLib -L$(USRLIBDIR) -R$(USRLIBDIR) -L$(BUILDLIBDIR)
165 # endif /* !IBMArchitecture */
166 #endif /* UseHackLinkAgainstInstalledX11Libs */
167
168 XCOMM #### Sun/Solaris-specifc stuff ... ####
169 #if defined(SunArchitecture) && (OSMajorVersion > 4)
170 #undef XsunServer
171 #define XsunServer    NO
172
173 XCOMM X11R6.7's sun.cf does not set ProjectRoot to /usr/openwin anymore - why ?
174 #define ProjectRoot      /usr/openwin
175 #define ServerConfigDir  /usr/openwin/server/etc
176
177 XCOMM Some build hacks for the GISWxprintglue package
178 #if BuildGISWxprintglue
179 #  define ProjectRoot      /usr/openwin
180 #  define ServerConfigDir  /usr/openwin/server/etc
181 #  define BinDir           /opt/GISWxprintglue/bin
182 #  define ManDirectoryRoot /opt/GISWxprintglue/man
183 #  undef XPrintDir
184 #  define XPrintDir        /opt/GISWxprintglue/server/etc/XpConfig
185    /* PCL DDXs are currently defunct in Solaris Xprt, so do not ship the
186     * config files for now */
187 #  undef XpColorPclDDX
188 #  define XpColorPclDDX NO
189 #  undef XpMonoPclDDX
190 #  define XpMonoPclDDX NO
191    /* GISWxprintglue uses the Solaris Xprt server which uses the Solaris
192     * encoding/ttmap files for font encodings
193     */
194 #  define InstallXF86EncodingFiles NO
195 #endif /* BuildGISWxprintglue */
196
197 XCOMM Some build hacks for the GISWxprint package
198 #if BuildGISWxprint
199 #  define ProjectRoot      /usr/openwin
200 #  define ServerConfigDir  /usr/openwin/server/etc
201 #  define BinDir           /opt/GISWxprint/bin
202 #  define ManDirectoryRoot /opt/GISWxprint/man
203 #  undef XPrintDir
204 #  define XPrintDir        /opt/GISWxprint/server/etc/XpConfig
205    /* PCL DDXs are currently defunct in Solaris Xprt, so do not ship the
206     * config files for now */
207 #  undef XpColorPclDDX
208 #  define XpColorPclDDX NO
209 #  undef XpMonoPclDDX
210 #  define XpMonoPclDDX NO
211    /* Make sure we install our own encoding files since Solaris uses a format we
212     * (currently) do not support (yet).
213     */
214 #  define InstallXF86EncodingFiles YES
215 #  undef XF86EncodingsPath
216 #  define XF86EncodingsPath /opt/GISWxprint/lib/X11/fonts/encodings
217 #endif /* GISWxprint */
218
219 /* Install XF86 encoding files since that's the only format we currently support */
220 #ifndef InstallXF86EncodingFiles
221 #define InstallXF86EncodingFiles YES
222 #endif /* InstallXF86EncodingFiles */
223
224 #define HasVarDirectory NO
225 #undef HasMotif2
226 #define HasMotif2 YES
227
228 #if 1 /* Switch for 32bit binaries or 64bit binaries */
229    /* 32bit SPARC */
230 #  define CcCmd                       /opt/SUNWspro/bin/cc
231 #  define CplusplusCmd                /opt/SUNWspro/bin/CC
232 #else
233    /* 64bit sparc (Doesn't really work yet because the Xservers cannot link properly... ;-( */
234 #  define ServerExtraDefines   -D_XSERVER64
235 #  define CcCmd                       /opt/SUNWspro/bin/cc -xarch=v9a
236 #  define CplusplusCmd                /opt/SUNWspro/bin/CC -xarch=v9a
237 #  define UsrLibDir /usr/openwin/lib/sparcv9
238 #endif
239
240 #if 0 /* Development only */
241    XCOMM Explicitly use "-xs" to make Rational Purify "happy"
242 #  undef OptimizedCDebugFlags
243 #  define OptimizedCDebugFlags -xs -g -DDEBUG_$(LOGNAME)
244 #endif
245
246 XCOMM #### FreeBSD-specifc stuff ... ####
247 #elif defined(FreeBSDArchitecture)
248 #define ProjectRoot /usr/X11R6
249 #define XPrintDir   /etc/X11/xserver
250 #define DlLibrary -lc
251 #undef XF86SVGAServer
252 #define XF86SVGAServer NO
253 #define HasVarDirectory NO
254 #define HasMotif2 YES
255 #define HasGhostScript YES
256 #define InstallXF86EncodingFiles NO
257
258 XCOMM #### NetBSD-specifc stuff ... ####
259 #elif defined(NetBSDArchitecture)
260 #define ProjectRoot /usr/X11R6
261 #define XPrintDir   /etc/X11/xserver
262 #undef XF86SVGAServer   
263 #define XF86SVGAServer NO 
264 #define HasVarDirectory NO
265 #define HasMotif2 YES   
266 #define HasGhostScript YES
267 #define InstallXF86EncodingFiles NO
268
269 XCOMM #### Linux-specifc stuff ... ####
270 #elif defined(LinuxArchitecture)
271 #define ProjectRoot /usr/X11R6
272 #define XPrintDir   /etc/X11/xserver
273 #undef XF86SVGAServer
274 #define XF86SVGAServer NO
275 #define HasVarDirectory NO
276 #define HasMotif2 YES
277 #define HasGhostScript YES
278 #define InstallXF86EncodingFiles NO
279 /* Debian Xprint package puts the Xprt config files elsewhere */
280 #if (LinuxDistribution == LinuxDebian)
281 # define XPrintDir /usr/share/Xprint/xserver 
282 #endif
283
284 #endif
285
286 /* Do not strip binaries to ensure usefull stacktraces in bug reports
287  * (http://xprint.mozdev.org/bugs/show_bug.cgi?id=2264)
288  */
289 #define StripInstalledPrograms  NO
290
291 /* Does the X11 installation have the Xfree86 encoding files ? */
292 #ifndef InstallXF86EncodingFiles
293 #define InstallXF86EncodingFiles YES
294 #endif /* InstallXF86EncodingFiles */
295
296 INSTALLXF86ENCODINGFILES = InstallXF86EncodingFiles
297
298 #ifndef XF86EncodingsPath
299 #define XF86EncodingsPath $(FONTDIR)/encodings
300 #endif /* XF86EncodingsPath *
301
302 /* #########################################################################
303  * ################      xprint.mozdev.org defaults end     ################
304  * #########################################################################
305  */