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

Collapse All | Expand All

(-)mjpegtools-1.9.0-r1.ebuild (-36 / +32 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-1.9.0-r1.ebuild,v 1.9 2011/04/01 09:48:15 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-1.9.0-r1.ebuild,v 1.9 2011/04/01 09:48:15 ssuominen Exp $
4
4
5
EAPI="1"
5
EAPI=4
6
6
7
inherit flag-o-matic toolchain-funcs eutils libtool
7
inherit autotools eutils flag-o-matic toolchain-funcs
8
8
9
MY_P=${P/_/}
9
MY_P=${P/_/}
10
10
Lines 14-27 Link Here
14
14
15
LICENSE="as-is"
15
LICENSE="as-is"
16
SLOT="1"
16
SLOT="1"
17
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
17
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
18
IUSE="gtk dv quicktime sdl yv12 v4l dga png mmx"
18
IUSE="dga dv gtk mmx png quicktime sdl v4l"
19
19
20
RDEPEND="virtual/jpeg
20
RDEPEND="virtual/jpeg
21
	gtk? ( x11-libs/gtk+:2 )
22
	dv? ( >=media-libs/libdv-0.99 )
23
	quicktime? ( media-libs/libquicktime )
21
	quicktime? ( media-libs/libquicktime )
22
	dv? ( >=media-libs/libdv-0.99 )
24
	png? ( media-libs/libpng )
23
	png? ( media-libs/libpng )
24
	dga? ( x11-libs/libXxf86dga )
25
	gtk? ( x11-libs/gtk+:2 )
25
	sdl? ( >=media-libs/libsdl-1.2.7-r3 )
26
	sdl? ( >=media-libs/libsdl-1.2.7-r3 )
26
	x11-libs/libX11
27
	x11-libs/libX11
27
	x11-libs/libXt"
28
	x11-libs/libXt"
Lines 29-74 Link Here
29
DEPEND="${RDEPEND}
30
DEPEND="${RDEPEND}
30
	mmx? ( dev-lang/nasm )
31
	mmx? ( dev-lang/nasm )
31
	>=sys-apps/sed-4
32
	>=sys-apps/sed-4
33
	sys-apps/gawk
32
	dev-util/pkgconfig"
34
	dev-util/pkgconfig"
33
35
34
S="${WORKDIR}/${MY_P}"
36
S="${WORKDIR}/${P/_rc*}"
35
37
36
src_unpack() {
38
src_prepare() {
37
	unpack ${A}
39
	sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure.ac
38
	cd "${S}"
40
	epatch "${FILESDIR}"/${P}-libpng-1.5.patch \
39
	sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
41
		"${FILESDIR}"/${P}-sdl-automagic.patch \
40
	epatch "${FILESDIR}"/${P}-glibc-2.10.patch \
42
		"${FILESDIR}"/${P}-gtk-automagic.patch \
41
		"${FILESDIR}"/${P}-jpeg-7.patch
43
		"${FILESDIR}"/${P}-dga-automagic.patch \
44
		"${FILESDIR}"/${P}-v4l-automagic.patch
45
	eautoreconf
42
}
46
}
43
47
44
src_compile() {
48
src_configure() {
45
	local myconf
46
47
	if use yv12 && use dv; then
48
		myconf="${myconf} --with-dv-yv12"
49
	elif use yv12; then
50
		ewarn "yv12 support is possible when 'dv' is in your USE flags."
51
	fi
52
53
	[[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
49
	[[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
54
55
	append-flags -fno-strict-aliasing
50
	append-flags -fno-strict-aliasing
56
51
57
	econf \
52
	econf \
58
		--with-x \
53
		--enable-compile-warnings \
59
		$(use_enable dga xfree-ext) \
54
		$(use_enable mmx simd-accel) \
55
		--enable-largefile \
60
		$(use_with quicktime libquicktime) \
56
		$(use_with quicktime libquicktime) \
57
		$(use_with dv libdv) \
61
		$(use_with png libpng) \
58
		$(use_with png libpng) \
62
		$(use_with v4l) \
59
		$(use_with dga) \
63
		$(use_with gtk) \
60
		$(use_with gtk) \
64
		$(use_with sdl) \
61
		$(use_with sdl libsdl) \
65
		$(use_with dv libdv /usr) \
62
		$(use_with v4l) \
66
		$(use_enable mmx simd-accel) \
63
		--with-x
67
		--enable-largefile \
64
}
68
		--without-jpeg-mmx \
69
		${myconf}
70
65
71
	emake || die
66
src_compile() {
67
	default
72
68
73
	cd docs
69
	cd docs
74
	local infofile
70
	local infofile
Lines 81-87 Link Here
81
}
77
}
82
78
83
src_install() {
79
src_install() {
84
	einstall || die
80
	default
85
	dodoc mjpeg_howto.txt README* PLANS NEWS TODO HINTS BUGS ChangeLog \
81
86
		AUTHORS CHANGES
82
	dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt
87
}
83
}

Return to bug 361799