Annotation of wikisrc/pkgsrc/mk.conf.mdwn, revision 1.2
1.2 ! sevan 1:
! 2: The file `mk.conf` is the central configuration file for everything that has to do with building software. It is used by the BSD-style `Makefiles` in `/usr/share/mk` and especially by pkgsrc. Usually, it is found in the `/etc` directory. If it doesn't exist there, feel free to create it.
! 4: Because all configuration takes place in a single file, there are some variables so the user can choose different configurations based on whether he is building the base system or packages from pkgsrc. These variables are:
! 6: * `BSD_PKG_MK`: Defined when a pkgsrc package is built.
! 7: * `BUILDING_HTDOCS`: Defined when the NetBSD web site is built.
! 8: * None of the above: When the base system is built. The file /usr/share/mk/bsd.README is a good place to start in this case.
! 10: A typical `mk.conf` file would look like this:
! 11: <pre><code>
! 12: # This is /etc/mk.conf
! 13: #
! 15: .if defined(BSD_PKG_MK) || defined(BUILDING_HTDOCS)
! 16: # The following lines apply to both pkgsrc and htdocs.
! 18: #...
! 19: LOCALBASE= /usr/pkg
! 20: #...
! 22: .else
! 23: # The following lines apply to the base system.
! 25: WARNS= 4
! 27: .endif
! 28: </code></pre>
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb