diff --git a/CMakeLists.txt b/CMakeLists.txt index e9e91bacb..367de8c02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -659,13 +659,13 @@ message(STATUS "Using web user: ${ZM_WEB_USER}") message(STATUS "Using web group: ${ZM_WEB_GROUP}") # Check for polkit -if (NOT APPLE) +#if (NOT APPLE) find_package(Polkit) if(NOT POLKIT_FOUND) message(FATAL_ERROR "Running ZoneMinder requires polkit. Building ZoneMinder requires the polkit development package.") endif(NOT POLKIT_FOUND) -endif (NOT APPLE) +#endif (NOT APPLE) # Some variables that zm expects set(ZM_PID "${ZM_RUNDIR}/zm.pid") diff --git a/README.md b/README.md index 8af5c11f6..a915c22a4 100644 --- a/README.md +++ b/README.md @@ -9,21 +9,23 @@ This may help folks who are interested in an OSX port. #### Toolchain -requirement - brew -brew install cmake -brew install libjpeg -brew install mysql -brew install ssl +requirement - macports (brew doesn't have polkit) +sudo port install cmake sudo perl -MCPAN -e 'install DBI' sudo perl -MCPAN -e 'install DBD::mysql' sudo perl -MCPAN -e 'install Sys::Mmap' -brew install pkg-config -brew install glib -brew install pcre++ + xcode-select --install +sudo perl -MCPAN -e 'install DBI' +sudo perl -MCPAN -e 'install DBD::mysql' +sudo perl -MCPAN -e 'install Sys::Mmap' +sudo perl -MCPAN -e 'install Date::Manip' +sudo perl -MCPAN -e 'install LWP::UserAgent' + + #### Environment used to build Xcode Version 7.3.1 (7D1014) @@ -37,7 +39,6 @@ InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault #### Build process git submodule update --init --recursive -cmake -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2a-1/include +cmake . #### Things to resolve -Polkit is commented in CMakeLists.txt