Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 268392 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-video/ffmpeg/ffmpeg-9999.ebuild (-3 / +33 lines)
Lines 28-34 Link Here
28
if [ "${PV#9999}" = "${PV}" ] ; then
28
if [ "${PV#9999}" = "${PV}" ] ; then
29
	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
29
	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
30
fi
30
fi
31
IUSE="+3dnow +3dnowext alsa altivec amr bindist +bzip2 cpudetection custom-cflags debug dirac doc +encode faac frei0r gsm +hardcoded-tables ieee1394 jack jpeg2k +mmx +mmxext mp3 network oss pic qt-faststart rtmp schroedinger sdl speex +ssse3 static-libs test theora threads v4l v4l2 vaapi vdpau vorbis vpx X x264 xvid +zlib"
31
IUSE="+3dnow +3dnowext alsa altivec amr bindist +bzip2 cpudetection custom-cflags debug dirac doc +encode faac ffmpeg-mt frei0r gsm +hardcoded-tables ieee1394 jack jpeg2k +mmx +mmxext mp3 network oss pic qt-faststart rtmp schroedinger sdl speex +ssse3 static-libs test theora threads v4l v4l2 vaapi vdpau vorbis vpx X x264 xvid +zlib"
32
32
33
VIDEO_CARDS="nvidia"
33
VIDEO_CARDS="nvidia"
34
34
Lines 78-86 Link Here
78
	v4l2? ( sys-kernel/linux-headers )
78
	v4l2? ( sys-kernel/linux-headers )
79
"
79
"
80
80
81
src_unpack() {
82
	if [ "${PV#9999}" != "${PV}" ] ; then
83
		if use ffmpeg-mt; then
84
			EGIT_REPO_URI="git://gitorious.org/ffmpeg/ffmpeg-mt"
85
			EGIT_PROJECT="ffmpeg-mt"
86
		fi
87
		git_src_unpack
88
89
		if use ffmpeg-mt; then
90
			cd "${S}"
91
			EGIT_COMMIT="$(git submodule status -- libswscale|sed -e 's/^-\(.*\) .*/\1/')"
92
			EGIT_REPO_URI="git://git.ffmpeg.org/libswscale"
93
			EGIT_PROJECT="${PN}-libswscale"
94
			S+="/libswscale"
95
			git_fetch
96
		fi
97
		S="${WORKDIR}/${P}"
98
99
		cd "${WORKDIR}"
100
	else
101
		unpack ${A}
102
	fi
103
}
104
81
src_prepare() {
105
src_prepare() {
82
	if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
106
	# Snapshot
83
		sed -i -e "s/UNKNOWN/SVN-r${FFMPEG_REVISION}/" "${S}/version.sh" || die
107
	if [ "${PV%_p*}" != "${PV}" ] ; then
108
		sed -e "s/UNKNOWN/git-r${FFMPEG_REVISION}/" \
109
			-i version.sh || die
110
	fi
111
112
	if [ "${PV#9999}" = "${PV}" ] && use ffmpeg-mt ; then
113
		epatch "${DISTDIR}/${P}-ffmpeg-mt.patch"
84
	fi
114
	fi
85
}
115
}
86
116

Return to bug 268392