Skip to content

Commit

Permalink
Merge pull request #4 from knnniggett/optional_install
Browse files Browse the repository at this point in the history
Make onvif support optional
  • Loading branch information
altaroca committed Nov 1, 2014
2 parents 16703fb + 21f3439 commit e0a43ad
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Expand Up @@ -65,6 +65,7 @@ set(ZM_NO_FFMPEG "OFF" CACHE BOOL "Set to ON to skip ffmpeg checks and force bui
set(ZM_NO_LIBVLC "OFF" CACHE BOOL "Set to ON to skip libvlc checks and force building ZM without libvlc. default: OFF")
set(ZM_NO_CURL "OFF" CACHE BOOL "Set to ON to skip cURL checks and force building ZM without cURL. default: OFF")
set(ZM_NO_X10 "OFF" CACHE BOOL "Set to ON to build ZoneMinder without X10 support. default: OFF")
set(ZM_ONVIF "OFF" CACHE BOOL "Set to ON to enable basic ONVIF support. This is EXPERIMENTAL and may not work with all cameras claiming to be ONVIF compliant. default: OFF")
set(ZM_PERL_SUBPREFIX "${CMAKE_INSTALL_LIBDIR}/perl5" CACHE PATH "Use a different directory for the zm perl modules. NOTE: This is a subprefix, e.g. lib will be turned into <prefix>/lib, default: <libdir>/perl5")
set(ZM_PERL_USE_PATH "${CMAKE_INSTALL_PREFIX}/${ZM_PERL_SUBPREFIX}" CACHE PATH "Override the include path for zm perl modules. Useful if you are moving the perl modules without using the ZM_PERL_SUBPREFIX option. default: <prefix>/<zmperlsubprefix>")
set(ZM_TARGET_DISTRO "" CACHE STRING "Build ZoneMinder for a specific distribution. Currently, valid names are: f19, el6, OS13")
Expand Down Expand Up @@ -509,7 +510,11 @@ add_subdirectory(scripts)
add_subdirectory(db)
add_subdirectory(web)
add_subdirectory(misc)
add_subdirectory(onvif)

# Enable ONVIF support
if (ZM_ONVIF)
add_subdirectory(onvif)
endif (ZM_ONVIF)

# Process distro subdirectories
if(ZM_TARGET_DISTRO STREQUAL "f19")
Expand Down
6 changes: 5 additions & 1 deletion Makefile.am
Expand Up @@ -7,13 +7,17 @@ webgroup = @WEB_GROUP@
sysconf_DATA = \
zm.conf

if COND_ONVIF
MAYBE_ONVIF = onvif
endif

SUBDIRS = \
src \
web \
scripts \
db \
misc \
onvif
$(MAYBE_ONVIF)

EXTRA_DIST = \
zm.conf.in \
Expand Down
13 changes: 13 additions & 0 deletions configure.ac
Expand Up @@ -252,6 +252,19 @@ else
fi
AC_SUBST(ENABLE_MMAP)

ENABLE_ONVIF=no
AC_ARG_ENABLE(onvif,
[ --enable-onvif=<yes|no> enable or disable basic onvif support, default disabled],
[ENABLE_ONVIF=$enable_onvif],
AC_MSG_WARN([You can call configure with the --enable-onvif=<yes|no> or --enable-onvif option.
This tells configure whether to compile ZoneMinder with basic ONVIF support. This feature will
probe for ONVIF compliant cameras on your network and allow you the option to auto-configure them as
monitors in zoneminder. This option is EXPERIMENTAL and may not work with all cameras that claim to
be ONVIF compliant.
e.g. --enable-debug=yes or --disable-debug])
)
AM_CONDITIONAL([COND_ONVIF], [test "$enable_onvif" = yes])

# Compiler
AC_LANG_CPLUSPLUS

Expand Down

0 comments on commit e0a43ad

Please sign in to comment.