1 |
commit: 16094f381e62c5086d77a2de8e3325da580e454b |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 15 11:46:49 2019 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 15 12:35:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16094f38 |
7 |
|
8 |
media-video/x264-encoder: bump a new snapshot |
9 |
|
10 |
Bug: https://bugs.gentoo.org/676596 |
11 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
12 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
13 |
|
14 |
media-video/x264-encoder/Manifest | 1 + |
15 |
.../x264-encoder/x264-encoder-0.0.20190214.ebuild | 74 ++++++++++++++++++++++ |
16 |
2 files changed, 75 insertions(+) |
17 |
|
18 |
diff --git a/media-video/x264-encoder/Manifest b/media-video/x264-encoder/Manifest |
19 |
index 0a6d8558016..ab3b20f2392 100644 |
20 |
--- a/media-video/x264-encoder/Manifest |
21 |
+++ b/media-video/x264-encoder/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST x264-snapshot-20170701-2245.tar.bz2 750527 BLAKE2B ccf276da31383ab4b4a1ac48866bc49b4b2bc5913361c933fa2359de4d6e90cca091dd4aba781f3735a5b28d6ce006aa9d4e149ba48745b80cb971c2952ca867 SHA512 28fc9850c36ac385fced6dec9a0f68a5605a68805e1ef7b8cedcd78917eaa1ad6e47e57fe5a74fee0a6e482f3a33de6011f675e6c77b5db94c8fe01d5c5f3e9f |
24 |
+DIST x264-snapshot-20190214-2245.tar.bz2 770462 BLAKE2B d90a3bafb88febe12526b225617616a62c32fa3d3eacf410267e1fbd7e0fafaadca7c146172c08fc525bce8791d81c7d87dc27b06d61a6a44bf2ad92f6c1def6 SHA512 c8b1b46d4e6c0ef653dab35083a454c635ebf72c6a5255ce30bbb5d9d6bb8e23fca0e6cc197ea99f3c702fbfec096587df6fa82dec338d8bd45e35fa89c43039 |
25 |
|
26 |
diff --git a/media-video/x264-encoder/x264-encoder-0.0.20190214.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20190214.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ae007c71112 |
29 |
--- /dev/null |
30 |
+++ b/media-video/x264-encoder/x264-encoder-0.0.20190214.ebuild |
31 |
@@ -0,0 +1,74 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="A free commandline encoder for X264/AVC streams" |
40 |
+HOMEPAGE="https://www.videolan.org/developers/x264.html" |
41 |
+if [[ ${PV} == 9999 ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://git.videolan.org/git/x264.git" |
44 |
+ SRC_URI="" |
45 |
+else |
46 |
+ MY_P="x264-snapshot-$(ver_cut 3)-2245" |
47 |
+ SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" |
48 |
+ KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
49 |
+ S="${WORKDIR}/${MY_P}" |
50 |
+fi |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="avs custom-cflags ffmpeg ffmpegsource +interlaced libav mp4 +threads" |
55 |
+ |
56 |
+REQUIRED_USE="ffmpegsource? ( ffmpeg )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ ~media-libs/x264-${PV}[interlaced=,threads=] |
60 |
+ ffmpeg? ( |
61 |
+ !libav? ( media-video/ffmpeg:= ) |
62 |
+ libav? ( media-video/libav:= ) |
63 |
+ ) |
64 |
+ ffmpegsource? ( media-libs/ffmpegsource ) |
65 |
+ mp4? ( >=media-video/gpac-0.5.2:= )" |
66 |
+ |
67 |
+ASM_DEP=">=dev-lang/nasm-2.13" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ amd64? ( ${ASM_DEP} ) |
70 |
+ x86? ( ${ASM_DEP} ) |
71 |
+ x86-fbsd? ( ${ASM_DEP} )" |
72 |
+BDEPEND="virtual/pkgconfig" |
73 |
+ |
74 |
+PATCHES=( "${FILESDIR}/gpac.patch" ) |
75 |
+ |
76 |
+src_configure() { |
77 |
+ tc-export CC |
78 |
+ |
79 |
+ # let upstream pick the optimization level by default |
80 |
+ use custom-cflags || filter-flags -O? |
81 |
+ |
82 |
+ ./configure \ |
83 |
+ --prefix="${EPREFIX}"/usr \ |
84 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
85 |
+ --system-libx264 \ |
86 |
+ --host="${CHOST}" \ |
87 |
+ --disable-lsmash \ |
88 |
+ $(usex avs "" "--disable-avs") \ |
89 |
+ $(usex ffmpeg "" "--disable-lavf --disable-swscale") \ |
90 |
+ $(usex ffmpegsource "" "--disable-ffms") \ |
91 |
+ $(usex interlaced "" "--disable-interlaced") \ |
92 |
+ $(usex mp4 "" "--disable-gpac") \ |
93 |
+ $(usex threads "" "--disable-thread") || die |
94 |
+ |
95 |
+ # this is a nasty workaround for bug #376925 for x264 that also applies |
96 |
+ # here, needed because as upstream doesn't like us fiddling with their CFLAGS |
97 |
+ if use custom-cflags; then |
98 |
+ local cflags |
99 |
+ cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')" |
100 |
+ cflags="${cflags//$(get-flag O)/}" |
101 |
+ cflags="${cflags//-O? /$(get-flag O) }" |
102 |
+ cflags="${cflags//-g /}" |
103 |
+ sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak |
104 |
+ fi |
105 |
+} |