2021-04-16 20:20:47 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-05-09 22:28:54 +03:00
|
|
|
EAPI=6
|
2011-11-09 11:33:19 +04:00
|
|
|
|
2021-04-16 20:20:47 +03:00
|
|
|
inherit autotools flag-o-matic git-r3 ltprune
|
2011-11-09 11:33:19 +04:00
|
|
|
|
2013-10-15 00:13:04 +04:00
|
|
|
DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access"
|
2014-04-10 13:12:12 +04:00
|
|
|
HOMEPAGE="https://github.com/FFMS/ffms2"
|
2017-07-31 18:46:29 +03:00
|
|
|
EGIT_REPO_URI="https://github.com/FFMS/ffms2.git"
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
2016-01-10 20:00:33 +03:00
|
|
|
SLOT="0/4"
|
2011-11-09 11:33:19 +04:00
|
|
|
KEYWORDS=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
sys-libs/zlib
|
2020-04-26 11:21:43 +03:00
|
|
|
>=media-video/ffmpeg-2.4:0=
|
2011-11-09 11:33:19 +04:00
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-07 00:14:41 +04:00
|
|
|
virtual/pkgconfig
|
2011-11-09 11:33:19 +04:00
|
|
|
"
|
2016-01-10 20:00:33 +03:00
|
|
|
|
2016-10-21 23:19:55 +03:00
|
|
|
ffms_check_compiler() {
|
2016-01-10 20:00:33 +03:00
|
|
|
if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
|
|
|
|
die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3."
|
|
|
|
fi
|
|
|
|
}
|
2016-05-09 22:28:54 +03:00
|
|
|
|
2016-10-21 23:19:55 +03:00
|
|
|
pkg_pretend() {
|
|
|
|
ffms_check_compiler
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
ffms_check_compiler
|
|
|
|
}
|
|
|
|
|
2016-05-09 22:28:54 +03:00
|
|
|
src_prepare() {
|
2017-12-22 15:04:53 +03:00
|
|
|
mkdir -p "${S}/src/config"
|
2016-05-09 22:28:54 +03:00
|
|
|
default_src_prepare
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default_src_install
|
2016-10-21 23:19:55 +03:00
|
|
|
prune_libtool_files
|
2016-05-09 22:28:54 +03:00
|
|
|
}
|