wok-current annotate motion/receipt @ rev 25520
created recipes for libluv and libluv-dev 1.44.2.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:44:32 2023 +0100 (23 months ago) |
parents | 7c04901ef470 |
children |
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@25432 | 14 DEPENDS="ffmpeg jpeg libatomic 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 |
Hans-G?nter@25432 | 18 CONFIG_FILES="/etc/motion/motion.conf" |
Hans-G?nter@25432 | 19 |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@24055 | 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 23 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
pascal@11224 | 26 # Rules to configure and make the package. |
pascal@11224 | 27 compile_rules() |
pascal@11224 | 28 { |
Hans-G?nter@24919 | 29 # sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \ |
Hans-G?nter@24919 | 30 # src/*.c \ |
Hans-G?nter@24919 | 31 # src/*.h |
Hans-G?nter@21471 | 32 |
Hans-G?nter@23188 | 33 autoreconf -fiv && |
Hans-G?nter@24919 | 34 ./configure \ |
Hans-G?nter@24919 | 35 CFLAGS="$CFLAGS -lvpx" \ |
Hans-G?nter@24919 | 36 LDFLAGS="$LDFLAGS -latomic" \ |
Hans-G?nter@25432 | 37 --sysconfdir=/etc && |
Hans-G?nter@21471 | 38 make && |
Hans-G?nter@21471 | 39 make install |
pascal@11224 | 40 } |
pascal@11224 | 41 |
pascal@11224 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11224 | 43 genpkg_rules() |
pascal@11224 | 44 { |
Hans-G?nter@21471 | 45 mkdir -p $fs/etc/motion |
Hans-G?nter@21471 | 46 mkdir -p $fs/usr |
Hans-G?nter@21471 | 47 |
Hans-G?nter@25432 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25432 | 49 cp -a $stuff/motion-$VERSION.conf $fs/etc/motion/motion.conf |
Hans-G?nter@25432 | 50 cp -a $stuff/init.d $fs/etc |
pascal@11224 | 51 } |