summaryrefslogtreecommitdiff
path: root/media-libs/libwebp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libwebp
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libwebp')
-rw-r--r--media-libs/libwebp/Manifest7
-rw-r--r--media-libs/libwebp/libwebp-0.5.2.ebuild69
-rw-r--r--media-libs/libwebp/libwebp-0.6.0.ebuild69
-rw-r--r--media-libs/libwebp/metadata.xml19
4 files changed, 164 insertions, 0 deletions
diff --git a/media-libs/libwebp/Manifest b/media-libs/libwebp/Manifest
new file mode 100644
index 000000000000..b45485ef069b
--- /dev/null
+++ b/media-libs/libwebp/Manifest
@@ -0,0 +1,7 @@
+DIST libwebp-0.5.2.tar.gz 1221153 SHA256 b75310c810b3eda222c77f6d6c26b061240e3d9060095de44b2c1bae291ecdef SHA512 f0d798e0ef8b58bc159c53214a62b29dff4309ced9efd7c5f0e6f837877906db8318c4c3453f92725ef6f2b069b931ce3e7961ca26db723a31eedc7b52988de2 WHIRLPOOL 9b1af454257315026b71d7faa7b1af560cced9387298c669cf3773802088f1865f0388c3776c895906ccff35ee20ac8e03a3505b8e13a0e4aea4aaaec970d0db
+DIST libwebp-0.6.0.tar.gz 1302881 SHA256 c928119229d4f8f35e20113ffb61f281eda267634a8dc2285af4b0ee27cf2b40 SHA512 be8eb9a3ddd3dec57f9f573d076ef97b17ea18de7e58e08e3fcb26456262394e9bb663c883d34f1aee0a91f23568e61c5ec4a7d0429cc385c009bf088ce6a1a4 WHIRLPOOL c0ebbd89adf1e1f0b1da60a1864ef9a3cecf0012ba6828f9db1d4d94006571b6dd93e7a1b714a1a63b888475e84038e615b6d6711acf92495e8fc46573e56edf
+EBUILD libwebp-0.5.2.ebuild 1771 SHA256 ac3bf353a148e0ef122c5894f3583cc4b60ae79495d90049d1487f682398cf59 SHA512 f461a096427a8fb7dec8a2126474b97f4d6268d9c5fba3b9a581604c06f76980e31da67f2a9b55b45439bcf820b6a81021a6087070899ae73943e9386b514ec4 WHIRLPOOL 43d7386991c35090cea36681fb430af94c011b2664e05dcd266474017af414533722a2576acb989efd9e70b07f3795744f1eec32865d86a63c2217662b5bd944
+EBUILD libwebp-0.6.0.ebuild 1780 SHA256 1712ed527cd768efd4ea758e65a993c40cad6046b4ceecbd2480eac51cfec9bc SHA512 b258c8ab17c12ccf7c5daf68edfb6bbde1fcb32f65949ecdb6ca8df8c48fd437971e4bf4ef6890b4fe4ee5438c7ad96e772fb4f20925f4012b7a6b87d80b5115 WHIRLPOOL 7779958739ba6526bc2be925c49c1cc211074dba865a3341b2219474c669b9bd4b66c2dc90cf92bf9bda5e6b2fb43bf379e0933ff7967847a27fe79edbca8914
+MISC ChangeLog 4478 SHA256 2b2228863e830488cfe7a610fbe0ed77cc22def8d1980f74824ae52943c3b6f9 SHA512 bb480f5aaca38636fbb66527ad27741709828f1ab1591a73dc0cf08c45189b933544f01ccbd7cd5c0b07a530c2c7e79b7b77c5b21867cdaab251e7a0564efb7e WHIRLPOOL ffa88fb32225d239214005aa128197c6cc7908e40a653056ef1a5ea4967ce79982468d1b69025fe2b22391be848d2c0fa49e263df645251a424ca8eb297d3a7e
+MISC ChangeLog-2015 9732 SHA256 8aa2891a8518e31fa1bbb31ec7fa39a3a104d23ca725b10a662d1b78e8b0d4a2 SHA512 4433a0c1d4422338045c7042cc68e9cc06bc074dc73734fe5dee46de8f74db555dfbe70c6367fad5434ba6f6ba4774615973f01f2ebae30a4cc06dd273a47b78 WHIRLPOOL 8aafa11a0abb8a772bc209016129eceb56c8ee170281d8f071e929d91014568313af82eb6a0261897dcafc52c7c975278a6149c90b36fff1c3331b903c4fec2d
+MISC metadata.xml 626 SHA256 078f46618b11987855189783c9c199765c5f0db05944456d77dd8840638d06be SHA512 b7348f6c830bb9537f97fcc0f3cbf8b55491913ea45020005734088e7c1aa71dfcacab9dd87bf3085e79554a3326f90b6c30543ad41f08d863639732132be78b WHIRLPOOL 70197397c54f6f3ab1fedabc34081d3309f65edf8f9f34b0d85952fadff6aa1ab6f7fae1a493809ea1d20be5357a31139489c743ce67c44144808ac2623dd2da
diff --git a/media-libs/libwebp/libwebp-0.5.2.ebuild b/media-libs/libwebp/libwebp-0.5.2.ebuild
new file mode 100644
index 000000000000..8c11d2607ece
--- /dev/null
+++ b/media-libs/libwebp/libwebp-0.5.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils libtool multilib-minimal
+
+DESCRIPTION="A lossy image compression format"
+HOMEPAGE="https://developers.google.com/speed/webp/download"
+SRC_URI="http://downloads.webmproject.org/releases/webp/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/6" # subslot = libwebp soname version
+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"
+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"
+
+# TODO: dev-lang/swig bindings in swig/ subdirectory
+RDEPEND="gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0= )
+ opengl? (
+ media-libs/freeglut
+ virtual/opengl
+ )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )"
+DEPEND="${RDEPEND}"
+
+ECONF_SOURCE=${S}
+
+src_prepare() {
+ default
+
+ # Fix libtool relinking, bug 499270.
+ #elibtoolize
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local args=(
+ --enable-libwebpmux
+ --enable-libwebpdemux
+ --enable-libwebpdecoder
+ $(use_enable static-libs static)
+ $(use_enable swap-16bit-csp)
+ $(use_enable experimental)
+ $(use_enable jpeg)
+ $(use_enable png)
+ $(use_enable opengl gl)
+ $(use_enable tiff)
+
+ $(use_enable cpu_flags_x86_avx2 avx2)
+ $(use_enable cpu_flags_x86_sse2 sse2)
+ $(use_enable cpu_flags_x86_sse4_1 sse4.1)
+ $(use_enable neon)
+
+ # Only used for gif2webp binary wrt #486646
+ $(multilib_native_use_enable gif)
+ )
+
+ econf "${args[@]}"
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux}
+}
diff --git a/media-libs/libwebp/libwebp-0.6.0.ebuild b/media-libs/libwebp/libwebp-0.6.0.ebuild
new file mode 100644
index 000000000000..a6d1b40ede54
--- /dev/null
+++ b/media-libs/libwebp/libwebp-0.6.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils libtool multilib-minimal
+
+DESCRIPTION="A lossy image compression format"
+HOMEPAGE="https://developers.google.com/speed/webp/download"
+SRC_URI="http://downloads.webmproject.org/releases/webp/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/7" # subslot = libwebp soname version
+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"
+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"
+
+# TODO: dev-lang/swig bindings in swig/ subdirectory
+RDEPEND="gif? ( media-libs/giflib:= )
+ jpeg? ( virtual/jpeg:0= )
+ opengl? (
+ media-libs/freeglut
+ virtual/opengl
+ )
+ png? ( media-libs/libpng:0= )
+ tiff? ( media-libs/tiff:0= )"
+DEPEND="${RDEPEND}"
+
+ECONF_SOURCE=${S}
+
+src_prepare() {
+ default
+
+ # Fix libtool relinking, bug 499270.
+ #elibtoolize
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local args=(
+ --enable-libwebpmux
+ --enable-libwebpdemux
+ --enable-libwebpdecoder
+ $(use_enable static-libs static)
+ $(use_enable swap-16bit-csp)
+ $(use_enable experimental)
+ $(use_enable jpeg)
+ $(use_enable png)
+ $(use_enable opengl gl)
+ $(use_enable tiff)
+
+ $(use_enable cpu_flags_x86_avx2 avx2)
+ $(use_enable cpu_flags_x86_sse2 sse2)
+ $(use_enable cpu_flags_x86_sse4_1 sse4.1)
+ $(use_enable neon)
+
+ # Only used for gif2webp binary wrt #486646
+ $(multilib_native_use_enable gif)
+ )
+
+ econf "${args[@]}"
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux}
+}
diff --git a/media-libs/libwebp/metadata.xml b/media-libs/libwebp/metadata.xml
new file mode 100644
index 000000000000..f90c38f0311e
--- /dev/null
+++ b/media-libs/libwebp/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>chromium@gentoo.org</email>
+ <name>Chromium in Gentoo Project</name>
+ </maintainer>
+ <use>
+ <flag name="experimental">Build with -DWEBP_EXPERIMENTAL_FEATURES</flag>
+ <flag name="swap-16bit-csp">Enable byte swapping for 16 bit colorspace</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">webp</remote-id>
+ </upstream>
+</pkgmetadata>