/[gentoo-x86]/media-video/mjpegtools/mjpegtools-2.0.1_rc1.ebuild
Gentoo

Contents of /media-video/mjpegtools/mjpegtools-2.0.1_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 1 12:40:26 2013 UTC (2 years, 2 months ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Add ~ia64, wrt bug #449220

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.1_rc1.ebuild,v 1.1 2012/11/28 10:22:22 billie Exp $
4
5 EAPI=4
6
7 inherit flag-o-matic toolchain-funcs
8
9 MY_P=${P/_rc/RC}
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 ~ia64 ~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}/${MY_P}"
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 src_prepare() {
49 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
50 }
51
52 src_configure() {
53 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
54
55 econf \
56 --enable-compile-warnings \
57 $(use_enable mmx simd-accel) \
58 $(use_enable static-libs static) \
59 --enable-largefile \
60 $(use_with quicktime libquicktime) \
61 $(use_with dv libdv) \
62 $(use_with png libpng) \
63 $(use_with dga) \
64 $(use_with gtk) \
65 $(use_with sdl libsdl) \
66 $(use_with sdlgfx) \
67 $(use_with v4l) \
68 $(use_with sdl x)
69 }
70
71 src_install() {
72 default
73
74 dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt
75
76 find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
77 }
78
79 pkg_postinst() {
80 if [[ -z "${REPLACING_VERSIONS}" ]]; then
81 elog "mjpegtools installs user contributed scripts which require additional"
82 elog "dependencies not pulled in by the installation."
83 elog "These have to be installed manually."
84 elog "Currently known extra dpendencies are: ffmpeg, mencoder from mplayer,"
85 elog "parts of transcode, mpeg2dec from libmpeg2, sox, toolame, vcdimager, python."
86 fi
87 }

  ViewVC Help
Powered by ViewVC 1.1.20