wok-next annotate motion/receipt @ rev 14944

Up: edbus-dev (1.7.8)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:15:49 2013 +0200 (2013-08-08)
parents 1311ba9fe4bf
children 408c87fa22ca
rev   line source
pascal@11224 1 # SliTaz package receipt.
pascal@11224 2
pascal@11224 3 PACKAGE="motion"
pascal@11224 4 VERSION="3.2.12"
pascal@11224 5 CATEGORY="multimedia"
pascal@11224 6 SHORT_DESC="Motion is a program that monitors the video signal from cameras."
pascal@11224 7 MAINTAINER="pankso@slitaz.org"
pascal@11224 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11224 9 WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion"
pascal@11224 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@11224 11
pankso@13652 12 DEPENDS="libpthread-stubs jpeg libv4l"
pankso@13652 13 BUILD_DEPENDS="libpthread-stubs jpeg-dev libv4l-dev"
pankso@13652 14 #ffmpeg --> breaks build
pankso@13652 15
pascal@11224 16 # Rules to configure and make the package.
pascal@11224 17 compile_rules()
pascal@11224 18 {
pascal@11224 19 cd $src
pankso@13652 20 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h
pascal@11224 21 ./configure \
pascal@11224 22 --sysconfdir=/etc/motion &&
pascal@11224 23 make && make install
pascal@11224 24 }
pascal@11224 25
pascal@11224 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11224 27 genpkg_rules()
pascal@11224 28 {
pankso@13652 29 mkdir -p $fs/etc/motion $fs/usr
pankso@13652 30 cp -a $install/usr/bin $fs/usr
pankso@13652 31 cp -a $stuff/motion.conf $fs/etc/motion
pankso@13652 32 cp -a $stuff/init.d $fs/etc
pascal@11224 33 chmod 0644 $fs/etc/motion/*
pascal@11224 34 }