diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-01-25 22:39:56 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-01-25 22:39:56 +0000 |
commit | ce9144b32887c44911013d83ba48937035c7653d (patch) | |
tree | 6390f379340f0aef495a453530191751daa837e7 /mk | |
parent | f24ebbe2bc11fff758809ab3749590c6f9d65d06 (diff) | |
download | pkgsrc-ce9144b32887c44911013d83ba48937035c7653d.tar.gz |
Add some LOWER_VENDOR definitions on Linux to better customize packages
in the future (on Debian, for example, there is no libtermcap, and we need to
depend on ncurses etc.)
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.prefs.mk | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 1ee11dd5fb4..f07206139e3 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.105 2003/01/15 20:55:39 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.106 2003/01/25 22:39:56 jschauma Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -95,11 +95,19 @@ LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/' . if ${MACHINE_ARCH} == "unknown" MACHINE_ARCH= ${LOWER_ARCH} MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH} -. if ${LOWER_ARCH} == "i386" -LOWER_VENDOR?= pc -. else -LOWER_VENDOR?= unknown -. endif +. endif +. if exists(/etc/debian_version) +LOWER_VENDOR?= debian +. elif exists(/etc/mandrake-release) +LOWER_VENDOR?= mandrake +. elif exists(/etc/redhat-version) +LOWER_VENDOR?= redhat +. elif exists(/etc/slackware-version) +LOWER_VENDOR?= slackware +. elif ${LOWER_ARCH} == "i386" +LOWER_VENDOR?= pc +. else +LOWER_VENDOR?= unknown . endif .elif ${OPSYS} == "Darwin" |