* Add support for gb18030 encoding.
[dragonfly.git] / share / man / man5 / make.conf.5
1 .\" Copyright (c) 2000
2 .\"     Mike W. Meyer
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/share/man/man5/make.conf.5,v 1.12.2.30 2003/05/18 17:05:55 brueffer Exp $
26 .\" $DragonFly: src/share/man/man5/make.conf.5,v 1.5 2003/08/05 07:45:43 asmodai Exp $
27 .\"
28 .Dd November 3, 2000
29 .Dt MAKE.CONF 5
30 .Os
31 .Sh NAME
32 .Nm make.conf
33 .Nd system build information
34 .Sh DESCRIPTION
35 The file
36 .Nm
37 contains settings that control the compilation of the
38 .Fx
39 sources
40 and ported applications.
41 The file
42 .Nm
43 is generally created by the system administrator when the values need
44 to be changed from their defaults.
45 .Pp
46 The purpose of
47 .Nm
48 is not to run commands or perform compilation actions
49 directly.
50 Instead, it is included by the
51 various makefiles in
52 .Pa /usr/src ,
53 .Pa /usr/ports
54 and
55 .Pa /usr/doc
56 which conditionalize their
57 internal actions according to the settings found there.
58 .Pp
59 The
60 .Pa /etc/make.conf
61 file is included from the appropriate
62 .Pa Makefile
63 which specifies the default settings for all the available options.
64 Options need only be specified in
65 .Pa /etc/make.conf
66 when the system administrator wishes to override these defaults.
67 .Pp
68 The build procedures occur in four broad areas: the world, the kernel,
69 documentations and ports.
70 Variables set in
71 .Nm
72 may be applicable during builds in one, two, or all four of these
73 areas.
74 They may be specified for a particular build via the
75 .Fl D
76 option of
77 .Xr make 1 .
78 .Pp
79 The following lists provide a name and short description for each
80 variable you can use during the indicated builds.
81 The values of
82 variables flagged as
83 .Vt bool
84 are ignored; the variable being
85 set at all (even to
86 .Dq Li FALSE
87 or
88 .Dq Li NO )
89 causes it to
90 be treated as if it were set.
91 .Pp
92 The following list provides a name and short description for variables
93 that are used for all builds, or are used by the
94 .Pa makefiles
95 for things other than builds.
96 .Bl -tag -width Ar
97 .It Va CFLAGS
98 .Pq Vt str
99 Controls the compiler setting when compiling C code.
100 Optimization levels above
101 .Fl O
102 .Pq Fl O2 , No ...
103 are not supported.
104 .Va BDECFLAGS
105 is provided as a set of
106 .Xr gcc 1
107 settings suggested by
108 .An "Bruce Evans" Aq bde@FreeBSD.org
109 for developing and testing changes.
110 They can be used, if set, by:
111 .Pp
112 .Bd -literal -offset indent
113 CFLAGS+=${BDECFLAGS}
114 .Ed
115 .It Va CPUTYPE
116 .Pq Vt str
117 Controls which processor should be targeted for generated
118 code.  This controls processor-specific optimizations in
119 certain code (currently only OpenSSL) as well as modifying
120 the value of
121 .Va CFLAGS
122 and
123 .Va COPTFLAGS
124 to contain the appropriate optimization directive to
125 .Xr gcc 1 .
126 The automatic setting of
127 .Va CFLAGS
128 and
129 .Va COPTFLAGS
130 may be overridden using the
131 .Va NO_CPU_CFLAGS
132 and
133 .Va NO_CPU_COPTFLAGS
134 variables, respectively.  Refer to
135 .Pa /usr/share/examples/etc/make.conf
136 for a list of recognized
137 .Va CPUTYPE
138 options.
139 .It Va NO_CPU_CFLAGS
140 .Pq Vt str
141 Setting this variable will prevent CPU specific compiler flags
142 from being automatically added to
143 .Va CFLAGS
144 during compile time.
145 .It Va NO_CPU_COPTFLAGS
146 .Pq Vt str
147 Setting this variable will prevent CPU specific compiler flags
148 from being automatically added to
149 .Va COPTFLAGS
150 during compile time.
151 .It Va CVS_UPDATE
152 .Pq Vt bool
153 Set this to use
154 .Xr cvs 1
155 to update your ports with
156 .Dq Li "make update" .
157 .It Va CXXFLAGS
158 .Pq Vt str
159 Controls the compiler settings when compiling C++ code.
160 .Va CXXFLAGS
161 is initially set to the value of
162 .Va CFLAGS .
163 If you want to
164 add to the
165 .Va CXXFLAGS
166 value, use
167 .Dq Li +=
168 instead of
169 .Dq Li = .
170 .It Va INSTALL
171 .Pq Vt str
172 the default install command.
173 To have commands compared before doing
174 the install, use
175 .Bd -literal -offset indent
176 INSTALL="install -C"
177 .Ed
178 .It Va LOCAL_DIRS
179 .Pq Vt str
180 List any directories that should be entered when doing
181 make's in
182 .Pa /usr/src
183 in this variable.
184 .It Va MAKE_SHELL
185 .Pq Vt str
186 Controls the shell used internally by
187 .Xr make 1
188 to process the command scripts in makefiles.
189 .Xr sh 1 ,
190 .Xr ksh 1 ,
191 and
192 .Xr csh 1
193 all currently supported.
194 .Bd -literal -offset indent
195 MAKE_SHELL?=sh
196 .Ed
197 .It Va MTREE_FOLLOWS_SYMLINKS
198 .Pq Vt str
199 Set this to
200 .Dq Fl L
201 to cause
202 .Xr mtree 8
203 to follow symlinks.
204 .It Va NO_DOCUPDATE
205 .Pq Vt bool
206 Set this to not update the doc tree during
207 .Dq Li "make update" .
208 .It Va NO_PORTSUPDATE
209 .Pq Vt bool
210 Set this to not update the ports tree during
211 .Dq Li "make update" .
212 .It Va SUP_UPDATE
213 .Pq Vt bool
214 Set this to use
215 .Xr cvsup 1
216 to update your ports with
217 .Dq Li "make update" .
218 .It Va SUP
219 .Pq Vt str
220 The location of the
221 .Xr cvsup 1
222 command for
223 .Dq Li "make update" .
224 .It Va SUPFLAGS
225 .Pq Vt str
226 The flag for the
227 .Xr sup 1
228 command when doing
229 .Dq Li "make update" .
230 This defaults to
231 .Op Fl g L Ar 2 .
232 .It Va SUPHOST
233 .Pq Vt str
234 The hostname of the sup server to use when doing
235 .Dq Li "make update" .
236 .It Va SUPFILE
237 .Pq Vt str
238 The first
239 .Ar supfile
240 to use when doing a
241 .Dq Li "make update" .
242 This defaults to
243 .Pa /usr/share/examples/cvsup/standard\-supfile .
244 .It Va SUPFILE1
245 .Pq Vt str
246 The second
247 .Ar supfile
248 to use when doing a
249 .Dq Li "make update" .
250 This defaults to
251 .Pa /usr/share/examples/cvsup/secure\-supfile .
252 .It Va SUPFILE2
253 .Pq Vt str
254 The third
255 .Ar supfile
256 to use when doing a
257 .Dq Li "make update" .
258 This defaults to
259 .Pa /usr/share/examples/cvsup/secure\-supfile .
260 .It Va PORTSSUPFILE
261 .Pq Vt str
262 The ports
263 .Ar supfile
264 to use when doing a
265 .Dq Li "make update" .
266 This defaults to
267 .Pa /usr/share/examples/cvsup/ports\-supfile .
268 .It Va DOCSUPFILE
269 .Pq Vt str
270 The documentation
271 .Ar supfile
272 to use when doing a
273 .Dq Li "make update" .
274 This defaults to
275 .Pa /usr/share/examples/cvsup/doc\-supfile .
276 .It Va WARNS_WERROR
277 Causes -Werror to be added to
278 .Va CFLAGS
279 when WARNS is in effect.
280 .El
281 .Pp
282 The following list provides a name and short description for variables
283 that are only used doing a kernel build:
284 .Bl -tag -width Ar
285 .It Va BOOT_COMCONSOLE_PORT
286 .Pq Vt str
287 The port address to use for the console if the boot blocks have
288 been configured to use a serial console instead of the keyboard/video card.
289 .It Va BOOT_COMCONSOLE_SPEED
290 .Pq Vt int
291 The baud rate to use for the console if the boot blocks have
292 been configured to use a serial console instead of the keyboard/video card.
293 .It Va BOOTWAIT
294 .Pq Vt int
295 Controls the amount of time the kernel waits for a console keypress
296 before booting the default kernel.
297 The value is approximately milliseconds.
298 Keypresses are accepted by the BIOS before booting from disk,
299 making it possible to give custom boot parameters even when this is
300 set to 0.
301 .It Va COPTFLAGS
302 .Pq Vt str
303 Controls the compiler settings when building the
304 kernel.
305 Optimization levels above
306 .Oo Fl O ( O2 , No ...\& ) Oc
307 are not guaranteed to work.
308 .It Va KERNCONF
309 .Pq Vt str
310 Controls which kernel configurations will be
311 built by
312 .Dq Li "${MAKE} buildkernel"
313 and installed by
314 .Dq Li "${MAKE} installkernel" .
315 For example,
316 .Bd -literal -offset indent
317 KERNCONF=MINE DEBUG GENERIC OTHERMACHINE
318 .Ed
319 .Pp
320 will build the kernels specified by the config files
321 .Pa MINE , DEBUG , GENERIC ,
322 and
323 .Pa OTHERMACHINE ,
324 and install the kernel specified by the config file
325 .Pa MINE .
326 It defaults to
327 .Pa GENERIC .
328 .It Va LOADER_TFTP_SUPPORT
329 .Pq Vt bool
330 While not a buildkernel-affected option, there is no better place for this.
331 By default the
332 .Xr pxeboot 8
333 loader retrieves the kernel via NFS.
334 Defining this and recompiling
335 .Pa /usr/src/sys/boot
336 will cause it to retrieve the kernel via TFTP.
337 This allows pxeboot to load a custom BOOTP diskless kernel yet
338 still mount the server's
339 .Pa /
340 rather than load the server's kernel.
341 .It Va MODULES_OVERRIDE
342 .Pq Vt str
343 Set to a list of modules to build instead of all of them.
344 .It Va NO_KERNELCONFIG
345 .Pq Vt bool
346 Set this to skip running
347 .Xr config 8
348 during
349 .Dq Li "${MAKE} buildkernel" .
350 .It Va NO_KERNELDEPEND
351 .Pq Vt bool
352 Set this to skip running
353 .Dq Li "${MAKE} depend"
354 during
355 .Dq Li "${MAKE} buildkernel" .
356 .It Va NO_MODULES
357 .Pq Vt bool
358 Set to not build modules with the kernel.
359 .El
360 .Pp
361 The following list provides a name and short description for variables
362 that are used during the world build:
363 .Bl -tag -width Ar
364 .It Va COMPAT1X
365 .Pq Vt bool
366 Set to install the
367 .Fx
368 1 compatibility libraries.
369 .It Va COMPAT20
370 .Pq Vt bool
371 Set to install the
372 .Fx 2.0
373 compatibility libraries.
374 .It Va COMPAT21
375 .Pq Vt bool
376 Set to install the
377 .Fx 2.1
378 compatibility libraries.
379 .It Va COMPAT22
380 .Pq Vt bool
381 Set to install the
382 .Fx 2.2
383 compatibility libraries.
384 .It Va COMPAT3X
385 .Pq Vt bool
386 Set to install the
387 .Fx
388 3
389 compatibility libraries.
390 .It Va COMPAT4X
391 .Pq Vt bool
392 Set to install the
393 .Fx
394 4
395 compatibility libraries.
396 .It Va ENABLE_SUIDPERL
397 .Pq Vt bool
398 Set to enable the installation of an suid
399 .Xr perl 1
400 binary.
401 .It Va FETCH_CMD
402 .Pq Vt str
403 Command to use to fetch files.
404 Normally
405 .Xr fetch 1 .
406 .It Va KRB5_HOME
407 .Pq Vt str
408 If you want to install the MIT Kerberos5 port somewhere other than
409 .Pa /usr/local ,
410 define this.  This is also used to tell ssh1 that kerberos is needed.
411 .It Va MAKE_IDEA
412 .Pq Vt bool
413 Set to build the IDEA encryption code.
414 This code is patented in the USA and many European countries.
415 It is
416 .Em "YOUR RESPONSIBILITY"
417 to determine if you can legally use IDEA.
418 .It Va MAKE_KERBEROS5
419 .Pq Vt bool
420 Set this to build Kerberos5 (KTH Heimdal).
421 .Em WARNING !
422 This is still experimental code.
423 If you need stable Kerberos5, use the
424 port(s).
425 .It Va ENABLE_SUID_K5SU
426 .Pq Vt bool
427 Set this if you wish to use the k5su utility.  Otherwise, it will be
428 installed without the set-user-ID bit set.
429 .It Va ENABLE_SUID_SSH
430 .Pq Vt bool
431 Set this to install
432 .Xr ssh 1
433 with the setuid bit turned on.
434 .It Va MODULES_WITH_WORLD
435 .Pq Vt bool
436 Set to build modules with the system instead of the kernel.
437 .It Va NO_CVS
438 .Pq Vt bool
439 Set to not build CVS.
440 .It Va NO_BIND
441 .Pq Vt bool
442 Set to not build BIND.
443 .It Va NO_FORTRAN
444 .Pq Vt bool
445 Set to not build
446 .Xr g77 1
447 and related libraries.
448 .It Va NO_GDB
449 .Pq Vt bool
450 Set to not build
451 .Xr gdb 1
452 .It Va NO_I4B
453 .Pq Vt bool
454 Set to not build isdn4bsd package.
455 .It Va NO_IPFILTER
456 .Pq Vt bool
457 Set to not build IP Filter package.
458 .It Va NO_LPR
459 .Pq Vt bool
460 Set to not build
461 .Xr lpr 1
462 and related programs.
463 .It Va NO_MAILWRAPPER
464 .Pq Vt bool
465 Set to not build the
466 .Xr mailwrapper 8
467 MTA selector.
468 .It Va NOMAN
469 .Pq Vt bool
470 Set to not build manual pages
471 .It Va NO_MAKEDEV
472 .Pq Vt bool
473 Set to avoid running
474 .Dq Li "MAKEDEV all"
475 on
476 .Pa /dev
477 during install.
478 .It Va NO_OBJC
479 .Pq Vt bool
480 Set to not build Objective C support.
481 .It Va NO_OPENSSH
482 .Pq Vt bool
483 Set to not build OpenSSH.
484 .It Va NO_OPENSSL
485 .Pq Vt bool
486 Set to not build OpenSSL (implies
487 .Va NO_OPENSSH ) .
488 .It Va NO_SENDMAIL
489 .Pq Vt bool
490 Set to not build
491 .Xr sendmail 8
492 and related programs.
493 .It Va NO_SHAREDOCS
494 .Pq Vt bool
495 Set to not build the
496 .Bx 4.4
497 legacy docs.
498 .It Va NO_TCSH
499 .Pq Vt bool
500 Set to not build and install
501 .Pa /bin/csh
502 (which is
503 .Xr tcsh 1 ) .
504 .It Va NO_X
505 .Pq Vt bool
506 Set to not compile in X\-Windows support (e.g.\&
507 .Xr doscmd 1 ) .
508 .It Va NOCLEAN
509 .Pq Vt bool
510 Set this to disable cleaning during
511 .Dq Li "make buildworld" .
512 This should not be set unless you know what you are doing.
513 .It Va NOCLEANDIR
514 .Pq Vt bool
515 Set this to run
516 .Dq Li "${MAKE} clean"
517 instead of
518 .Dq Li "${MAKE} cleandir" .
519 .It Va NOCRYPT
520 .Pq Vt bool
521 Set to not build any crypto code.
522 .It Va NOGAMES
523 .Pq Vt bool
524 Set to not build games.
525 .It Va NOINFO
526 .Pq Vt bool
527 Set to not make or install
528 .Xr info 5
529 files.
530 .It Va NOLIBC_R
531 .Pq Vt bool
532 Set to not build
533 .Nm libc_r
534 (reentrant version of
535 .Nm libc ) .
536 .It Va NOMANCOMPRESS
537 .Pq Vt bool
538 Set to install man pages uncompressed.
539 .It Va NOPERL
540 .Pq Vt bool
541 Set to avoid building
542 .Xr perl 1 .
543 .It Va NOPROFILE
544 .Pq Vt bool
545 Set to avoid compiling profiled libraries.
546 .It Va NOSHARE
547 .Pq Vt bool
548 Set to not build in the
549 .Pa share
550 subdir.
551 .It Va PERL_THREADED
552 .Pq Vt bool
553 Set to enable the building and installation of
554 .Xr perl 1
555 with thread
556 support.
557 .It Va PPP_NOSUID
558 .Pq Vt bool
559 Set to disable the installation of
560 .Xr ppp 8
561 as an suid root program.
562 .It Va SENDMAIL_MC
563 .Pq Vt str
564 The default m4 configuration file to use at install time.
565 The value should include the full path to the
566 .Pa .mc
567 file, e.g.,
568 .Pa /etc/mail/myconfig.mc .
569 Use with caution as a make install will overwrite any existing
570 .Pa /etc/mail/sendmail.cf .
571 Note that
572 .Va SENDMAIL_CF
573 is now deprecated.
574 Avoid using a value of
575 .Pa /etc/mail/sendmail.mc
576 as a buildworld will create
577 .Pa /etc/mail/sendmail.cf
578 before installworld installs an updated
579 .Xr sendmail 8
580 binary.
581 .It Va SENDMAIL_SUBMIT_MC
582 .Pq Vt str
583 The default m4 configuration file for mail submission
584 to use at install time.
585 The value should include the full path to the
586 .Pa .mc
587 file, e.g.,
588 .Pa /etc/mail/mysubmit.mc .
589 Use with caution as a make install will overwrite any existing
590 .Pa /etc/mail/submit.cf .
591 Avoid using a value of
592 .Pa /etc/mail/submit.mc
593 as a buildworld will create
594 .Pa /etc/mail/submit.cf
595 before installworld installs an updated
596 .Xr sendmail 8
597 binary.
598 .It Va SENDMAIL_ADDITIONAL_MC
599 .Pq Vt str
600 Additional
601 .Pa .mc
602 files which should be built into
603 .Pa .cf
604 files at build time.
605 The value should include the full path to the
606 .Pa .mc
607 file(s), e.g.,
608 .Pa /etc/mail/foo.mc
609 .Pa /etc/mail/bar.mc .
610 Avoid using a value of
611 .Pa /etc/mail/sendmail.mc
612 as a buildworld will create
613 .Pa /etc/mail/sendmail.cf
614 before installworld installs an updated
615 .Xr sendmail 8
616 binary.
617 .It Va SENDMAIL_M4_FLAGS
618 .Pq Vt str
619 Flags passed to m4 when building a
620 .Pa .cf
621 file from a
622 .Pa .mc
623 file.
624 .It Va SENDMAIL_CFLAGS
625 .Pq Vt str
626 Flags to pass to the compile command when building
627 .Xr sendmail 8 .
628 The
629 .Va SENDMAIL_*
630 flags can be used to provide SASL support with setting such as:
631 .Bd -literal -offset indent
632 SENDMAIL_CFLAGS=-I/usr/local/include -DSASL
633 SENDMAIL_LDFLAGS=-L/usr/local/lib
634 SENDMAIL_LDADD=-lsasl
635 .Ed
636 .It Va SENDMAIL_LDFLAGS
637 .Pq Vt str
638 Flags to pass to the
639 .Xr ld 1
640 command when building
641 .Xr sendmail 8 .
642 .It Va SENDMAIL_LDADD
643 .Pq Vt str
644 Flags to add to the end of the
645 .Xr ld 1
646 command when building
647 .Xr sendmail 8 .
648 .It Va SENDMAIL_DPADD
649 .Pq Vt str
650 Extra dependencies to add when building
651 .Xr sendmail 8 .
652 .It Va SENDMAIL_SET_USER_ID
653 .Pq Vt bool
654 If set, install
655 .Xr sendmail 8
656 as a set-user-ID root binary instead of a set-group-ID binary
657 and do not install
658 .Pa /etc/mail/submit.{cf,mc} .
659 Use of this flag is not recommended and the alternative advice in
660 .Pa /etc/mail/README
661 should be followed instead of at all possible.
662 .It Va SENDMAIL_MAP_PERMS
663 .Pq Vt str
664 Mode to use when generating alias and map database files using
665 .Pa /etc/mail/Makefile .
666 The default value is 0640.
667 .It Va TOP_TABLE_SIZE
668 .Pq Vt int
669 .Xr top 1
670 uses a hash table for the user names.  The size of this hash can be tuned
671 to match the number of local users.  The table size should be a prime number
672 approximately twice as large as the number of lines in
673 .Pa /etc/passwd .
674 The default number is 20011.
675 .El
676 .Pp
677 The following list provides a name and short description for variables
678 that are used when building documentation.
679 .Bl -tag -width Ar
680 .It Va DISTDIR
681 .Pq Vt str
682 Where distfiles are kept.
683 Normally, this is
684 .Pa distfiles
685 in
686 .Va PORTSDIR .
687 .It Va DOC_LANG
688 .Pq Vt str
689 The list of languages and encodings to build and install.
690 .It Va PRINTERDEVICE
691 .Pq Vt str
692 The default format for system documentation, depends on your
693 printer.
694 This can be set to
695 .Dq Li ascii
696 for simple printers or
697 .Dq Li ps
698 for postscript or graphics printers with a ghostscript
699 filter.
700 .El
701 .Pp
702 The following list provides a name and short description for variables
703 that are used when building ports:
704 .Bl -tag -width Ar
705 .It Va FORCE_PKG_REGISTER
706 .Pq Vt bool
707 Set this to override any existing package registration.
708 .It Va HAVE_MOTIF
709 .Pq Vt bool
710 Set this if you have Motif on your system.
711 .It Va KRB5_HOME
712 .Pq Vt str
713 Set this if you want to install the MIT Kerberos5 port somewhere
714 other than
715 .Pa /usr/local .
716 .It Va LOCALBASE
717 .Pq Vt str
718 Set this to the base directory that non\-X ports should be
719 installed in.
720 It provides the default for
721 .Va PREFIX
722 when building in
723 .Pa /usr/ports .
724 .It Va MASTER_SITE_AFTERSTEP
725 .Pq Vt str
726 Set this to change the master site for AfterStep ports.
727 The last
728 part of the path must be
729 .Dq Li /%SUBDIR%/ .
730 .It Va MASTER_SITE_BACKUP
731 .Pq Vt str
732 Controls the site location that ports check for distfiles if the
733 locations listed in their
734 .Pa Makefile
735 do not work.
736 The last part of the path must be
737 .Dq Li /${DIST_SUBDIR}/ .
738 .It Va MASTER_SITE_COMP_SOURCES
739 .Pq Vt str
740 Controls the master site location for
741 .Pa comp.sources
742 ports.
743 The
744 last part of the path must be
745 .Dq Li %SUBDIR%/
746 .It Va MASTER_SITE_GNOME
747 .Pq Vt str
748 Controls the master site location for GNOME ports.
749 The
750 last part of the path must be
751 .Dq Li /%SUBDIR%/
752 .It Va MASTER_SITE_GNU
753 .Pq Vt str
754 Controls the master site location for GNU ports.
755 The
756 last part of the path must be
757 .Dq Li /%SUBDIR%/
758 .It Va MASTER_SITE_KDE
759 .Pq Vt str
760 Controls the master site location for KDE ports.
761 The
762 last part of the path must be
763 .Dq Li /%SUBDIR%/
764 .It Va MASTER_SITE_FREEBSD
765 .Pq Vt bool
766 If set, go to the master
767 .Fx
768 site for all files.
769 .It Va MASTER_SITE_MOZILLA
770 .Pq Vt str
771 Controls the master site location for Mozilla ports.
772 The
773 last part of the path must be
774 .Dq Li /%SUBDIR%/
775 .It Va MASTER_SITE_OVERRIDE
776 .Pq Vt str
777 If set, this site is checked before the sites listed in the ports
778 .Pa Makefile .
779 You can have it check the backup site first by like so:
780 .Bd -literal -offset indent
781 MASTER_SITE_OVERRIDE?=  ${MASTER_SITE_BACKUP}
782 .Ed
783 .It Va MASTER_SITE_PERL_CPAN
784 .Pq Vt str
785 Controls the master site location for Perl ports.
786 The
787 last part of the path must be
788 .Bd -literal -offset indent
789 /%SUBDIR%/
790 .Ed
791 .It Va MASTER_SORT_REGEX
792 .Pq Vt str
793 Set this to control the sort order for mirror sets.
794 To set it to
795 prefer mirrors in the
796 .Pa .jp
797 domain, use:
798 .Bd -literal -offset indent
799 MASTER_SORT_REGEX?=     ^file: ^ftp://ftp\.FreeBSD\.org/pub/FreeBSD/ports/local-distfiles/ ://[^/]*\.jp/ ://[^/]*\.jp\.
800 .Ed
801 .Pp
802 Users of other ccTLD domains should change the
803 .Dq Li jp
804 to the
805 appropriate domain.
806 .It Va MASTER_SITE_RINGSERVER
807 .Pq Vt str
808 Controls the master site location for Ringserver ports.
809 The last
810 part of the path must be
811 .Dq Li /%SUBDIR%/ .
812 .It Va MASTER_SITE_RUBY
813 .Pq Vt str
814 Controls the master site location for Ruby ports.
815 The last
816 part of the path must be
817 .Dq Li /%SUBDIR%/ .
818 .It Va MASTER_SITE_SUNSITE
819 .Pq Vt str
820 Controls the master site location for Sunsite ports.
821 The last
822 part of the path must be
823 .Dq Li /%SUBDIR%/ .
824 .It Va MASTER_SITE_TCLTK
825 .Pq Vt str
826 Controls the master site location for Tcl and Tk ports.
827 The last
828 part of the path must be
829 .Dq Li /%SUBDIR%/ .
830 .It Va MASTER_SITE_TEX_CTAN
831 .Pq Vt str
832 Controls the master site location for TeX ports.
833 The last
834 part of the path must be
835 .Dq Li /%SUBDIR%/ .
836 .It Va MASTER_SITE_WINDOWMAKER
837 .Pq Vt str
838 Controls the master site location for WindowMaker ports.
839 The last
840 part of the path must be
841 .Dq Li /%SUBDIR%/ .
842 .It Va MASTER_SITE_XCONTRIB
843 .Pq Vt str
844 Controls the master site location for contributed X ports.
845 The last
846 part of the path must be
847 .Dq Li /%SUBDIR%/ .
848 .It Va MASTER_SITE_XEMACS
849 .Pq Vt str
850 Controls the master site location for Xemacs ports.
851 The last
852 part of the path must be
853 .Dq Li /%SUBDIR%/ .
854 .It Va MASTER_SITE_XFREE
855 .Pq Vt str
856 Controls the master site location for XFree ports.
857 The last
858 part of the path must be
859 .Dq Li /%SUBDIR%/ .
860 .It Va MOTIFLIB
861 .Pq Vt str
862 Location of
863 .Pa libXm.a
864 and
865 .Pa libXm.so .
866 .It Va MOTIF_STATIC
867 .Pq Vt bool
868 Set this if you want ports that use Motif to be built so they
869 can be run on systems without the Motif shared libraries.
870 .It Va NOCLEANDEPENDS
871 .Pq Vt bool
872 Set this to prevent
873 .Dq Li "make clean"
874 from cleaning the ports that the one being cleaned depends on.
875 .It Va NOPORTDOCS
876 .Pq Vt bool
877 Set this to disable installing additional documentation with ports.
878 .It Va PACKAGES
879 .Pq Vt str
880 Used only for the package target; the directory for the package tree.
881 .It Va PATCH_SITES
882 .Pq Vt str
883 Primary location(s) for the distribution of patch files.
884 .It Va PORTSDIR
885 .Pq Vt str
886 The location of the ports tree.
887 .It Va USA_RESIDENT
888 .Pq Vt bool
889 Set this if you are a resident of the USA so that ports that
890 need to can attempt to comply with U.S. export regulations.
891 .It Va WITHOUT_X11
892 .Pq Vt bool
893 Set this so that ports that can be built with or without X11
894 support will build without X11 support by default.
895 .It Va WRKDIRPREFIX
896 .Pq Vt str
897 Where to create temporary files used when building ports.
898 .It Va X11BASE
899 .Pq Vt str
900 Should be set to where the X11 distribution has been
901 installed if it is installed anywhere other than
902 .Pa /usr/X11R6 .
903 .El
904 .Sh FILES
905 .Bl -tag -width /etc/defaults/make.conf -compact
906 .It Pa /etc/defaults/make.conf
907 .It Pa /etc/make.conf
908 .It Pa /usr/doc/Makefile
909 .It Pa /usr/src/Makefile
910 .It Pa /usr/src/Makefile.inc1
911 .It Pa /usr/ports/Mk/bsd.port.mk
912 .It Pa /usr/ports/Mk/bsd.sites.mk
913 .El
914 .Sh SEE ALSO
915 .Xr gcc 1 ,
916 .Xr install 1 ,
917 .Xr make 1 ,
918 .Xr ports 7 ,
919 .Xr lpd 8 ,
920 .Xr sendmail 8
921 .Sh HISTORY
922 The
923 .Nm
924 file appeared sometime before
925 .Fx 4.0 .
926 .Sh AUTHORS
927 This
928 manual page was written by
929 .An Mike W. Meyer Aq mwm@mired.org .
930 .Sh BUGS
931 This manual page may occasionally be out of date with respect to
932 the options currently available for use in
933 .Nm .
934 Please check the
935 .Pa /etc/defaults/make.conf
936 file for the latest options which are available.