summaryrefslogtreecommitdiff
path: root/xorg-cf-files/xprint_host.def
blob: a9b4cee2fd3cfed3293f627de9adaf7519490e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/* host.def config for the Xprint server standalone packages */

/*
 * Enable this if you want to build the GISWxprintglue package...
 * #define BuildGISWxprintglue YES
 * Then do a % make World ; cd packager/solaris/GISWxprintglue/ ; make make_GISWxprintglue
 */
 
/*
 * Enable this if you want to build the GISWxprint package...
 * #define BuildGISWxprint YES
 * Then do a % make World ; cd packager/solaris/GISWxprint/ ; make make_GISWxprint
 */

/*
 * Enable this if you want to build the Debian Xprint server package
 * #define BuildDebianXprintPackage YES
 */

/*
 * If you build a RPM package from this tree the xprint.spec file
 * will set BuildXprintRPMPackage to YES
 */
 
/*
 * Enable this if you want to build the Mozilla Xprint XPI server package
 * #define BuildMozillaXprintXPIPackage YES
 */
 
/* HasDocBookTools - set to YES if "xsltproc", "xmllint", "docbook2man",
 * "lynx" and the docbook-xsl-stylesheets are installed.
 * #define HasDocBookTools YES
 */

/* #########################################################################
 * ############ xprint.mozdev.org defaults start (do not edit!) ############
 * #########################################################################
 */

#ifndef BuildGISWxprintglue
# define BuildGISWxprintglue           NO
#endif /* BuildGISWxprintglue */

#ifndef BuildGISWxprint
# define BuildGISWxprint               NO
#endif /* BuildGISWxprint */

#ifndef BuildDebianXprintPackage
# define BuildDebianXprintPackage      NO
#endif /* BuildDebianXprintPackage */

#ifndef BuildXprintRPMPackage
# define BuildXprintRPMPackage         NO
#endif /* BuildXprintRPMPackage */

#ifndef BuildMozillaXprintXPIPackage
# define BuildMozillaXprintXPIPackage  NO
#endif /* BuildMozillaXprintXPIPackage */

/* If we do not build any of the special packages then build and
 * install everything */
#ifndef BuildFullXprintDistrib
# if BuildGISWxprintglue || BuildGISWxprint || BuildDebianXprintPackage || BuildXprintRPMPackage || BuildMozillaXprintXPIPackage
#  define BuildFullXprintDistrib       NO
# else
#  define BuildFullXprintDistrib       YES
# endif /* BuildGISWxprintglue || BuildGISWxprint || BuildDebianXprintPackage || BuildXprintRPMPackage || BuildMozillaXprintXPIPackage */
#endif /* BuildFullXprintDistrib */

/* Verify that only one package is enabled at the same time */
#if (BuildGISWxprintglue + BuildGISWxprint + BuildDebianXprintPackage + BuildXprintRPMPackage + BuildFullXprintDistrib + BuildMozillaXprintXPIPackage) > 1
# error Building more than one special package is not allowed.
#endif /* Verify */

/* Some flags to build the Xprint server (Xprt), the tools and the fonts */
#define BuildServer	               YES
#define XprtServer	               YES

/* Needed to build encoding files */
#define BuildFonts	               YES
#define BuildSpeedoFonts               NO
#define BuildType1Fonts                NO
#define BuildCIDFonts                  NO
#define BuildTrueTypeFonts             NO
#define BuildEthiopicFonts             NO
#define BuildBethMarduthoFonts         NO

/* X extensions not needed (or not supported yet by Xprt) */
#define BuildXKB	               NO
#define BuildRECORD	               NO
#define BuildDPMS	               NO
#define BuildXF86VidModeExt            NO
#define BuildXInputExt                 NO
#define BuildScreenSaverExt            NO
#define BuildXvExt                     NO
#define BuildXvMCExt                   NO
#define BuildDmx                       NO
#define BuildXF86DRI                   NO
#define BuildRender                    NO
#define BuildXfixes                    NO
#define BuildDamage                    NO
#define BuildComposite                 NO
#define BuildXevie                     NO
#define BuildXF86DGA                   NO
#define BuildRandR                     NO
#define BuildXinerama                  NO

/* X extensions needed */
#define BuildGlxExt                    YES
/* LBX is needed for compatibility to the XWeb stuff */
#define BuildLBX	               YES

/* Xprt's non-bitmap based DDX (PS, PCL, PDF, SVGprint etc.) cannot support MIT-SHM */
#undef HasShm
#define HasShm NO
/* Disable stipple code due portability issues
 * (see http://xprint.mozdev.org/bugs/show_bug.cgi?id=2220) */
#define BuildStippleCode NO

/* Temporary for Xorg tree */
#define BuildFontconfigLibrary         NO
#define XorgServer                     NO
#define XF86Server                     NO
#define XnestServer                    NO
#define XVirtualFramebufferServer      NO
#define XdmxServer                     NO

#define GzipFontCompression            YES
#define BuildFreeType	               YES
#define BuildFreetype2Library          YES
#define SharedLibFreetype2             NO
#define NormalLibFreetype2             YES
#define HasFreetype2                   NO
#define Freetype2BuildDefines -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER

#define BuildType1                     NO
#define BuildCID                       NO
#define BuildSpeedo                    NO
#define BuildFontCache                 NO
#define BuildRender                    NO
#define BuildRenderLibrary             NO
#define BuildRandRLibrary              NO
#define BuildXcursorLibrary            NO
#define BuildXcursorgen                NO
#define SharedLibFontEnc               NO
#define SharedLibFont                  NO
#define XserverStaticFontLib           YES

/* Build only Xprint applications */
#ifndef BuildXprintAppsOnly
#define BuildXprintAppsOnly YES
#endif /* BuildXprintAppsOnly */

/* Set our own XVendorString/XVendorRelease
 * (and to avoid that xorg.cf sets it's own stuff here) */
#define XVendorString "xprint.mozdev.org"
#define XVendorRelease 100000

#define UseHackLinkAgainstInstalledX11Libs NO
#if UseHackLinkAgainstInstalledX11Libs
/* "Hack" to reuse an already installed X11 distribution when linking our
 * programs (this assumes that the installed X version is at least X11R6.4) */
# ifndef IBMArchitecture
#  define LdPreLib -L$(USRLIBDIR) -R$(USRLIBDIR) -L$(BUILDLIBDIR)
# endif /* !IBMArchitecture */
#endif /* UseHackLinkAgainstInstalledX11Libs */

XCOMM #### Sun/Solaris-specifc stuff ... ####
#if defined(SunArchitecture) && (OSMajorVersion > 4)
#undef XsunServer
#define XsunServer    NO

XCOMM X11R6.7's sun.cf does not set ProjectRoot to /usr/openwin anymore - why ?
#define ProjectRoot      /usr/openwin
#define ServerConfigDir  /usr/openwin/server/etc

XCOMM Some build hacks for the GISWxprintglue package
#if BuildGISWxprintglue
#  define ProjectRoot      /usr/openwin
#  define ServerConfigDir  /usr/openwin/server/etc
#  define BinDir           /opt/GISWxprintglue/bin
#  define ManDirectoryRoot /opt/GISWxprintglue/man
#  undef XPrintDir
#  define XPrintDir        /opt/GISWxprintglue/server/etc/XpConfig
   /* PCL DDXs are currently defunct in Solaris Xprt, so do not ship the
    * config files for now */
#  undef XpColorPclDDX
#  define XpColorPclDDX NO
#  undef XpMonoPclDDX
#  define XpMonoPclDDX NO
   /* GISWxprintglue uses the Solaris Xprt server which uses the Solaris
    * encoding/ttmap files for font encodings
    */
#  define InstallXF86EncodingFiles NO
#endif /* BuildGISWxprintglue */

XCOMM Some build hacks for the GISWxprint package
#if BuildGISWxprint
#  define ProjectRoot      /usr/openwin
#  define ServerConfigDir  /usr/openwin/server/etc
#  define BinDir           /opt/GISWxprint/bin
#  define ManDirectoryRoot /opt/GISWxprint/man
#  undef XPrintDir
#  define XPrintDir        /opt/GISWxprint/server/etc/XpConfig
   /* PCL DDXs are currently defunct in Solaris Xprt, so do not ship the
    * config files for now */
#  undef XpColorPclDDX
#  define XpColorPclDDX NO
#  undef XpMonoPclDDX
#  define XpMonoPclDDX NO
   /* Make sure we install our own encoding files since Solaris uses a format we
    * (currently) do not support (yet).
    */
#  define InstallXF86EncodingFiles YES
#  undef XF86EncodingsPath
#  define XF86EncodingsPath /opt/GISWxprint/lib/X11/fonts/encodings
#endif /* GISWxprint */

/* Install XF86 encoding files since that's the only format we currently support */
#ifndef InstallXF86EncodingFiles
#define InstallXF86EncodingFiles YES
#endif /* InstallXF86EncodingFiles */

#define HasVarDirectory NO
#undef HasMotif2
#define HasMotif2 YES

#if 1 /* Switch for 32bit binaries or 64bit binaries */
   /* 32bit SPARC */
#  define CcCmd                       /opt/SUNWspro/bin/cc
#  define CplusplusCmd                /opt/SUNWspro/bin/CC
#else
   /* 64bit sparc (Doesn't really work yet because the Xservers cannot link properly... ;-( */
#  define ServerExtraDefines   -D_XSERVER64
#  define CcCmd                       /opt/SUNWspro/bin/cc -xarch=v9a
#  define CplusplusCmd                /opt/SUNWspro/bin/CC -xarch=v9a
#  define UsrLibDir /usr/openwin/lib/sparcv9
#endif

#if 0 /* Development only */
   XCOMM Explicitly use "-xs" to make Rational Purify "happy"
#  undef OptimizedCDebugFlags
#  define OptimizedCDebugFlags -xs -g -DDEBUG_$(LOGNAME)
#endif

XCOMM #### FreeBSD-specifc stuff ... ####
#elif defined(FreeBSDArchitecture)
#define ProjectRoot /usr/X11R6
#define XPrintDir   /etc/X11/xserver
#define DlLibrary -lc
#undef XF86SVGAServer
#define XF86SVGAServer NO
#define HasVarDirectory NO
#define HasMotif2 YES
#define HasGhostScript YES
#define InstallXF86EncodingFiles NO

XCOMM #### NetBSD-specifc stuff ... ####
#elif defined(NetBSDArchitecture)
#define ProjectRoot /usr/X11R6
#define XPrintDir   /etc/X11/xserver
#undef XF86SVGAServer   
#define XF86SVGAServer NO 
#define HasVarDirectory NO
#define HasMotif2 YES   
#define HasGhostScript YES
#define InstallXF86EncodingFiles NO

XCOMM #### Linux-specifc stuff ... ####
#elif defined(LinuxArchitecture)
#define ProjectRoot /usr/X11R6
#define XPrintDir   /etc/X11/xserver
#undef XF86SVGAServer
#define XF86SVGAServer NO
#define HasVarDirectory NO
#define HasMotif2 YES
#define HasGhostScript YES
#define InstallXF86EncodingFiles NO
/* Debian Xprint package puts the Xprt config files elsewhere */
#if (LinuxDistribution == LinuxDebian)
# define XPrintDir /usr/share/Xprint/xserver 
#endif

#endif

/* Do not strip binaries to ensure usefull stacktraces in bug reports
 * (http://xprint.mozdev.org/bugs/show_bug.cgi?id=2264)
 */
#define StripInstalledPrograms	NO

/* Does the X11 installation have the Xfree86 encoding files ? */
#ifndef InstallXF86EncodingFiles
#define InstallXF86EncodingFiles YES
#endif /* InstallXF86EncodingFiles */

INSTALLXF86ENCODINGFILES = InstallXF86EncodingFiles

#ifndef XF86EncodingsPath
#define XF86EncodingsPath $(FONTDIR)/encodings
#endif /* XF86EncodingsPath *

/* #########################################################################
 * ################      xprint.mozdev.org defaults end     ################
 * #########################################################################
 */