summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2017-04-20 09:59:39 +0000
committerdsainty <dsainty@pkgsrc.org>2017-04-20 09:59:39 +0000
commitb099a77161577e32d597e5b0a3d509f5988d2278 (patch)
tree2d022d1abfc0e066f763b77f4b55d0fa308b5f5b /security
parentc19b74fbb0c5a5a84b89cbf6a500760561dea3e0 (diff)
downloadpkgsrc-b099a77161577e32d597e5b0a3d509f5988d2278.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"