Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # zmbuild
- version="ZoneMinder-1.24.4"
- # Run from home
- cd
- # Remove old tree
- rm -rf $version
- # Extract from d/l dir
- tar -xf Download/"$version"".tar.gz"
- # Move into working dir
- cd "$version"
- # Apply perf patch first
- patch -p1 -i ../zm_patch/zm_1_24_4-perfpatch_v1m.patch
- # Apply SWS_CPU_CAPS_SSE2 patch
- cd src
- patch -p0 -i ../../zm_patch/zm_image.h_patch
- cd ..
- autoreconf
- ./configure \
- --prefix=/usr \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --datadir=/usr/share \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- --with-libarch=lib \
- --enable-mmap=no \
- --with-mysql=/usr \
- --with-ffmpeg=/usr \
- --with-webdir=/var/www/zoneminder/htdocs \
- --with-cgidir=/var/www/zoneminder/cgi-bin \
- --with-webuser=apache \
- --with-webgroup=apache \
- --enable-debug=yes \
- --enable-crashtrace=yes \
- CPPFLAGS="-D__STDC_CONSTANT_MACROS -msse2"
- make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement