You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit autotools eutils flag-o-matic vcs-snapshot
|
|
|
|
|
|
|
|
DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access"
|
|
|
|
HOMEPAGE="https://github.com/FFMS/ffms2"
|
|
|
|
SRC_URI="https://github.com/FFMS/ffms2/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0/4"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
IUSE="libav"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
sys-libs/zlib
|
|
|
|
!libav? ( >=media-video/ffmpeg-2.4:0= )
|
|
|
|
libav? ( >=media-video/libav-9:0= )
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
|
|
|
|
|
|
|
ffms_check_compiler() {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_pretend() {
|
|
|
|
ffms_check_compiler
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
ffms_check_compiler
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default_src_prepare
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default_src_install
|
|
|
|
prune_libtool_files
|
|
|
|
}
|