summaryrefslogtreecommitdiff
path: root/comms/asterisk19
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-10 11:49:03 +0000
committernia <nia@pkgsrc.org>2022-05-10 11:49:03 +0000
commitb612b8b04cba59b5e59c68e7159fe072ed40a8b1 (patch)
treecad414895a5f74bd6efdcd207b2d8e186efa59c7 /comms/asterisk19
parentb7d369c400a6dfea1c66babd0ee99a797f5804a6 (diff)
downloadpkgsrc-b612b8b04cba59b5e59c68e7159fe072ed40a8b1.tar.gz
asterisk*: Check for NetBSD properly. Use OPSYS_VERSION.
Diffstat (limited to 'comms/asterisk19')
-rw-r--r--comms/asterisk19/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/comms/asterisk19/Makefile b/comms/asterisk19/Makefile
index 3d1e8d5e0c0..897eabd9af2 100644
--- a/comms/asterisk19/Makefile
+++ b/comms/asterisk19/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2022/05/05 08:20:09 nia Exp $
+# $NetBSD: Makefile,v 1.7 2022/05/10 11:49:04 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -146,7 +146,8 @@ PLIST.timerfd= yes
PLIST_VARS+= unbound
# unbound 1.5 or later is required.`
-.if exists(/usr/include/unbound.h) && !empty(OS_VERSION:M8.*)
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} > 090000 && \
+ exists(/usr/include/unbound.h)
CONFIGURE_ARGS+= --without-unbound
.else
PLIST.unbound= yes