1 /* host.def config for the Xprint server standalone packages */
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
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
16 * Enable this if you want to build the Debian Xprint server package
17 * #define BuildDebianXprintPackage YES
21 * If you build a RPM package from this tree the xprint.spec file
22 * will set BuildXprintRPMPackage to YES
26 * Enable this if you want to build the Mozilla Xprint XPI server package
27 * #define BuildMozillaXprintXPIPackage YES
30 /* HasDocBookTools - set to YES if "xsltproc", "xmllint", "docbook2man",
31 * "lynx" and the docbook-xsl-stylesheets are installed.
32 * #define HasDocBookTools YES
35 /* #########################################################################
36 * ############ xprint.mozdev.org defaults start (do not edit!) ############
37 * #########################################################################
40 #ifndef BuildGISWxprintglue
41 # define BuildGISWxprintglue NO
42 #endif /* BuildGISWxprintglue */
44 #ifndef BuildGISWxprint
45 # define BuildGISWxprint NO
46 #endif /* BuildGISWxprint */
48 #ifndef BuildDebianXprintPackage
49 # define BuildDebianXprintPackage NO
50 #endif /* BuildDebianXprintPackage */
52 #ifndef BuildXprintRPMPackage
53 # define BuildXprintRPMPackage NO
54 #endif /* BuildXprintRPMPackage */
56 #ifndef BuildMozillaXprintXPIPackage
57 # define BuildMozillaXprintXPIPackage NO
58 #endif /* BuildMozillaXprintXPIPackage */
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
66 # define BuildFullXprintDistrib YES
67 # endif /* BuildGISWxprintglue || BuildGISWxprint || BuildDebianXprintPackage || BuildXprintRPMPackage || BuildMozillaXprintXPIPackage */
68 #endif /* BuildFullXprintDistrib */
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.
75 /* Some flags to build the Xprint server (Xprt), the tools and the fonts */
76 #define BuildServer YES
77 #define XprtServer YES
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
88 /* X extensions not needed (or not supported yet by Xprt) */
90 #define BuildRECORD NO
92 #define BuildXF86VidModeExt NO
93 #define BuildXInputExt NO
94 #define BuildScreenSaverExt NO
96 #define BuildXvMCExt 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
108 /* X extensions needed */
109 #define BuildGlxExt YES
110 /* LBX is needed for compatibility to the XWeb stuff */
113 /* Xprt's non-bitmap based DDX (PS, PCL, PDF, SVGprint etc.) cannot support MIT-SHM */
116 /* Disable stipple code due portability issues
117 * (see http://xprint.mozdev.org/bugs/show_bug.cgi?id=2220) */
118 #define BuildStippleCode NO
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
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
136 #define BuildType1 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
149 /* Build only Xprint applications */
150 #ifndef BuildXprintAppsOnly
151 #define BuildXprintAppsOnly YES
152 #endif /* BuildXprintAppsOnly */
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
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 */
168 XCOMM #### Sun/Solaris-specifc stuff ... ####
169 #if defined(SunArchitecture) && (OSMajorVersion > 4)
171 #define XsunServer NO
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
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
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
190 # define XpMonoPclDDX NO
191 /* GISWxprintglue uses the Solaris Xprt server which uses the Solaris
192 * encoding/ttmap files for font encodings
194 # define InstallXF86EncodingFiles NO
195 #endif /* BuildGISWxprintglue */
197 XCOMM Some build hacks for the GISWxprint package
199 # define ProjectRoot /usr/openwin
200 # define ServerConfigDir /usr/openwin/server/etc
201 # define BinDir /opt/GISWxprint/bin
202 # define ManDirectoryRoot /opt/GISWxprint/man
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
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).
214 # define InstallXF86EncodingFiles YES
215 # undef XF86EncodingsPath
216 # define XF86EncodingsPath /opt/GISWxprint/lib/X11/fonts/encodings
217 #endif /* GISWxprint */
219 /* Install XF86 encoding files since that's the only format we currently support */
220 #ifndef InstallXF86EncodingFiles
221 #define InstallXF86EncodingFiles YES
222 #endif /* InstallXF86EncodingFiles */
224 #define HasVarDirectory NO
226 #define HasMotif2 YES
228 #if 1 /* Switch for 32bit binaries or 64bit binaries */
230 # define CcCmd /opt/SUNWspro/bin/cc
231 # define CplusplusCmd /opt/SUNWspro/bin/CC
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
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)
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
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
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
286 /* Do not strip binaries to ensure usefull stacktraces in bug reports
287 * (http://xprint.mozdev.org/bugs/show_bug.cgi?id=2264)
289 #define StripInstalledPrograms NO
291 /* Does the X11 installation have the Xfree86 encoding files ? */
292 #ifndef InstallXF86EncodingFiles
293 #define InstallXF86EncodingFiles YES
294 #endif /* InstallXF86EncodingFiles */
296 INSTALLXF86ENCODINGFILES = InstallXF86EncodingFiles
298 #ifndef XF86EncodingsPath
299 #define XF86EncodingsPath $(FONTDIR)/encodings
300 #endif /* XF86EncodingsPath *
302 /* #########################################################################
303 * ################ xprint.mozdev.org defaults end ################
304 * #########################################################################