wok-next view zoneminder/receipt @ rev 20737
libav: fix build; python-antlr: using pip; python-apsw: up (3.19.3-r1)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 20:37:22 2018 +0300 (2018-05-29) |
parents | ded7bc956f55 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="zoneminder"
4 VERSION="1.25.0"
5 CATEGORY="misc"
6 SHORT_DESC="Linux video camera security and surveillance solution"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.zoneminder.com/"
11 TARBALL="ZoneMinder-$VERSION.tar.gz"
12 WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
14 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev gnutls-dev libav-dev \
15 linux-api-headers $DEPENDS"
17 compile_rules() {
18 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
19 src/zm_local_camera.cpp
20 CXXFLAGS=-D__STDC_CONSTANT_MACROS \
21 ./configure \
22 --with-libarch=lib \
23 --with-mysql=/usr \
24 --with-ffmpeg=/usr \
25 --with-webuser=www \
26 --with-webgroup=www \
27 --with-webdir=/usr/share/zoneminder/www \
28 --with-cgidir=/usr/share/zoneminder/cgi-bin \
29 --enable-mmap=no \
30 $CONFIGURE_ARGS &&
31 make &&
32 make -j 1 DESTDIR=$DESTDIR install || return 1
34 install -Dm644 $stuff/etc/logrotate.d/zoneminder $install/etc/logrotate.d/zoneminder
35 install -Dm644 $stuff/etc/mysql.d/zoneminder $install/etc/mysql.d/zoneminder
36 install -Dm644 $src/db/zm_create.sql $install/usr/share/zoneminder/zm_create.sql
37 }
39 genpkg_rules() {
40 copy @std
41 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd \
42 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip \
43 perl-libwww-perl perl-archive-zip"
44 }