# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr require github [ user=Motion-Project tag=release-${PV} ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] export_exlib_phases src_prepare src_install SUMMARY="A software motion detector" HOMEPAGE="https://motion-project.github.io/" LICENCES="GPL-2" SLOT="0" MYOPTIONS=" ffmpeg mysql postgres sqlite v4l webp ffmpeg? ( ( providers: ffmpeg libav ) [[ number-selected = exactly-one ]] ) ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]] " DEPENDENCIES=" build+run: user/motion mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql ) sqlite? ( dev-db/sqlite:3 ) v4l? ( media-libs/v4l-utils sys-kernel/linux-headers ) webp? ( media-libs/libwebp:= ) ffmpeg? ( providers:ffmpeg? ( media/ffmpeg ) providers:libav? ( media/libav ) ) providers:ijg-jpeg? ( media-libs/jpeg:= ) providers:jpeg-turbo? ( media-libs/libjpeg-turbo ) " DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( ffmpeg mysql 'postgres pgsql' 'sqlite sqlite3' 'v4l v4l2' webp ) DEFAULT_SRC_CONFIGURE_PARAMS=( --hates=disable-silent-rules --hates=disable-dependency-tracking --hates=enable-fast-install --without-mmal --without-optimizecpu --without-bktr ) motion_src_prepare() { edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i configure.ac #autotools_src_prepare edo autoreconf -if } motion_src_install() { default insinto /etc/motion # doins motion-dist.conf }