wok view motion/receipt @ rev 25732

Up liblzma (5.6.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 21 17:39:11 2024 +0000 (3 months ago)
parents 7c04901ef470
children
line source
1 # SliTaz package receipt.
3 PACKAGE="motion"
4 VERSION="4.4.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Monitors the video signal from cameras."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://motion-project.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Motion-Project/$PACKAGE/archive/release-$VERSION.tar.gz"
14 DEPENDS="ffmpeg jpeg libatomic libmicrohttpd libpthread-stubs libv4l"
15 BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libatomic libmicrohttpd-dev
16 libpthread-stubs libtool libv4l-dev"
18 CONFIG_FILES="/etc/motion/motion.conf"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \
30 # src/*.c \
31 # src/*.h
33 autoreconf -fiv &&
34 ./configure \
35 CFLAGS="$CFLAGS -lvpx" \
36 LDFLAGS="$LDFLAGS -latomic" \
37 --sysconfdir=/etc &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/etc/motion
46 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $stuff/motion-$VERSION.conf $fs/etc/motion/motion.conf
50 cp -a $stuff/init.d $fs/etc
51 }