SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "motion"

# SliTaz package receipt.

PACKAGE="motion"
VERSION="4.4.0"
CATEGORY="multimedia"
SHORT_DESC="Monitors the video signal from cameras."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://motion-project.github.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/Motion-Project/$PACKAGE/archive/release-$VERSION.tar.gz"

DEPENDS="ffmpeg jpeg libatomic libmicrohttpd libpthread-stubs libv4l"
BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libatomic libmicrohttpd-dev
    libpthread-stubs libtool libv4l-dev"

CONFIG_FILES="/etc/motion/motion.conf"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \
#        src/*.c \
#        src/*.h

    autoreconf -fiv &&
    ./configure                \
        CFLAGS="$CFLAGS -lvpx"        \
        LDFLAGS="$LDFLAGS -latomic"    \
        --sysconfdir=/etc &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/motion
    mkdir -p $fs/usr

    cp -a $install/usr/bin            $fs/usr
    cp -a $stuff/motion-$VERSION.conf    $fs/etc/motion/motion.conf
    cp -a $stuff/init.d            $fs/etc
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)