/[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.7
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.7 2015/02/12 10:37:27 pacho 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 v4l"
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}
47 47
48src_prepare() { 48src_prepare() {
49 epatch "${FILESDIR}"/${P}-pic.patch 49 epatch "${FILESDIR}"/${P}-pic.patch
50 # https://sourceforge.net/p/mjpeg/bugs/139/ 50 # https://sourceforge.net/p/mjpeg/bugs/139/
51 epatch "${FILESDIR}"/${P}-sdl-cflags.patch 51 epatch "${FILESDIR}"/${P}-sdl-cflags.patch
52 epatch "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch
52 eautoreconf 53 eautoreconf
53 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure 54 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
54} 55}
55 56
56multilib_src_configure() { 57multilib_src_configure() {
57 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2 58 [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2
58 59
59 local myconf=( 60 local myconf=(
60 --enable-compile-warnings 61 --enable-compile-warnings
61 $(use_enable mmx simd-accel) 62 $(use_enable cpu_flags_x86_mmx simd-accel)
62 $(use_enable static-libs static) 63 $(use_enable static-libs static)
63 --enable-largefile 64 --enable-largefile
64 65
65 $(use_with quicktime libquicktime) 66 $(use_with quicktime libquicktime)
66 $(use_with dv libdv) 67 $(use_with dv libdv)

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

  ViewVC Help
Powered by ViewVC 1.1.20