pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/binutils binutils: Use OPSYS_VERSION to numerica...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b3c5c745c97d
branches:  trunk
changeset: 378720:b3c5c745c97d
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu May 05 08:34:35 2022 +0000

description:
binutils: Use OPSYS_VERSION to numerically compare NetBSD versions

diffstat:

 devel/binutils/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4d85ab72bbc6 -r b3c5c745c97d devel/binutils/Makefile
--- a/devel/binutils/Makefile   Thu May 05 08:33:57 2022 +0000
+++ b/devel/binutils/Makefile   Thu May 05 08:34:35 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.104 2022/02/10 14:03:07 fcambus Exp $
+# $NetBSD: Makefile,v 1.105 2022/05/05 08:34:35 nia Exp $
 
 DISTNAME=      binutils-2.38
 CATEGORIES=    devel
@@ -80,7 +80,7 @@
 .if ${OPSYS} == DragonFly \
        || (${OPSYS} == FreeBSD && empty(OS_VERSION:M[12345678].*)) \
        || (${OPSYS} == OpenBSD && empty(OS_VERSION:M[1234].*)) \
-       || (${OPSYS} == NetBSD && empty(OS_VERSION:M[12345].*)) \
+       || (${OPSYS} == NetBSD && ${OPSYS_VERSION} > 050000) \
        || ${OPSYS} == Linux
 PLIST.gold=            yes
 USE_TOOLS+=            bison



Home | Main Index | Thread Index | Old Index