wok-next view motion/receipt @ rev 16035

ARM: some more Xorg packages needed to build xorg-server-light
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 09 03:09:11 2014 +0100 (2014-03-09)
parents 3c13a1e665f2
children 757d032c55c7
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 }