pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add LOWER_OPSYS_VERSUFFIX on FreeBSD platforms, so ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba747519dd80
branches: trunk
changeset: 470487:ba747519dd80
user: recht <recht%pkgsrc.org@localhost>
date: Tue Mar 09 20:39:50 2004 +0000
description:
Add LOWER_OPSYS_VERSUFFIX on FreeBSD platforms, so that the major
number is included in MACHINE_GNU_PLATFORM.
Fixes at least the build of wip/mingw-gcc.
Patch based upon the one provided by Michal Pasternak in PR 23856.
diffstat:
mk/bsd.prefs.mk | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 6f8cf7d8b280 -r ba747519dd80 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk Tue Mar 09 19:59:09 2004 +0000
+++ b/mk/bsd.prefs.mk Tue Mar 09 20:39:50 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.155 2004/02/18 13:32:38 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.156 2004/03/09 20:39:50 recht Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -37,6 +37,14 @@
UNAME=echo Unknown
.endif
+.if exists(/usr/bin/cut)
+CUT=/usr/bin/cut
+.elif exists(/bin/cut)
+CUT=/bin/cut
+.else
+CUT=echo Unknown
+.endif
+
.ifndef OPSYS
OPSYS!= ${UNAME} -s | tr -d /
.endif
@@ -82,6 +90,7 @@
LOWER_ARCH!= ${UNAME} -p
MACHINE_ARCH= ${LOWER_ARCH}
MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
+LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
. if ${LOWER_ARCH} == "i386"
LOWER_VENDOR?= pc
. else
Home |
Main Index |
Thread Index |
Old Index