wok-6.x view motion/receipt @ rev 15314

pari: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 16:38:06 2013 +0000 (2013-09-27)
parents 3c13a1e665f2
children dca10c877d95
line source
1 # SliTaz package receipt.
3 PACKAGE="motion"
4 VERSION="3.2.12"
5 CATEGORY="multimedia"
6 SHORT_DESC="Motion is a program that monitors the video signal from cameras."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="libpthread-stubs jpeg libv4l"
14 BUILD_DEPENDS="libpthread-stubs jpeg-dev libv4l-dev"
15 #ffmpeg --> breaks build
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h
22 ./configure \
23 --sysconfdir=/etc/motion &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/etc/motion $fs/usr
31 cp -a $install/usr/bin $fs/usr
32 cp -a $stuff/motion.conf $fs/etc/motion
33 cp -a $stuff/init.d $fs/etc
34 chmod 0644 $fs/etc/motion/*
35 }