/[gentoo-x86]/media-video/mjpegtools/mjpegtools-2.1.0-r2.ebuild
Gentoo

Diff of /media-video/mjpegtools/mjpegtools-2.1.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
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-2.1.0-r2.ebuild,v 1.7 2015/02/12 10:37:27 pacho Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-2.1.0-r2.ebuild,v 1.8 2015/02/22 14:55:15 billie Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs 7inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs
8 8
11SRC_URI="mirror://sourceforge/mjpeg/${P}.tar.gz" 11SRC_URI="mirror://sourceforge/mjpeg/${P}.tar.gz"
12 12
13LICENSE="GPL-2" 13LICENSE="GPL-2"
14SLOT="1" 14SLOT="1"
15KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" 15KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
16IUSE="dv gtk cpu_flags_x86_mmx png quicktime sdl sdlgfx static-libs v4l" 16IUSE="dv gtk cpu_flags_x86_mmx png quicktime sdl sdlgfx static-libs"
17REQUIRED_USE="sdlgfx? ( sdl )" 17REQUIRED_USE="sdlgfx? ( sdl )"
18 18
19RDEPEND=">=virtual/jpeg-0-r2[${MULTILIB_USEDEP}] 19RDEPEND=">=virtual/jpeg-0-r2[${MULTILIB_USEDEP}]
20 quicktime? ( >=media-libs/libquicktime-1.2.4-r1[${MULTILIB_USEDEP}] ) 20 quicktime? ( >=media-libs/libquicktime-1.2.4-r1[${MULTILIB_USEDEP}] )
21 dv? ( >=media-libs/libdv-1.0.0-r3[${MULTILIB_USEDEP}] ) 21 dv? ( >=media-libs/libdv-1.0.0-r3[${MULTILIB_USEDEP}] )
36 abi_x86_32? ( 36 abi_x86_32? (
37 !<=app-emulation/emul-linux-x86-medialibs-20140508-r4 37 !<=app-emulation/emul-linux-x86-medialibs-20140508-r4
38 !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] 38 !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
39 )" 39 )"
40 40
41pkg_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
48src_prepare() { 41src_prepare() {
49 epatch "${FILESDIR}"/${P}-pic.patch 42 epatch "${FILESDIR}"/${P}-pic.patch
50 # https://sourceforge.net/p/mjpeg/bugs/139/ 43 # https://sourceforge.net/p/mjpeg/bugs/139/
51 epatch "${FILESDIR}"/${P}-sdl-cflags.patch 44 epatch "${FILESDIR}"/${P}-sdl-cflags.patch
52 epatch "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch 45 epatch "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch
64 --enable-largefile 57 --enable-largefile
65 58
66 $(use_with quicktime libquicktime) 59 $(use_with quicktime libquicktime)
67 $(use_with dv libdv) 60 $(use_with dv libdv)
68 $(use_with sdl libsdl) 61 $(use_with sdl libsdl)
69 $(use_with v4l) 62 --without-v4l
70 $(use_with sdl x) 63 $(use_with sdl x)
71 64
72 # used by tools only 65 # used by tools only
73 $(multilib_native_use_with gtk) 66 $(multilib_native_use_with gtk)
74 $(multilib_native_use_with png libpng) 67 $(multilib_native_use_with png libpng)

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20