wok-current view motion/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 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 }