wok annotate zoneminder/receipt @ rev 21586

updated nspr and nspr-dev (4.10.8 -> 4.21)
author Hans-G?nter Theisgen
date Mon May 20 13:58:55 2019 +0100 (2019-05-20)
parents 165f2965ff38
children 8c1913fa8aeb
rev   line source
pascal@13247 1 # SliTaz package receipt.
pascal@13247 2
pascal@13247 3 PACKAGE="zoneminder"
pascal@13247 4 VERSION="1.25.0"
pascal@13247 5 SOURCE="ZoneMinder"
pascal@13247 6 CATEGORY="misc"
pascal@13247 7 SHORT_DESC="Linux video camera security and surveillance solution."
pascal@13247 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
pascal@13247 10 WEB_SITE="http://www.zoneminder.com/"
pascal@13247 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@13247 12 WGET_URL="http://www2.zoneminder.com/downloads/$TARBALL"
pascal@13247 13
pascal@16612 14 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd \
pascal@13247 15 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \
pascal@13247 16 perl-archive-zip"
pascal@20601 17 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev gnutls-dev libav-dev libgnutls \
pascal@13247 18 linux-api-headers $DEPENDS"
pascal@13247 19
pascal@13247 20 # Rules to configure and make the package.
pascal@13247 21 compile_rules()
pascal@13247 22 {
pascal@21129 23 sed -i 's|\(jpeg_set_quality.*\)false|\1boolean(false)|' src/zm_image.cpp
pascal@13247 24 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
pascal@13247 25 src/zm_local_camera.cpp
pascal@20284 26 CXXFLAGS="-D__STDC_CONSTANT_MACROS -fpermissive" \
pascal@13247 27 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@13247 28 --mandir=/usr/share/man \
pascal@13247 29 --sysconfdir=/etc \
pascal@13247 30 --with-libarch=lib \
pascal@13247 31 --with-mysql=/usr --with-ffmpeg=/usr \
pascal@13247 32 --with-webuser=www --with-webgroup=www \
pascal@13247 33 --with-webdir=/usr/share/zoneminder/www \
pascal@13247 34 --with-cgidir=/usr/share/zoneminder/cgi-bin \
pascal@13247 35 --enable-mmap=no \
pascal@13247 36 $CONFIGURE_ARGS &&
pascal@13247 37 make &&
pascal@13247 38 make -j 1 DESTDIR=$DESTDIR install
pascal@13247 39 }
pascal@13247 40
pascal@13247 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13247 42 genpkg_rules()
pascal@13247 43 {
pascal@15000 44 cp -a $install/* $stuff/* $fs
pascal@13247 45 cp $src/db/zm_create.sql $fs/usr/share/zoneminder
pascal@13247 46 chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \
pascal@13247 47 $fs/usr/lib/perl* $fs/etc/*.d/zoneminder
pascal@13247 48 }