/[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.3 Revision 1.13
1# Copyright 1999-2014 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.3 2014/06/18 20:31:11 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-2.1.0-r2.ebuild,v 1.13 2015/04/26 21:51:54 zlogene 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
10HOMEPAGE="http://mjpeg.sourceforge.net/" 10HOMEPAGE="http://mjpeg.sourceforge.net/"
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 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}] )
25 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] 25 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
26 sdlgfx? ( media-libs/sdl-gfx ) 26 sdlgfx? ( media-libs/sdl-gfx )
27 )" 27 )"
28 28
29DEPEND="${RDEPEND} 29DEPEND="${RDEPEND}
30 mmx? ( dev-lang/nasm ) 30 cpu_flags_x86_mmx? ( dev-lang/nasm )
31 >=sys-apps/sed-4 31 >=sys-apps/sed-4
32 virtual/awk 32 virtual/awk
33 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" 33 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
34 34
35RDEPEND="${RDEPEND} 35RDEPEND="${RDEPEND}
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
45 epatch "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch
52 eautoreconf 46 eautoreconf
53 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure 47 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
54} 48}
55 49
56multilib_src_configure() { 50multilib_src_configure() {
57 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2 51 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
58 52
59 local myconf=( 53 local myconf=(
60 --enable-compile-warnings 54 --enable-compile-warnings
61 $(use_enable mmx simd-accel) 55 $(use_enable cpu_flags_x86_mmx simd-accel)
62 $(use_enable static-libs static) 56 $(use_enable static-libs static)
63 --enable-largefile 57 --enable-largefile
64 58
65 $(use_with quicktime libquicktime) 59 $(use_with quicktime libquicktime)
66 $(use_with dv libdv) 60 $(use_with dv libdv)
67 $(use_with sdl libsdl) 61 $(use_with sdl libsdl)
68 $(use_with v4l) 62 --without-v4l
69 $(use_with sdl x) 63 $(use_with sdl x)
70 64
71 # used by tools only 65 # used by tools only
72 $(multilib_native_use_with gtk) 66 $(multilib_native_use_with gtk)
73 $(multilib_native_use_with png libpng) 67 $(multilib_native_use_with png libpng)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20