summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-01-25 22:39:56 +0000
committerjschauma <jschauma>2003-01-25 22:39:56 +0000
commit69cef9587ad9f55d5ee6c84948bc553f0b7d03a3 (patch)
tree6390f379340f0aef495a453530191751daa837e7 /mk
parente4cdef2d9c11b76bd2721028cd79f92b6b0f3d91 (diff)
downloadpkgsrc-69cef9587ad9f55d5ee6c84948bc553f0b7d03a3.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.mk20
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"