summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-05 08:20:09 +0000
committernia <nia@pkgsrc.org>2022-05-05 08:20:09 +0000
commitf885436d069c980f36ed275ce553672667814aea (patch)
treea8a0d6dbcb3cf561f814517d9fa0c2846ac43b35 /comms
parent9ca81da3067836b33a126b1ce4ea763d63151891 (diff)
downloadpkgsrc-f885436d069c980f36ed275ce553672667814aea.tar.gz
asterisk*: Use OPSYS_VERSION to numerically compare NetBSD versions
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk13/Makefile5
-rw-r--r--comms/asterisk16/Makefile5
-rw-r--r--comms/asterisk18/Makefile5
-rw-r--r--comms/asterisk19/Makefile5
4 files changed, 8 insertions, 12 deletions
diff --git a/comms/asterisk13/Makefile b/comms/asterisk13/Makefile
index 056476f91f4..72f15aedf6d 100644
--- a/comms/asterisk13/Makefile
+++ b/comms/asterisk13/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2022/04/18 19:10:33 adam Exp $
+# $NetBSD: Makefile,v 1.78 2022/05/05 08:20:09 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -48,8 +48,7 @@ CONFIGURE_ARGS+= --without-gtk2
# XXX remove when lang/lua gets builtin.mk
CONFIGURE_ARGS+= --without-lua
-.if (${OPSYS} == "NetBSD" && \
- (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 069900
CONFIGURE_ARGS+= --without-srtp
.else
CONFIGURE_ARGS+= --with-srtp
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile
index d0ee2901a61..7399745f17d 100644
--- a/comms/asterisk16/Makefile
+++ b/comms/asterisk16/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.87 2022/04/18 19:10:33 adam Exp $
+# $NetBSD: Makefile,v 1.88 2022/05/05 08:20:09 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -50,8 +50,7 @@ CONFIGURE_ARGS+= --without-gtk2
CONFIGURE_ARGS+= --without-lua
PLIST_VARS+= srtp
-.if (${OPSYS} == "NetBSD" && \
- (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 069900
CONFIGURE_ARGS+= --without-srtp
.else
CONFIGURE_ARGS+= --with-srtp
diff --git a/comms/asterisk18/Makefile b/comms/asterisk18/Makefile
index d8192147255..083ac1f534e 100644
--- a/comms/asterisk18/Makefile
+++ b/comms/asterisk18/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.138 2022/04/18 19:10:33 adam Exp $
+# $NetBSD: Makefile,v 1.139 2022/05/05 08:20:09 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -51,8 +51,7 @@ CONFIGURE_ARGS+= --without-gtk2
# XXX remove when lang/lua gets builtin.mk
CONFIGURE_ARGS+= --without-lua
-.if (${OPSYS} == "NetBSD" && \
- (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 069900
CONFIGURE_ARGS+= --without-srtp
.else
CONFIGURE_ARGS+= --with-srtp
diff --git a/comms/asterisk19/Makefile b/comms/asterisk19/Makefile
index e9256566d0f..3d1e8d5e0c0 100644
--- a/comms/asterisk19/Makefile
+++ b/comms/asterisk19/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2022/04/18 19:10:33 adam Exp $
+# $NetBSD: Makefile,v 1.6 2022/05/05 08:20:09 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -51,8 +51,7 @@ CONFIGURE_ARGS+= --without-gtk2
# XXX remove when lang/lua gets builtin.mk
CONFIGURE_ARGS+= --without-lua
-.if (${OPSYS} == "NetBSD" && \
- (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 069900
CONFIGURE_ARGS+= --without-srtp
.else
CONFIGURE_ARGS+= --with-srtp