/[gentoo-x86]/media-video/mjpegtools/mjpegtools-2.0.0-r3.ebuild
Gentoo

Contents of /media-video/mjpegtools/mjpegtools-2.0.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Dec 16 19:54:33 2012 UTC (21 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
alpha/sparc stable wrt #443824

(Portage version: 2.1.11.38/cvs/Linux ia64, signed Manifest commit with key F6AD3240)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-2.0.0-r3.ebuild,v 1.7 2012/11/27 15:52:39 jer Exp $
4
5 EAPI=4
6
7 inherit autotools eutils flag-o-matic toolchain-funcs
8
9 MY_P=${P/_/}
10
11 DESCRIPTION="Tools for MJPEG video"
12 HOMEPAGE="http://mjpeg.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/mjpeg/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="1"
17 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-fbsd"
18 IUSE="dga dv gtk mmx png quicktime sdl sdlgfx static-libs v4l"
19 REQUIRED_USE="sdlgfx? ( sdl )"
20
21 RDEPEND="virtual/jpeg
22 quicktime? ( media-libs/libquicktime )
23 dv? ( >=media-libs/libdv-0.99 )
24 png? ( media-libs/libpng )
25 dga? ( x11-libs/libXxf86dga )
26 gtk? ( x11-libs/gtk+:2 )
27 sdl? ( >=media-libs/libsdl-1.2.7-r3
28 x11-libs/libX11
29 x11-libs/libXt
30 sdlgfx? ( media-libs/sdl-gfx )
31 )"
32
33 DEPEND="${RDEPEND}
34 mmx? ( dev-lang/nasm )
35 >=sys-apps/sed-4
36 sys-apps/gawk
37 virtual/pkgconfig"
38
39 S="${WORKDIR}/${P/_rc*}"
40
41 pkg_pretend() {
42 if has_version ">=sys-kernel/linux-headers-2.6.38" && use v4l; then
43 ewarn "Current versions of mjpegtools only support V4L1 which is not available"
44 ewarn "for kernel versions 2.6.38 and above. V4L1 will be disabled."
45 fi
46 }
47
48 # Avoid execution of linux-info_pkg_setup()
49 pkg_setup() { : ; }
50
51 src_prepare() {
52 epatch "${FILESDIR}"/${P}-sdlgfx-automagic.patch
53 epatch "${FILESDIR}"/${P}-gcc470.patch
54 epatch "${FILESDIR}"/${P}-stream-params-include.patch
55 eautoreconf
56 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
57 }
58
59 src_configure() {
60 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
61
62 econf \
63 --enable-compile-warnings \
64 $(use_enable mmx simd-accel) \
65 $(use_enable static-libs static) \
66 --enable-largefile \
67 $(use_with quicktime libquicktime) \
68 $(use_with dv libdv) \
69 $(use_with png libpng) \
70 $(use_with dga) \
71 $(use_with gtk) \
72 $(use_with sdl libsdl) \
73 $(use_with sdlgfx) \
74 $(use_with v4l) \
75 $(use_with sdl x)
76 }
77
78 src_install() {
79 default
80
81 dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt
82
83 find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
84 }
85
86 pkg_postinst() {
87 # uncomment this in the next version
88 # if [[ -z "${REPLACING_VERSIONS}" ]]; then
89 elog "mjpegtools installs user contributed scripts which require additional"
90 elog "dependencies not pulled in by the installation."
91 elog "These have to be installed manually."
92 elog "Currently known extra dpendencies are: ffmpeg, mencoder from mplayer,"
93 elog "parts of transcode, mpeg2dec from libmpeg2, sox, toolame, vcdimager, python."
94 # fi
95 }

  ViewVC Help
Powered by ViewVC 1.1.20