wok-current annotate motion/receipt @ rev 23798
linld: fix argstr (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 23 18:16:52 2020 +0000 (2020-05-23) |
parents | dca10c877d95 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@11224 | 1 # SliTaz package receipt. |
pascal@11224 | 2 |
pascal@11224 | 3 PACKAGE="motion" |
Hans-G?nter@23188 | 4 VERSION="4.3.0" |
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 { |
Hans-G?nter@23188 | 21 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \ |
Hans-G?nter@23188 | 22 src/*.c \ |
Hans-G?nter@23188 | 23 src/*.h |
Hans-G?nter@21471 | 24 |
Hans-G?nter@23188 | 25 autoreconf -fiv && |
Hans-G?nter@23188 | 26 ./configure \ |
pascal@11224 | 27 --sysconfdir=/etc/motion && |
Hans-G?nter@21471 | 28 make && |
Hans-G?nter@21471 | 29 make install |
pascal@11224 | 30 } |
pascal@11224 | 31 |
pascal@11224 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11224 | 33 genpkg_rules() |
pascal@11224 | 34 { |
Hans-G?nter@21471 | 35 mkdir -p $fs/etc/motion |
Hans-G?nter@21471 | 36 mkdir -p $fs/usr |
Hans-G?nter@21471 | 37 |
Hans-G?nter@21471 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21471 | 39 cp -a $stuff/motion.conf $fs/etc/motion |
Hans-G?nter@21471 | 40 cp -a $stuff/init.d $fs/etc |
Hans-G?nter@21471 | 41 |
Hans-G?nter@23188 | 42 chmod 0644 $fs/etc/motion/* |
pascal@11224 | 43 } |