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

Collapse All | Expand All

(-)/usr/portage/media-libs/mlt/mlt-0.3.6.ebuild (-14 / +41 lines)
Lines 4-10 Link Here
4
4
5
EAPI=1
5
EAPI=1
6
6
7
inherit eutils toolchain-funcs qt3
7
inherit kde-functions eutils toolchain-funcs
8
8
9
DESCRIPTION="MLT is an open source multimedia framework, designed and developed
9
DESCRIPTION="MLT is an open source multimedia framework, designed and developed
10
for television broadcasting"
10
for television broadcasting"
Lines 14-25 Link Here
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
17
IUSE="dv xml jack gtk sdl vorbis sox quicktime mmx lame xine lame ogg theora xine ffmpeg libsamplerate qt3 sse"
17
IUSE="dv compressed-lumas ffmpeg gtk jack kde libsamplerate mmx qt3 qt4 quicktime sdl sox sse vorbis xine xml"
18
18
19
DEPEND="ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
19
RDEPEND="ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
20
	dv?	( >=media-libs/libdv-0.104 )
20
	dv?	( >=media-libs/libdv-0.104 )
21
	xml?	( >=dev-libs/libxml2-2.5 )
21
	xml?	( >=dev-libs/libxml2-2.5 )
22
	ogg?	( >=media-libs/libogg-1.1.3 )
23
	vorbis?	( >=media-libs/libvorbis-1.1.2 )
22
	vorbis?	( >=media-libs/libvorbis-1.1.2 )
24
	sdl?	( >=media-libs/libsdl-1.2.10
23
	sdl?	( >=media-libs/libsdl-1.2.10
25
		  >=media-libs/sdl-image-1.2.4 )
24
		  >=media-libs/sdl-image-1.2.4 )
Lines 32-41 Link Here
32
	sox? ( media-sound/sox )
31
	sox? ( media-sound/sox )
33
	quicktime? ( media-libs/libquicktime )
32
	quicktime? ( media-libs/libquicktime )
34
	xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
33
	xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
35
	lame? ( >=media-sound/lame-3.97_beta2 )
34
	qt3? ( x11-libs/qt:3
36
	qt3? ( x11-libs/qt:3 )
35
		kde? ( kde-base/kdelibs:3.5 ) )
37
	theora? ( >=media-libs/libtheora-1.0_alpha5 )"
36
	!qt3?   ( qt4? ( || ( x11-libs/qt-gui:4 x11-libs/qt:4 ) ) )"
38
RDEPEND=${DEPEND}
37
38
DEPEND="${RDEPEND}
39
	compressed-lumas? ( media-gfx/imagemagick )"
40
41
PDEPEND="!qt3? ( kde? ( media-video/kdenlive ) )"
39
42
40
pkg_setup() {
43
pkg_setup() {
41
	local fail="USE sox needs also USE libsamplerate enabled."
44
	local fail="USE sox needs also USE libsamplerate enabled."
Lines 44-77 Link Here
44
		eerror "${fail}"
47
		eerror "${fail}"
45
		die "${fail}"
48
		die "${fail}"
46
	fi
49
	fi
50
	append-ldflags -Wl,--no-as-needed
47
}
51
}
48
52
49
src_unpack() {
53
src_unpack() {
50
	unpack ${A}
54
	unpack ${A}
51
	cd "${S}"
55
	cd "${S}"
52
	epatch "${FILESDIR}"/mlt-0.2.3-nostrip.patch
56
	epatch "${FILESDIR}"/mlt-0.2.3-nostrip.patch
57
	epatch "${FILESDIR}"/${PN}-0.3.4-qimage.patch
53
}
58
}
54
59
55
src_compile() {
60
src_compile() {
56
	tc-export CC
61
	tc-export CC
57
62
58
	local myconf="	--enable-gpl --enable-shared
63
	local myconf="	--enable-gpl
59
			--enable-pp --enable-shared-pp
60
			--enable-motion-est
64
			--enable-motion-est
61
			$(use_enable dv)
65
			$(use_enable dv)
62
			$(use_enable mmx)
66
			$(use_enable mmx)
63
			$(use_enable sse)
67
			$(use_enable sse)
64
			$(use_enable gtk gtk2)
68
			$(use_enable gtk gtk2)
65
			$(use_enable vorbis)
69
			$(use_enable vorbis)
66
			$(use_enable ogg)
67
			$(use_enable sdl)
70
			$(use_enable sdl)
68
			$(use_enable jack jackrack)
71
			$(use_enable jack jackrack)
69
			$(use_enable sox)
72
			$(use_enable sox)
70
			$(use_enable theora)
71
			$(use_enable lame mp3lame)
72
			$(use_enable ffmpeg avformat)
73
			$(use_enable ffmpeg avformat)
73
			$(use_enable libsamplerate resample)
74
			$(use_enable libsamplerate resample)
74
			$(use_enable qt3 qimage)
75
			$(use_enable xml westley)
75
			$(use_enable xml westley)
76
			$(use_enable xine)"
76
			$(use_enable xine)"
77
77
Lines 80-85 Link Here
80
80
81
	(use quicktime && use dv) ||  myconf="${myconf} --disable-kino"
81
	(use quicktime && use dv) ||  myconf="${myconf} --disable-kino"
82
82
83
	use compressed-lumas && myconf="${myconf} --luma-compress"
84
85
	# Waiting for media-plugins/frei0r (bug 255321)
86
	myconf="${myconf} --disable-frei0r"
87
88
	if use qt3; then
89
		myconf="${myconf} --disable-kdenlive"
90
	else
91
		myconf="${myconf} $(use_enable kde kdenlive)"
92
	fi
93
94
	if use qt3; then
95
		myconf="${myconf} --qimage-libdir=$QTDIR/$(get_libdir)
96
			--qimage-includedir=$QTDIR/include"
97
		if use kde; then
98
			# compile extra image formats using kde
99
			set-kdedir 3.5
100
			myconf="${myconf} --kde-libdir=$KDEDIR/$(get_libdir)
101
				--kde-includedir=$KDEDIR/include"
102
		fi
103
	elif use qt4; then
104
		myconf="${myconf} --qimage-libdir=/usr/$(get_libdir)/qt4
105
			--qimage-includedir=/usr/include/qt4"
106
	else
107
		myconf="${myconf} --disable-qimage"
108
	fi
109
83
	econf ${myconf} || die "econf failed"
110
	econf ${myconf} || die "econf failed"
84
	sed -i -e s/^OPT/#OPT/ "${S}/config.mak"
111
	sed -i -e s/^OPT/#OPT/ "${S}/config.mak"
85
	emake || die "emake failed"
112
	emake || die "emake failed"

Return to bug 255321