diff options
author | agc <agc@pkgsrc.org> | 1998-06-03 11:15:29 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-06-03 11:15:29 +0000 |
commit | a1083063006049859b11de272211deda6c76a53d (patch) | |
tree | 575a3bcda4da306a8e81519272fb61ed02aed2bb /mk | |
parent | 158e1b451bbbef6ed4a5f4349cad5568f3239737 (diff) | |
download | pkgsrc-a1083063006049859b11de272211deda6c76a53d.tar.gz |
Consolidate all the logic for inclusion of MAKECONF, and /etc/mk.conf,
into one file, located in the pkgsrc tree. Thus one file simply needs
to be included before any .if* statements in the package Makefile,
rather than a large number of ad-hoc methods of doing this.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.prefs.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk new file mode 100644 index 00000000000..064d6ba3fd3 --- /dev/null +++ b/mk/bsd.prefs.mk @@ -0,0 +1,19 @@ +# $NetBSD: bsd.prefs.mk,v 1.1 1998/06/03 11:15:29 agc Exp $ +# +# Make file, included to get the site preferences, if any. Should +# only be included by package Makefiles before any .if defined() +# statements, to make sure any variables defined in /etc/mk.conf or +# $MAKECONF are used. + +.if !defined(OPSYS) +OPSYS!= /usr/bin/uname -s +.endif + +.if defined(MAKECONF) && exists(${MAKECONF}) +.include "${MAKECONF}" +.elif ${OPSYS} == "FreeBSD" && exists(/etc/make.conf) +.include "/etc/make.conf" +.elif exists(/etc/mk.conf) +.include "/etc/mk.conf" +.endif + |