moved to macports, also added polkit

This commit is contained in:
pliablepixels 2016-05-16 16:49:46 -04:00
parent 823c733ce9
commit 130b57e9e1
2 changed files with 13 additions and 12 deletions

View File

@ -659,13 +659,13 @@ message(STATUS "Using web user: ${ZM_WEB_USER}")
message(STATUS "Using web group: ${ZM_WEB_GROUP}") message(STATUS "Using web group: ${ZM_WEB_GROUP}")
# Check for polkit # Check for polkit
if (NOT APPLE) #if (NOT APPLE)
find_package(Polkit) find_package(Polkit)
if(NOT POLKIT_FOUND) if(NOT POLKIT_FOUND)
message(FATAL_ERROR message(FATAL_ERROR
"Running ZoneMinder requires polkit. Building ZoneMinder requires the polkit development package.") "Running ZoneMinder requires polkit. Building ZoneMinder requires the polkit development package.")
endif(NOT POLKIT_FOUND) endif(NOT POLKIT_FOUND)
endif (NOT APPLE) #endif (NOT APPLE)
# Some variables that zm expects # Some variables that zm expects
set(ZM_PID "${ZM_RUNDIR}/zm.pid") set(ZM_PID "${ZM_RUNDIR}/zm.pid")

View File

@ -9,21 +9,23 @@ This may help folks who are interested in an OSX port.
#### Toolchain #### Toolchain
requirement - brew
brew install cmake requirement - macports (brew doesn't have polkit)
brew install libjpeg sudo port install cmake
brew install mysql
brew install ssl
sudo perl -MCPAN -e 'install DBI' sudo perl -MCPAN -e 'install DBI'
sudo perl -MCPAN -e 'install DBD::mysql' sudo perl -MCPAN -e 'install DBD::mysql'
sudo perl -MCPAN -e 'install Sys::Mmap' sudo perl -MCPAN -e 'install Sys::Mmap'
brew install pkg-config
brew install glib
brew install pcre++
xcode-select --install 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 #### Environment used to build
Xcode Version 7.3.1 (7D1014) Xcode Version 7.3.1 (7D1014)
@ -37,7 +39,6 @@ InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault
#### Build process #### Build process
git submodule update --init --recursive git submodule update --init --recursive
cmake -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2a-1/include cmake .
#### Things to resolve #### Things to resolve
Polkit is commented in CMakeLists.txt