wok view zoneminder/receipt @ rev 25757

xfce4-mixer: modified CFLAGS
author Hans-G?nter Theisgen
date Sun Sep 01 14:44:29 2024 +0100 (2 months ago)
parents 922f061231c2
children a0294319a84f
line source
1 # SliTaz package receipt.
3 PACKAGE="zoneminder"
4 VERSION="1.25.0"
5 SOURCE="ZoneMinder"
6 CATEGORY="misc"
7 SHORT_DESC="Linux video camera security and surveillance solution."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.zoneminder.com/"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/ZoneMinder/zoneminder/archive/refs/tags/v${VERSION%.*}.tar.gz"
14 DEPENDS="mysql jpeg bzlib zlib ffmpeg x264 perl perl-dbi-dbd libssl \
15 perl-dbd-mysql perl-time-hires perl-getopt-long perl-date-manip perl-libwww \
16 perl-archive-zip"
17 BUILD_DEPENDS="mysql-dev jpeg-dev ffmpeg-dev openssl-dev libav-dev \
18 linux-api-headers $DEPENDS"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/ZoneMinder/zoneminder/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export ZM_SSL_LIB=openssl
31 sed -i 's|\(jpeg_set_quality.*\)false|\1boolean(false)|' src/zm_image.cpp
32 sed -i 's/.*fcntl.h.*/#include <limits.h>\n&/' src/zm_event.cpp \
33 src/zm_local_camera.cpp
34 CXXFLAGS="-D__STDC_CONSTANT_MACROS -fpermissive" \
35 ./configure --prefix=/usr --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --sysconfdir=/etc \
38 --with-libarch=lib \
39 --with-mysql=/usr --with-ffmpeg=/usr \
40 --with-webuser=www --with-webgroup=www \
41 --with-webdir=/usr/share/zoneminder/www \
42 --with-cgidir=/usr/share/zoneminder/cgi-bin \
43 --enable-mmap=no \
44 $CONFIGURE_ARGS &&
45 make &&
46 make -j 1 DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cp -a $install/* $stuff/* $fs
53 cp $src/db/zm_create.sql $fs/usr/share/zoneminder
54 chown -R root.root $fs/usr/share/zoneminder/zm_create.sql \
55 $fs/usr/lib/perl* $fs/etc/*.d/zoneminder
56 }