Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 301055
Collapse All | Expand All

(-)/usr/portage/media-video/x264-encoder/x264-encoder-9999.ebuild (-6 / +8 lines)
Lines 13-19 Link Here
13
inherit multilib toolchain-funcs ${V_ECLASS}
13
inherit multilib toolchain-funcs ${V_ECLASS}
14
14
15
if [ "${PV#9999}" = "${PV}" ] ; then
15
if [ "${PV#9999}" = "${PV}" ] ; then
16
	MY_P="x264-snapshot-$(get_version_component_range 3)-2245"
16
	MY_P="x264-snapshot-$(get_version_component_range 3)-2245-stable"
17
fi
17
fi
18
DESCRIPTION="A free commandline encoder for X264/AVC streams"
18
DESCRIPTION="A free commandline encoder for X264/AVC streams"
19
HOMEPAGE="http://www.videolan.org/developers/x264.html"
19
HOMEPAGE="http://www.videolan.org/developers/x264.html"
Lines 21-27 Link Here
21
	EGIT_REPO_URI="git://git.videolan.org/x264.git"
21
	EGIT_REPO_URI="git://git.videolan.org/x264.git"
22
	SRC_URI=""
22
	SRC_URI=""
23
else
23
else
24
	SRC_URI="http://ftp.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
24
	SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
25
fi
25
fi
26
26
27
LICENSE="GPL-2"
27
LICENSE="GPL-2"
Lines 31-40 Link Here
31
else
31
else
32
	KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
32
	KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
33
fi
33
fi
34
IUSE="debug ffmpeg mp4 +system-libx264 +threads"
34
IUSE="debug ffmpeg ffmpegsource mp4 +system-libx264 +threads"
35
36
REQUIRED_USE="ffmpegsource? ( ffmpeg )"
35
37
36
RDEPEND="
38
RDEPEND="
37
	ffmpeg? ( media-video/ffmpeg )
39
	ffmpeg? ( media-video/ffmpeg )
40
	ffmpegsource? ( media-libs/ffmpegsource )
38
	mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
41
	mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
39
	system-libx264? ( ~media-libs/x264-${PV} )
42
	system-libx264? ( ~media-libs/x264-${PV} )
40
"
43
"
Lines 56-61 Link Here
56
	local myconf=""
59
	local myconf=""
57
	use debug && myconf+=" --enable-debug"
60
	use debug && myconf+=" --enable-debug"
58
	use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
61
	use ffmpeg || myconf+=" --disable-lavf --disable-swscale"
62
	use ffmpegsource || myconf+=" --disable-ffms"
59
	use mp4 || myconf+=" --disable-gpac"
63
	use mp4 || myconf+=" --disable-gpac"
60
	use system-libx264 && myconf+=" --system-libx264"
64
	use system-libx264 && myconf+=" --system-libx264"
61
	use threads || myconf+=" --disable-thread"
65
	use threads || myconf+=" --disable-thread"
Lines 64-74 Link Here
64
		--prefix="${EPREFIX}"/usr \
68
		--prefix="${EPREFIX}"/usr \
65
		--libdir="${EPREFIX}"/usr/$(get_libdir) \
69
		--libdir="${EPREFIX}"/usr/$(get_libdir) \
66
		--disable-avs \
70
		--disable-avs \
67
		--disable-ffms \
68
		--extra-asflags="${ASFLAGS}" \
71
		--extra-asflags="${ASFLAGS}" \
69
		--extra-cflags="${CFLAGS}" \
72
		--extra-cflags="${CFLAGS}" \
70
		--extra-ldflags="${LDFLAGS}" \
73
		--extra-ldflags="${LDFLAGS}" \
71
		--host="${CHOST}" \
74
		--host="${CHOST}" \
72
		${myconf} \
75
		${myconf} || die
73
		|| die
74
}
76
}

Return to bug 301055