diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2016-01-09 22:40:23 +0300 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-01-10 09:58:52 +0800 |
commit | 7e82ccff9a4699660a250848df2a66c49001c1f8 (patch) | |
tree | 3779db3ba38d83f07b11cd8f662b2026202ab193 /media-libs/ffmpegsource/ffmpegsource-9999.ebuild | |
parent | media-libs/ffmpegsource: sort dependencies alphabetically (diff) | |
download | gentoo-7e82ccff9a4699660a250848df2a66c49001c1f8.tar.gz gentoo-7e82ccff9a4699660a250848df2a66c49001c1f8.tar.bz2 gentoo-7e82ccff9a4699660a250848df2a66c49001c1f8.zip |
media-libs/ffmpegsource: add compiler check for C++11 support
Package-Manager: portage-2.2.26
Diffstat (limited to 'media-libs/ffmpegsource/ffmpegsource-9999.ebuild')
-rw-r--r-- | media-libs/ffmpegsource/ffmpegsource-9999.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild index 56009a4e259c..f057f8af1935 100644 --- a/media-libs/ffmpegsource/ffmpegsource-9999.ebuild +++ b/media-libs/ffmpegsource/ffmpegsource-9999.ebuild @@ -6,7 +6,7 @@ EAPI=5 AUTOTOOLS_AUTORECONF=1 -inherit autotools-utils git-r3 +inherit autotools-utils flag-o-matic git-r3 DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access" HOMEPAGE="https://github.com/FFMS/ffms2" @@ -25,3 +25,9 @@ RDEPEND=" DEPEND="${RDEPEND} virtual/pkgconfig " + +pkg_pretend() { + 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 +} |