Diff x264-encoder-0.0.20220222 with a x264-encoder-9999
/usr/portage/media-video/x264-encoder/x264-encoder-9999.ebuild 2024-12-25 14:59:49.771270107 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
1 |
# Copyright 1999-2024 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | ||
6 |
# Bump with media-libs/x264 |
|
5 | 7 | |
6 | 8 |
inherit flag-o-matic toolchain-funcs |
7 | 9 | |
8 | 10 |
DESCRIPTION="A free commandline encoder for X264/AVC streams" |
9 | 11 |
HOMEPAGE="https://www.videolan.org/developers/x264.html" |
12 | ||
10 | 13 |
if [[ ${PV} == 9999 ]]; then |
11 | 14 |
inherit git-r3 |
12 | 15 |
EGIT_REPO_URI="https://code.videolan.org/videolan/x264.git" |
13 |
SRC_URI="" |
|
14 | 16 |
else |
15 |
# Download https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 |
|
16 |
SRC_URI="https://dev.gentoo.org/~aballier/distfiles/x264-${PV}.tar.bz2" |
|
17 |
KEYWORDS="~alpha amd64 ~ppc ~ppc64 ~sparc x86" |
|
18 |
S="${WORKDIR}/x264-master" |
|
17 |
X264_COMMIT="4613ac3c15fd75cebc4b9f65b7fb95e70a3acce1" |
|
18 |
SRC_URI="https://code.videolan.org/videolan/x264/-/archive/${X264_COMMIT}/x264-${X264_COMMIT}.tar.bz2 -> ${P/-encoder}.tar.bz2" |
|
19 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
|
20 |
S="${WORKDIR}/${PN/-encoder}-${X264_COMMIT}" |
|
19 | 21 |
fi |
20 | 22 | |
21 | 23 |
LICENSE="GPL-2" |
22 | 24 |
SLOT="0" |
23 | 25 |
IUSE="avs custom-cflags ffmpeg ffmpegsource +interlaced mp4 +threads" |
24 | ||
25 | 26 |
REQUIRED_USE="ffmpegsource? ( ffmpeg )" |
26 | 27 | |
27 | 28 |
RDEPEND=" |
28 | 29 |
~media-libs/x264-${PV}[interlaced=,threads=] |
29 | 30 |
ffmpeg? ( media-video/ffmpeg:= ) |
30 | 31 |
ffmpegsource? ( media-libs/ffmpegsource ) |
31 |
mp4? ( >=media-video/gpac-0.5.2:= )" |
|
32 | ||
32 |
mp4? ( >=media-video/gpac-0.5.2:= ) |
|
33 |
" |
|
33 | 34 |
ASM_DEP=">=dev-lang/nasm-2.13" |
34 |
DEPEND="${RDEPEND} |
|
35 |
DEPEND=" |
|
36 |
${RDEPEND} |
|
35 | 37 |
amd64? ( ${ASM_DEP} ) |
36 |
x86? ( ${ASM_DEP} )" |
|
38 |
x86? ( ${ASM_DEP} ) |
|
39 |
" |
|
37 | 40 |
BDEPEND="virtual/pkgconfig" |
38 | 41 | |
39 | 42 |
src_configure() { |