1 |
commit: 7d209e5ec8381639eb558fc0eb9c8d0f2b6e8532 |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 7 15:47:52 2018 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 7 15:49:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d209e5e |
7 |
|
8 |
media-video/mjpegtools: Revision bump to 2.1.0-r4. Switch to EAPI 7. |
9 |
|
10 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
12 |
|
13 |
media-video/mjpegtools/mjpegtools-2.1.0-r4.ebuild | 121 ++++++++++++++++++++++ |
14 |
1 file changed, 121 insertions(+) |
15 |
|
16 |
diff --git a/media-video/mjpegtools/mjpegtools-2.1.0-r4.ebuild b/media-video/mjpegtools/mjpegtools-2.1.0-r4.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..3ac82456dab |
19 |
--- /dev/null |
20 |
+++ b/media-video/mjpegtools/mjpegtools-2.1.0-r4.ebuild |
21 |
@@ -0,0 +1,121 @@ |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools flag-o-matic multilib-minimal toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="Tools for MJPEG video" |
30 |
+HOMEPAGE="http://mjpeg.sourceforge.net/" |
31 |
+SRC_URI="mirror://sourceforge/mjpeg/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="1" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd" |
36 |
+IUSE="cpu_flags_x86_mmx dv gtk png quicktime sdl sdlgfx static-libs" |
37 |
+REQUIRED_USE="sdlgfx? ( sdl )" |
38 |
+ |
39 |
+BDEPEND=" |
40 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
41 |
+" |
42 |
+RDEPEND=" |
43 |
+ virtual/jpeg:0=[${MULTILIB_USEDEP}] |
44 |
+ dv? ( >=media-libs/libdv-1.0.0-r3[${MULTILIB_USEDEP}] ) |
45 |
+ gtk? ( x11-libs/gtk+:2 ) |
46 |
+ png? ( media-libs/libpng:0= ) |
47 |
+ quicktime? ( >=media-libs/libquicktime-1.2.4-r1[${MULTILIB_USEDEP}] ) |
48 |
+ sdl? ( |
49 |
+ >=media-libs/libsdl-1.2.15-r4[${MULTILIB_USEDEP}] |
50 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
51 |
+ sdlgfx? ( media-libs/sdl-gfx ) |
52 |
+ ) |
53 |
+" |
54 |
+DEPEND=" |
55 |
+ ${RDEPEND} |
56 |
+ >=sys-apps/sed-4 |
57 |
+ virtual/awk |
58 |
+ cpu_flags_x86_mmx? ( dev-lang/nasm ) |
59 |
+" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${P}-pic.patch |
63 |
+ # https://sourceforge.net/p/mjpeg/bugs/139/ |
64 |
+ "${FILESDIR}"/${P}-sdl-cflags.patch |
65 |
+ "${FILESDIR}"/mjpegtools-2.1.0-no_format.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ eautoreconf |
72 |
+ sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure |
73 |
+} |
74 |
+ |
75 |
+multilib_src_configure() { |
76 |
+ [[ $(gcc-major-version) -eq 3 ]] && append-flags -mno-sse2 |
77 |
+ |
78 |
+ local myconf=( |
79 |
+ --enable-compile-warnings |
80 |
+ $(use_enable cpu_flags_x86_mmx simd-accel) |
81 |
+ $(use_enable static-libs static) |
82 |
+ --enable-largefile |
83 |
+ |
84 |
+ $(use_with quicktime libquicktime) |
85 |
+ $(use_with dv libdv) |
86 |
+ $(use_with sdl libsdl) |
87 |
+ --without-v4l |
88 |
+ $(use_with sdl x) |
89 |
+ |
90 |
+ # used by tools only |
91 |
+ $(multilib_native_use_with gtk) |
92 |
+ $(multilib_native_use_with png libpng) |
93 |
+ $(multilib_native_use_with sdlgfx) |
94 |
+ |
95 |
+ # used only in V4LCONF_LIBS that is not used anywhere... |
96 |
+ --without-dga |
97 |
+ ) |
98 |
+ |
99 |
+ ECONF_SOURCE=${S} \ |
100 |
+ econf "${myconf[@]}" |
101 |
+} |
102 |
+ |
103 |
+multilib_src_compile() { |
104 |
+ if multilib_is_native_abi; then |
105 |
+ default |
106 |
+ else |
107 |
+ # avoid building programs |
108 |
+ emake bin_PROGRAMS= |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+multilib_src_test() { |
113 |
+ # there are no tests at the moment, so it would just build |
114 |
+ # all programs in non-native ABIs... |
115 |
+ multilib_is_native_abi && default |
116 |
+} |
117 |
+ |
118 |
+multilib_src_install() { |
119 |
+ if multilib_is_native_abi; then |
120 |
+ default |
121 |
+ else |
122 |
+ emake DESTDIR="${D}" install \ |
123 |
+ bin_PROGRAMS= |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+multilib_src_install_all() { |
128 |
+ einstalldocs |
129 |
+ dodoc mjpeg_howto.txt PLANS HINTS docs/FAQ.txt |
130 |
+ |
131 |
+ find "${D}" -name '*.la' -delete || die |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
136 |
+ elog "mjpegtools installs user contributed scripts which require additional" |
137 |
+ elog "dependencies not pulled in by the installation." |
138 |
+ elog "These have to be installed manually." |
139 |
+ elog "Currently known extra dpendencies are: ffmpeg, mencoder from mplayer," |
140 |
+ elog "parts of transcode, mpeg2dec from libmpeg2, sox, toolame, vcdimager, python." |
141 |
+ fi |
142 |
+} |