wok annotate motion/receipt @ rev 25095
Up libkeybinder (0.3.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 18 13:48:16 2022 +0000 (2022-06-18) |
parents | 5ea0ce1cecc0 |
children | 67fca9298007 |
rev | line source |
---|---|
pascal@11224 | 1 # SliTaz package receipt. |
pascal@11224 | 2 |
pascal@11224 | 3 PACKAGE="motion" |
Hans-G?nter@24919 | 4 VERSION="4.4.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@24919 | 15 BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libatomic libmicrohttpd-dev |
Hans-G?nter@24919 | 16 libpthread-stubs libtool libv4l-dev" |
pankso@13652 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@11224 | 24 # Rules to configure and make the package. |
pascal@11224 | 25 compile_rules() |
pascal@11224 | 26 { |
Hans-G?nter@24919 | 27 # sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \ |
Hans-G?nter@24919 | 28 # src/*.c \ |
Hans-G?nter@24919 | 29 # src/*.h |
Hans-G?nter@21471 | 30 |
Hans-G?nter@23188 | 31 autoreconf -fiv && |
Hans-G?nter@24919 | 32 ./configure \ |
Hans-G?nter@24919 | 33 CFLAGS="$CFLAGS -lvpx" \ |
Hans-G?nter@24919 | 34 LDFLAGS="$LDFLAGS -latomic" \ |
Hans-G?nter@24919 | 35 --disable-nls \ |
pascal@11224 | 36 --sysconfdir=/etc/motion && |
Hans-G?nter@21471 | 37 make && |
Hans-G?nter@21471 | 38 make install |
pascal@11224 | 39 } |
pascal@11224 | 40 |
pascal@11224 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11224 | 42 genpkg_rules() |
pascal@11224 | 43 { |
Hans-G?nter@21471 | 44 mkdir -p $fs/etc/motion |
Hans-G?nter@21471 | 45 mkdir -p $fs/usr |
Hans-G?nter@21471 | 46 |
Hans-G?nter@21471 | 47 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21471 | 48 cp -a $stuff/motion.conf $fs/etc/motion |
Hans-G?nter@21471 | 49 cp -a $stuff/init.d $fs/etc |
Hans-G?nter@21471 | 50 |
Hans-G?nter@23188 | 51 chmod 0644 $fs/etc/motion/* |
pascal@11224 | 52 } |