wok annotate motion/receipt @ rev 21937
Up nnn (2.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 07 18:30:01 2019 +0200 (2019-10-07) |
parents | 408c87fa22ca |
children | ab3bb1a75137 |
rev | line source |
---|---|
pascal@11224 | 1 # SliTaz package receipt. |
pascal@11224 | 2 |
pascal@11224 | 3 PACKAGE="motion" |
Hans-G?nter@21471 | 4 VERSION="4.2.2" |
pascal@11224 | 5 CATEGORY="multimedia" |
Hans-G?nter@21471 | 6 SHORT_DESC="Monitors the video signal from cameras." |
pascal@11224 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
Hans-G?nter@21471 | 9 WEB_SITE="https://motion-project.github.io/" |
Hans-G?nter@21471 | 10 |
pascal@11224 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21471 | 12 WGET_URL="https://github.com/Motion-Project/$PACKAGE/archive/release-$VERSION.tar.gz" |
pascal@11224 | 13 |
Hans-G?nter@21471 | 14 DEPENDS="ffmpeg jpeg libmicrohttpd libpthread-stubs libv4l" |
Hans-G?nter@21471 | 15 BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libmicrohttpd-dev libpthread-stubs \ |
Hans-G?nter@21471 | 16 libtool libv4l-dev" |
pankso@13652 | 17 |
pascal@11224 | 18 # Rules to configure and make the package. |
pascal@11224 | 19 compile_rules() |
pascal@11224 | 20 { |
pankso@13652 | 21 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h |
Hans-G?nter@21471 | 22 |
Hans-G?nter@21471 | 23 autoreconf -fiv |
pascal@11224 | 24 ./configure \ |
pascal@11224 | 25 --sysconfdir=/etc/motion && |
Hans-G?nter@21471 | 26 make && |
Hans-G?nter@21471 | 27 make install |
pascal@11224 | 28 } |
pascal@11224 | 29 |
pascal@11224 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11224 | 31 genpkg_rules() |
pascal@11224 | 32 { |
Hans-G?nter@21471 | 33 mkdir -p $fs/etc/motion |
Hans-G?nter@21471 | 34 mkdir -p $fs/usr |
Hans-G?nter@21471 | 35 |
Hans-G?nter@21471 | 36 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21471 | 37 cp -a $stuff/motion.conf $fs/etc/motion |
Hans-G?nter@21471 | 38 cp -a $stuff/init.d $fs/etc |
Hans-G?nter@21471 | 39 |
pascal@11224 | 40 chmod 0644 $fs/etc/motion/* |
pascal@11224 | 41 } |