1 |
commit: 4e9e5f05843e2b71276c826db1194eca3f93dc2c |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 6 22:41:30 2017 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 6 22:47:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e9e5f05 |
7 |
|
8 |
media-libs/libwebp: 0.6.0 (bug #623398) |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
media-libs/libwebp/Manifest | 1 + |
13 |
media-libs/libwebp/libwebp-0.6.0.ebuild | 69 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/libwebp/Manifest b/media-libs/libwebp/Manifest |
17 |
index 7703086342e..e96cd57e892 100644 |
18 |
--- a/media-libs/libwebp/Manifest |
19 |
+++ b/media-libs/libwebp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libwebp-0.5.2.tar.gz 1221153 SHA256 b75310c810b3eda222c77f6d6c26b061240e3d9060095de44b2c1bae291ecdef SHA512 f0d798e0ef8b58bc159c53214a62b29dff4309ced9efd7c5f0e6f837877906db8318c4c3453f92725ef6f2b069b931ce3e7961ca26db723a31eedc7b52988de2 WHIRLPOOL 9b1af454257315026b71d7faa7b1af560cced9387298c669cf3773802088f1865f0388c3776c895906ccff35ee20ac8e03a3505b8e13a0e4aea4aaaec970d0db |
22 |
+DIST libwebp-0.6.0.tar.gz 1302881 SHA256 c928119229d4f8f35e20113ffb61f281eda267634a8dc2285af4b0ee27cf2b40 SHA512 be8eb9a3ddd3dec57f9f573d076ef97b17ea18de7e58e08e3fcb26456262394e9bb663c883d34f1aee0a91f23568e61c5ec4a7d0429cc385c009bf088ce6a1a4 WHIRLPOOL c0ebbd89adf1e1f0b1da60a1864ef9a3cecf0012ba6828f9db1d4d94006571b6dd93e7a1b714a1a63b888475e84038e615b6d6711acf92495e8fc46573e56edf |
23 |
|
24 |
diff --git a/media-libs/libwebp/libwebp-0.6.0.ebuild b/media-libs/libwebp/libwebp-0.6.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a6d1b40ede5 |
27 |
--- /dev/null |
28 |
+++ b/media-libs/libwebp/libwebp-0.6.0.ebuild |
29 |
@@ -0,0 +1,69 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+inherit autotools eutils libtool multilib-minimal |
35 |
+ |
36 |
+DESCRIPTION="A lossy image compression format" |
37 |
+HOMEPAGE="https://developers.google.com/speed/webp/download" |
38 |
+SRC_URI="http://downloads.webmproject.org/releases/webp/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="BSD" |
41 |
+SLOT="0/7" # subslot = libwebp soname version |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~m68k-mint" |
43 |
+IUSE="cpu_flags_x86_avx2 cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 experimental gif +jpeg neon opengl +png static-libs swap-16bit-csp tiff" |
44 |
+ |
45 |
+# TODO: dev-lang/swig bindings in swig/ subdirectory |
46 |
+RDEPEND="gif? ( media-libs/giflib:= ) |
47 |
+ jpeg? ( virtual/jpeg:0= ) |
48 |
+ opengl? ( |
49 |
+ media-libs/freeglut |
50 |
+ virtual/opengl |
51 |
+ ) |
52 |
+ png? ( media-libs/libpng:0= ) |
53 |
+ tiff? ( media-libs/tiff:0= )" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+ |
56 |
+ECONF_SOURCE=${S} |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ |
61 |
+ # Fix libtool relinking, bug 499270. |
62 |
+ #elibtoolize |
63 |
+ eautoreconf |
64 |
+} |
65 |
+ |
66 |
+multilib_src_configure() { |
67 |
+ local args=( |
68 |
+ --enable-libwebpmux |
69 |
+ --enable-libwebpdemux |
70 |
+ --enable-libwebpdecoder |
71 |
+ $(use_enable static-libs static) |
72 |
+ $(use_enable swap-16bit-csp) |
73 |
+ $(use_enable experimental) |
74 |
+ $(use_enable jpeg) |
75 |
+ $(use_enable png) |
76 |
+ $(use_enable opengl gl) |
77 |
+ $(use_enable tiff) |
78 |
+ |
79 |
+ $(use_enable cpu_flags_x86_avx2 avx2) |
80 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
81 |
+ $(use_enable cpu_flags_x86_sse4_1 sse4.1) |
82 |
+ $(use_enable neon) |
83 |
+ |
84 |
+ # Only used for gif2webp binary wrt #486646 |
85 |
+ $(multilib_native_use_enable gif) |
86 |
+ ) |
87 |
+ |
88 |
+ econf "${args[@]}" |
89 |
+} |
90 |
+ |
91 |
+multilib_src_install() { |
92 |
+ emake DESTDIR="${D}" install |
93 |
+} |
94 |
+ |
95 |
+multilib_src_install_all() { |
96 |
+ prune_libtool_files |
97 |
+ dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux} |
98 |
+} |