Advertisement
barjac

zmbuild

Aug 27th, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #!/bin/bash
  2. # zmbuild
  3. version="ZoneMinder-1.24.4"
  4.  
  5. # Run from home
  6. cd
  7.  
  8. # Remove old tree
  9. rm -rf $version
  10.  
  11. # Extract from d/l dir
  12. tar -xf Download/"$version"".tar.gz"
  13.  
  14. # Move into working dir
  15. cd "$version"
  16.  
  17. # Apply perf patch first
  18. patch -p1 -i ../zm_patch/zm_1_24_4-perfpatch_v1m.patch
  19.  
  20. # Apply SWS_CPU_CAPS_SSE2 patch
  21. cd src
  22. patch -p0 -i ../../zm_patch/zm_image.h_patch
  23. cd ..
  24.  
  25. autoreconf
  26.  
  27. ./configure \
  28. --prefix=/usr \
  29. --mandir=/usr/share/man \
  30. --infodir=/usr/share/info \
  31. --datadir=/usr/share \
  32. --sysconfdir=/etc \
  33. --localstatedir=/var/lib \
  34. --with-libarch=lib \
  35. --enable-mmap=no \
  36. --with-mysql=/usr \
  37. --with-ffmpeg=/usr \
  38. --with-webdir=/var/www/zoneminder/htdocs \
  39. --with-cgidir=/var/www/zoneminder/cgi-bin \
  40. --with-webuser=apache \
  41. --with-webgroup=apache \
  42. --enable-debug=yes \
  43. --enable-crashtrace=yes \
  44. CPPFLAGS="-D__STDC_CONSTANT_MACROS -msse2"
  45.  
  46. make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement