wok-next diff 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 diff
1.1 --- a/motion/receipt Sat Aug 10 17:48:05 2013 +0000 1.2 +++ b/motion/receipt Fri Mar 30 19:31:50 2018 +0300 1.3 @@ -1,35 +1,31 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="motion" 1.8 VERSION="3.2.12" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="Motion is a program that monitors the video signal from cameras." 1.11 +SHORT_DESC="Motion is a program that monitors the video signal from cameras" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion" 1.18 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.19 1.20 -DEPENDS="libpthread-stubs jpeg libv4l" 1.21 BUILD_DEPENDS="libpthread-stubs jpeg-dev libv4l-dev" 1.22 #ffmpeg --> breaks build 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - cd $src 1.28 +compile_rules() { 1.29 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h 1.30 ./configure \ 1.31 --sysconfdir=/etc/motion && 1.32 - make && make install 1.33 + make && 1.34 + make install || return 1 1.35 + 1.36 + install -Dm644 $stuff/motion.conf $install/etc/motion/motion.conf 1.37 + install -Dm755 $stuff/init.d/motion $install/etc/init.d/motion 1.38 } 1.39 1.40 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 -genpkg_rules() 1.42 -{ 1.43 - mkdir -p $fs/etc/motion $fs/usr 1.44 - cp -a $install/usr/bin $fs/usr 1.45 - cp -a $stuff/motion.conf $fs/etc/motion 1.46 - cp -a $stuff/init.d $fs/etc 1.47 - chmod 0644 $fs/etc/motion/* 1.48 +genpkg_rules() { 1.49 + copy @std 1.50 + DEPENDS="libpthread-stubs jpeg libv4l" 1.51 }