3 # global environment variables you may set:
4 # CACHE: absolute path to a global autoconf cache
5 # QUIET: hush the configure script noise
6 # CONFFLAGS: flags to pass to all configure scripts
9 if test x
"$NOQUIT" = x1
; then
10 echo "***** $1 failed on $2/$3"
17 echo "Building $1 module component $2..."
20 if test "$1" = "xserver" && test "$2" = "xorg" && test -n "$MESAPATH"; then
21 MESA
=-"-with-mesa-source=${MESAPATH}"
26 # Use "sh autogen.sh" since some scripts are not executable in CVS
27 sh autogen.sh
--prefix=${PREFIX} ${MESA} ${QUIET:+--quiet} \
28 ${CACHE:+--cache-file=}${CACHE} ${CONFFLAGS} || failed autogen
$1 $2
29 make || failed
make $1 $2
30 $SUDO env LD_LIBRARY_PATH
=$LD_LIBRARY_PATH make install || \
32 # make clean || failed clean $1 $2
33 # make dist || failed dist $1 $2
34 if test x
"$DISTCHECK" = x1
; then
35 make distcheck || failed distcheck
$1 $2
41 # protocol headers have no build order dependencies
68 build proto XF86BigFont
73 build proto XF86VidMode
77 # bitmaps is needed for building apps, so has to be done separately first
78 # cursors depends on apps/xcursorgen
79 # xkbdata depends on apps/xkbcomp
86 # All protocol modules must be installed before the libs (okay, that's an
87 # overstatement, but all protocol modules should be installed anyway)
89 # the libraries have a dependency order:
90 # xtrans, Xau, Xdmcp before anything else
91 # fontenc before Xfont
94 # (X11 and SM) before Xt
95 # Xt before Xmu and Xpm
96 # Xext before any other extension library
97 # Xfixes before Xcomposite
98 # Xp before XprintUtil before XprintAppUtil
133 build lib XprintAppUtil
146 # Most apps depend at least on libX11.
148 # bdftopcf depends on libXfont
149 # mkfontscale depends on libfontenc and libfreetype
150 # mkfontdir depends on mkfontscale
152 # TODO: detailed breakdown of which apps require which libs
156 build app beforelight
169 build app mkfontscale
226 build app xphelloworld
227 build app xplsprinters
229 build app xprehashprinterlist
237 build app xsetpointer
249 # The server requires at least the following libraries:
255 build_driver_input
() {
259 # Some drivers are only buildable on some OS'es
262 build driver xf86-input-aiptek
263 build driver xf86-input-evdev
264 build driver xf86-input-ur98
270 build driver xf86-input-acecad
271 build driver xf86-input-calcomp
272 build driver xf86-input-citron
273 build driver xf86-input-digitaledge
274 build driver xf86-input-dmc
275 build driver xf86-input-dynapro
276 build driver xf86-input-elo2300
277 build driver xf86-input-elographics
278 build driver xf86-input-fpit
279 build driver xf86-input-hyperpen
280 build driver xf86-input-jamstudio
281 build driver xf86-input-joystick
282 build driver xf86-input-keyboard
283 build driver xf86-input-magellan
284 build driver xf86-input-magictouch
285 build driver xf86-input-microtouch
286 build driver xf86-input-mouse
287 build driver xf86-input-mutouch
288 build driver xf86-input-palmax
289 build driver xf86-input-penmount
290 build driver xf86-input-spaceorb
291 build driver xf86-input-summa
292 build driver xf86-input-tek4957
293 build driver xf86-input-void
296 build_driver_video
() {
300 # Some drivers are only buildable on some OS'es
303 build driver xf86-video-wsfb
304 build driver xf86-video-sunffb
307 build driver xf86-video-sisusb
308 build driver xf86-video-sunffb
309 build driver xf86-video-v4l
315 build driver xf86-video-apm
316 build driver xf86-video-ark
317 build driver xf86-video-ati
318 build driver xf86-video-chips
319 build driver xf86-video-cirrus
320 build driver xf86-video-cyrix
321 build driver xf86-video-dummy
322 build driver xf86-video-fbdev
323 # build driver xf86-video-glide
324 build driver xf86-video-glint
325 build driver xf86-video-i128
326 build driver xf86-video-i740
327 build driver xf86-video-i810
328 build driver xf86-video-imstt
329 build driver xf86-video-mga
330 build driver xf86-video-neomagic
331 build driver xf86-video-newport
332 build driver xf86-video-nsc
333 build driver xf86-video-nv
334 build driver xf86-video-rendition
335 build driver xf86-video-s3
336 build driver xf86-video-s3virge
337 build driver xf86-video-savage
338 build driver xf86-video-siliconmotion
339 build driver xf86-video-sis
340 build driver xf86-video-sunbw2
341 build driver xf86-video-suncg14
342 build driver xf86-video-suncg3
343 build driver xf86-video-suncg6
344 build driver xf86-video-sunleo
345 build driver xf86-video-suntcx
346 build driver xf86-video-tdfx
347 build driver xf86-video-tga
348 build driver xf86-video-trident
349 build driver xf86-video-tseng
350 build driver xf86-video-vesa
351 build driver xf86-video-vga
352 build driver xf86-video-via
353 build driver xf86-video-vmware
354 build driver xf86-video-voodoo
357 # The server must be built before the drivers
363 # All fonts require mkfontscale and mkfontdir to be available
365 # The following fonts require bdftopcf to be available:
366 # adobe-100dpi, adobe-75dpi, adobe-utopia-100dpi, adobe-utopia-75dpi,
367 # arabic-misc, bh-100dpi, bh-75dpi, bh-lucidatypewriter-100dpi,
368 # bh-lucidatypewriter-75dpi, bitstream-100dpi, bitstream-75dpi,
369 # cronyx-cyrillic, cursor-misc, daewoo-misc, dec-misc, isas-misc,
370 # jis-misc, micro-misc, misc-cyrillic, misc-misc, mutt-misc,
371 # schumacher-misc, screen-cyrillic, sony-misc, sun-misc and
374 # Within the font module, the util component must be built before the
376 # adobe-100dpi, adobe-75dpi, adobe-utopia-100dpi, adobe-utopia-75dpi,
377 # bh-100dpi, bh-75dpi, bh-lucidatypewriter-100dpi, bh-lucidatypewriter-75dpi,
378 # misc-misc and schumacher-misc
380 # The alias component is recommended to be installed after the other fonts
381 # since the fonts.alias files reference specific fonts installed from the
382 # other font components
386 build font adobe-100dpi
387 build font adobe-75dpi
388 build font adobe-utopia-100dpi
389 build font adobe-utopia-75dpi
390 build font adobe-utopia-type1
391 build font arabic-misc
394 build font bh-lucidatypewriter-100dpi
395 build font bh-lucidatypewriter-75dpi
398 build font bitstream-100dpi
399 build font bitstream-75dpi
400 build font bitstream-speedo
401 build font bitstream-type1
402 build font cronyx-cyrillic
403 build font cursor-misc
404 build font daewoo-misc
409 build font micro-misc
410 build font misc-cyrillic
411 build font misc-ethiopic
412 build font misc-meltho
415 build font schumacher-misc
416 build font screen-cyrillic
419 build font winitzki-cyrillic
420 build font xfree86-type1
424 # makedepend requires xproto
428 build util makedepend
432 # No dependencies thus far
434 build doc xorg-sgml-doctools
438 echo "Usage: $0 [options] prefix"
439 echo " where options are:"
440 echo " -d : run make distcheck in addition to others"
441 echo " -m path-to-mesa-sources-for-xserver : full path to Mesa sources"
442 echo " -n : do not quit after error; just print error message"
443 echo " -s sudo-command : sudo command to use"
446 # Process command line args
472 if test x
"${PREFIX}" = x
; then
477 # Must create local aclocal dir or aclocal fails
478 ACLOCAL_LOCALDIR
="${DESTDIR}${PREFIX}/share/aclocal"
479 $SUDO mkdir
-p ${ACLOCAL_LOCALDIR}
481 # The following is required to make aclocal find our .m4 macros
482 if test x
"$ACLOCAL" = x
; then
483 ACLOCAL
="aclocal -I ${ACLOCAL_LOCALDIR}"
485 ACLOCAL
="${ACLOCAL} -I ${ACLOCAL_LOCALDIR}"
489 # The following is required to make pkg-config find our .pc metadata files
490 if test x
"$PKG_CONFIG_PATH" = x
; then
491 PKG_CONFIG_PATH
=${DESTDIR}${PREFIX}/lib
/pkgconfig
493 PKG_CONFIG_PATH
=${DESTDIR}${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
495 export PKG_CONFIG_PATH
497 # Set the library path so that locally built libs will be found by apps
498 if test x
"$LD_LIBRARY_PATH" = x
; then
499 LD_LIBRARY_PATH
=${DESTDIR}${PREFIX}/lib
501 LD_LIBRARY_PATH
=${DESTDIR}${PREFIX}/lib:${LD_LIBRARY_PATH}
503 export LD_LIBRARY_PATH
505 # Set the path so that locally built apps will be found and used
506 if test x
"$PATH" = x
; then
507 PATH
=${DESTDIR}${PREFIX}/bin
509 PATH
=${DESTDIR}${PREFIX}/bin:${PATH}
513 # Set the default font path for xserver/xorg unless it's already set
514 if test x
"$FONTPATH" = x
; then
515 FONTPATH
="${PREFIX}/lib/X11/fonts/misc/,${PREFIX}/lib/X11/fonts/Type1/,${PREFIX}/lib/X11/fonts/75dpi/,${PREFIX}/lib/X11/fonts/100dpi/,${PREFIX}/lib/X11/fonts/cyrillic/,${PREFIX}/lib/X11/fonts/TTF/"
519 # Create the log file directory
520 $SUDO mkdir
-p ${DESTDIR}${PREFIX}/var
/log
524 # We must install the global macros before anything else