Created attachment 171123 [details] patch Systems lack video4linux2, but with video4linux1 fail to build ZM due to v4l2 specific macro. FreeBSD build factory is upset too: http://portsmon.freebsd.org/portoverview.py?category=multimedia&portname=zoneminder No revision bump required.
Ivan, thanks for the patch. Can you confirm this passes build tests? It would also be very helpful if you could submit a patch against the svn tree (resulting in a patch to add a patch) as that will make it easier to test and apply this fix. Cleaning up summary in favor of patch flagged maintainer-approval. Also removing maintainer-feedback+ for correctness as it was never requested. ;)
Created attachment 171127 [details] patch2 I hope this one is proper. Shouldn't break anything more. :] and it fixes build on affected test system.
Created attachment 171128 [details] patch3
A commit references this bug: Author: pi Date: Thu Jun 9 00:14:07 UTC 2016 New revision: 416573 URL: https://svnweb.freebsd.org/changeset/ports/416573 Log: multimedia/zoneminder: Unbreak build for systems with v4l1 Systems lacking video4linux2, but with video4linux1 fail to build ZM due to v4l2 specific macro. PR: 210088 Submitted by: Ivan <bsd@abinet.ru> (maintainer) Changes: head/multimedia/zoneminder/files/patch-src_zm__local__camera.h
Committed,thanks!