summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-11-09 11:11:08 +0000
committernia <nia@pkgsrc.org>2021-11-09 11:11:08 +0000
commit46c0867aa1798c5c7231fa32aa1328c13495decf (patch)
tree0dc850b7f3d562e1605b54ea5705d7e2c4c6a520 /comms
parentdea6d486d5f6f1cf09db248dc98ade72b1559d5f (diff)
downloadpkgsrc-46c0867aa1798c5c7231fa32aa1328c13495decf.tar.gz
asterisk*: Detect kqueue/timerfd through pkgsrc infrastructure.
Fixes PLIST on NetBSD/current.
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk13/Makefile9
-rw-r--r--comms/asterisk13/PLIST3
-rw-r--r--comms/asterisk16/Makefile6
-rw-r--r--comms/asterisk18/Makefile6
4 files changed, 15 insertions, 9 deletions
diff --git a/comms/asterisk13/Makefile b/comms/asterisk13/Makefile
index 8b0a0236df4..5517ea702c9 100644
--- a/comms/asterisk13/Makefile
+++ b/comms/asterisk13/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2021/09/29 19:00:24 adam Exp $
+# $NetBSD: Makefile,v 1.74 2021/11/09 11:11:08 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -117,10 +117,15 @@ BUILDLINK_TRANSFORM+= rm:-march=i386
.endif
PLIST_VARS+= kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
PLIST.kqueue= yes
.endif
+PLIST_VARS+= timerfd
+.if defined(PKG_HAVE_TIMERFD)
+PLIST.timerfd= yes
+.endif
+
PLIST_VARS+= mgcp
# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
# if the grep fails
diff --git a/comms/asterisk13/PLIST b/comms/asterisk13/PLIST
index c761acb8c42..fd06299d63a 100644
--- a/comms/asterisk13/PLIST
+++ b/comms/asterisk13/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2021/01/02 22:45:43 jnemeth Exp $
+@comment $NetBSD: PLIST,v 1.13 2021/11/09 11:11:08 nia Exp $
include/asterisk.h
include/asterisk/_private.h
include/asterisk/abstract_jb.h
@@ -462,6 +462,7 @@ lib/asterisk/modules/res_statsd.so
lib/asterisk/modules/res_stun_monitor.so
${PLIST.kqueue}lib/asterisk/modules/res_timing_kqueue.so
lib/asterisk/modules/res_timing_pthread.so
+${PLIST.timerfd}lib/asterisk/modules/res_timing_timerfd.so
${PLIST.jabber}lib/asterisk/modules/res_xmpp.so
lib/libasteriskssl.so
lib/libasteriskssl.so.1
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile
index 9b8ca3025f0..3c048691a43 100644
--- a/comms/asterisk16/Makefile
+++ b/comms/asterisk16/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.82 2021/09/29 19:00:25 adam Exp $
+# $NetBSD: Makefile,v 1.83 2021/11/09 11:11:08 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -120,7 +120,7 @@ BUILDLINK_TRANSFORM+= rm:-march=i386
.endif
PLIST_VARS+= kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
PLIST.kqueue= yes
.endif
@@ -141,7 +141,7 @@ PLIST.mgcp= yes
.endif
PLIST_VARS+= timerfd
-.if ${OPSYS} == "Linux"
+.if defined(PKG_HAVE_TIMERFD)
PLIST.timerfd= yes
.endif
diff --git a/comms/asterisk18/Makefile b/comms/asterisk18/Makefile
index 72fbe4ac7cf..240805f9f5a 100644
--- a/comms/asterisk18/Makefile
+++ b/comms/asterisk18/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2021/11/08 00:58:50 jnemeth Exp $
+# $NetBSD: Makefile,v 1.134 2021/11/09 11:11:08 nia Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -119,7 +119,7 @@ BUILDLINK_TRANSFORM+= rm:-march=i386
.endif
PLIST_VARS+= kqueue
-.if exists(/usr/include/sys/event.h)
+.if defined(PKG_HAVE_KQUEUE)
PLIST.kqueue= yes
.endif
@@ -140,7 +140,7 @@ PLIST.mgcp= yes
.endif
PLIST_VARS+= timerfd
-.if ${OPSYS} == "Linux"
+.if defined(PKG_HAVE_TIMERFD)
PLIST.timerfd= yes
.endif