summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authordsainty <dsainty>2017-04-20 09:59:39 +0000
committerdsainty <dsainty>2017-04-20 09:59:39 +0000
commitf5098a91a5b0ae11d24d397ff1a1ffdae8cd5235 (patch)
tree8d8d6b4e08877304e0bff0eb4e8380b4948b4b12 /security
parentb459a4af763f40a758783d3163931193094500c7 (diff)
downloadpkgsrc-f5098a91a5b0ae11d24d397ff1a1ffdae8cd5235.tar.gz
Darwin does have sendfile(), but the API differs from ZoneMinder's expectation.
Inhibit its use on Darwin to fix the build.
Diffstat (limited to 'security')
-rw-r--r--security/zoneminder/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/zoneminder/Makefile b/security/zoneminder/Makefile
index 946c02bf324..f95560e1ab4 100644
--- a/security/zoneminder/Makefile
+++ b/security/zoneminder/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2017/03/12 07:20:51 maya Exp $
+# $NetBSD: Makefile,v 1.33 2017/04/20 09:59:39 dsainty Exp $
PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/}
DISTNAME= ZoneMinder-1.28.1
@@ -100,6 +100,12 @@ CONFIGURE_ENV+= ZM_SSL_LIB=openssl
CONFIGURE_ENV+= ZM_RUNDIR=${VARBASE}/run/zm
CONFIGURE_ENV+= ZM_SOCKDIR=${VARBASE}/run/zm
+#
+# Darwin does have sendfile(), but the API differs from ZoneMinder's
+# expectation.
+#
+CONFIGURE_ARGS.Darwin+= ac_cv_func_sendfile=no ac_cv_header_sys_sendfile_h=no
+
.if !empty(PKG_OPTIONS:Mapache)
.include "../../mk/apache.mk"