diff options
author | christos <christos@pkgsrc.org> | 1999-06-23 17:06:20 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 1999-06-23 17:06:20 +0000 |
commit | 160cc155fb7dec0dd226f8a2f7b497a6e562371a (patch) | |
tree | 477fe7589cc9007c3d72efb6f3ec7e935fe36b33 /mk/bsd.prefs.mk | |
parent | cd81798b2f58d3e6dae9d587a501ccedce4ba6e8 (diff) | |
download | pkgsrc-160cc155fb7dec0dd226f8a2f7b497a6e562371a.tar.gz |
Linux bits; now the package system works on Linux too.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 7df5dc8290b..65d8b3529bb 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.8 1999/05/26 14:47:07 tv Exp $ +# $NetBSD: bsd.prefs.mk,v 1.9 1999/06/23 17:06:21 christos Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -13,11 +13,20 @@ BSD_PKG_MK=1 __PREFIX_SET__:=${PREFIX} +.if exists(/usr/bin/uname) +UNAME=/usr/bin/uname +.elif exists(/bin/uname) +UNAME=/bin/uname +.else +UNAME=echo Unknown +.endif + .ifndef OPSYS -OPSYS!= /usr/bin/uname -s +OPSYS!= ${UNAME} -s .endif .ifndef OS_VERSION -OS_VERSION!= /usr/bin/uname -r +OS_VERSION!= ${UNAME} -r +OS_MAJOR_VERSION!= echo ${OS_VERSION} | sed -e 's/\..*//g' .endif # Preload these for architectures not in all variations of bsd.own.mk. @@ -31,14 +40,15 @@ GNU_ARCH.sparc?= sparc GNU_ARCH.vax?= vax MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}} -.if (${OPSYS} == "NetBSD") -LOWER_OPSYS?= netbsd -.elif (${OPSYS} == "SunOS") -LOWER_OPSYS?= solaris +.if (${OPSYS} == "SunOS") LOWER_VENDOR?= sun -.elif !defined(LOWER_OPSYS) +.endif +.if !defined(LOWER_OPSYS) LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z .endif +.if !defined(CAPITAL_OPSYS) +CAPITAL_OPSYS!= echo ${OPSYS} | tr a-z A-Z +.endif LOWER_VENDOR?= LOWER_ARCH?= ${MACHINE_GNU_ARCH} @@ -52,7 +62,7 @@ NEED_OWN_INSTALL_TARGET=no .include <bsd.own.mk> -.if (${OPSYS} == "NetBSD") || (${OPSYS} == "SunOS") +.if (${OPSYS} == "NetBSD") || (${OPSYS} == "SunOS") || (${OPSYS} == "Linux") SHAREOWN?= ${DOCOWN} SHAREGRP?= ${DOCGRP} SHAREMODE?= ${DOCMODE} |