wok-next view motion/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents 408c87fa22ca
children 10df65db91ad
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libpthread-stubs jpeg-dev libv4l-dev"
15 #ffmpeg --> breaks build
17 compile_rules() {
18 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h
19 ./configure \
20 --sysconfdir=/etc/motion &&
21 make &&
22 make install || return 1
24 install -Dm644 $stuff/motion.conf $install/etc/motion/motion.conf
25 install -Dm755 $stuff/init.d/motion $install/etc/init.d/motion
26 }
28 genpkg_rules() {
29 copy @std
30 DEPENDS="libpthread-stubs jpeg libv4l"
31 }