1 |
commit: 5fd5a078f753ec5d55a2530246295b592f803876 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 2 09:42:26 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 2 10:04:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fd5a078 |
7 |
|
8 |
media-video/x264-encoder: bump a new snapshot |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
media-video/x264-encoder/Manifest | 1 + |
13 |
.../x264-encoder/x264-encoder-0.0.20170701.ebuild | 74 ++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/media-video/x264-encoder/Manifest b/media-video/x264-encoder/Manifest |
17 |
index a8c41735ff3..5343ed75b11 100644 |
18 |
--- a/media-video/x264-encoder/Manifest |
19 |
+++ b/media-video/x264-encoder/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST x264-snapshot-20160712-2245.tar.bz2 730644 SHA256 d5033882bbc7e2908f74970931c7dc2044191cc9fa7c7435dc85ad334f23078e SHA512 ac97730611e6194701a891a7e73c739696664de2411a7937ab0c36a3ce843f22bf2bd2defe053c2506d95652842b99a905b6f16a2f016a9d73059c2c75b71963 WHIRLPOOL d42459a93e8ff1b69d16f7adecaf3486d102e6fe4ee0d8dd991cdbb7a233bb9975faabc79ff7d2dfd2f67fa1f69a729e617ae868ee127cc0306dfc897db7053b |
22 |
+DIST x264-snapshot-20170701-2245.tar.bz2 750527 SHA256 6ca4863cda3c7c24923ebd2c062c001a05283d50922292ee55dfda7811782380 SHA512 28fc9850c36ac385fced6dec9a0f68a5605a68805e1ef7b8cedcd78917eaa1ad6e47e57fe5a74fee0a6e482f3a33de6011f675e6c77b5db94c8fe01d5c5f3e9f WHIRLPOOL 063c0d3685d961b96101c98110345d1b283dbfe2b2098be51b4cb55f9d0551e80d01d449a2622ebba457a5a8374f5c2783351e2e1f0bfabf150be27dbcc07965 |
23 |
|
24 |
diff --git a/media-video/x264-encoder/x264-encoder-0.0.20170701.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20170701.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..292bca0ee5b |
27 |
--- /dev/null |
28 |
+++ b/media-video/x264-encoder/x264-encoder-0.0.20170701.ebuild |
29 |
@@ -0,0 +1,74 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+ |
35 |
+inherit flag-o-matic multilib toolchain-funcs eutils |
36 |
+ |
37 |
+DESCRIPTION="A free commandline encoder for X264/AVC streams" |
38 |
+HOMEPAGE="http://www.videolan.org/developers/x264.html" |
39 |
+if [[ ${PV} == 9999 ]]; then |
40 |
+ inherit git-2 |
41 |
+ EGIT_REPO_URI="git://git.videolan.org/x264.git" |
42 |
+ SRC_URI="" |
43 |
+else |
44 |
+ inherit versionator |
45 |
+ MY_P="x264-snapshot-$(get_version_component_range 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="10bit avs custom-cflags ffmpeg ffmpegsource +interlaced mp4 +threads" |
54 |
+ |
55 |
+REQUIRED_USE="ffmpegsource? ( ffmpeg )" |
56 |
+ |
57 |
+RDEPEND="ffmpeg? ( virtual/ffmpeg ) |
58 |
+ ~media-libs/x264-${PV}[10bit=,interlaced=,threads=] |
59 |
+ ffmpegsource? ( media-libs/ffmpegsource ) |
60 |
+ mp4? ( >=media-video/gpac-0.5.2 )" |
61 |
+ |
62 |
+ASM_DEP=">=dev-lang/nasm-2.13" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ amd64? ( ${ASM_DEP} ) |
65 |
+ x86? ( ${ASM_DEP} ) |
66 |
+ x86-fbsd? ( ${ASM_DEP} ) |
67 |
+ virtual/pkgconfig" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ epatch "${FILESDIR}/gpac.patch" |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ tc-export CC |
75 |
+ |
76 |
+ # let upstream pick the optimization level by default |
77 |
+ use custom-cflags || filter-flags -O? |
78 |
+ |
79 |
+ ./configure \ |
80 |
+ --prefix="${EPREFIX}"/usr \ |
81 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
82 |
+ --system-libx264 \ |
83 |
+ --host="${CHOST}" \ |
84 |
+ --disable-lsmash \ |
85 |
+ $(usex 10bit "--bit-depth=10" "") \ |
86 |
+ $(usex avs "" "--disable-avs") \ |
87 |
+ $(usex ffmpeg "" "--disable-lavf --disable-swscale") \ |
88 |
+ $(usex ffmpegsource "" "--disable-ffms") \ |
89 |
+ $(usex interlaced "" "--disable-interlaced") \ |
90 |
+ $(usex mp4 "" "--disable-gpac") \ |
91 |
+ $(usex threads "" "--disable-thread") || die |
92 |
+ |
93 |
+ # this is a nasty workaround for bug #376925 for x264 that also applies |
94 |
+ # here, needed because as upstream doesn't like us fiddling with their CFLAGS |
95 |
+ if use custom-cflags; then |
96 |
+ local cflags |
97 |
+ cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')" |
98 |
+ cflags="${cflags//$(get-flag O)/}" |
99 |
+ cflags="${cflags//-O? /$(get-flag O) }" |
100 |
+ cflags="${cflags//-g /}" |
101 |
+ sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak |
102 |
+ fi |
103 |
+} |