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