megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison media-libs/libwebp/libwebp-0.4.1.ebuild @ 74:3fae46c19fc9
added libwebp-0.4.1 (until update is in the official portage) & updated mediabrowser-server ccordingly
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Fri, 03 Oct 2014 21:13:19 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
73:f336c5c11bfc | 74:3fae46c19fc9 |
---|---|
1 # Copyright 1999-2014 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libwebp/libwebp-0.4.0.ebuild,v 1.15 2014/04/28 17:45:42 mgorny Exp $ | |
4 | |
5 EAPI=5 | |
6 inherit eutils libtool multilib-minimal | |
7 | |
8 DESCRIPTION="A lossy image compression format" | |
9 HOMEPAGE="http://code.google.com/p/webp/" | |
10 SRC_URI="http://downloads.webmproject.org/releases/webp/${P}.tar.gz" | |
11 | |
12 LICENSE="BSD" | |
13 SLOT="0/5" # subslot = libwebp soname version | |
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~m68k-mint" | |
15 IUSE="experimental gif +jpeg opengl +png static-libs swap-16bit-csp tiff" | |
16 | |
17 # TODO: dev-lang/swig bindings in swig/ subdirectory | |
18 RDEPEND="gif? ( media-libs/giflib:= ) | |
19 jpeg? ( virtual/jpeg:0= ) | |
20 opengl? ( | |
21 media-libs/freeglut | |
22 virtual/opengl | |
23 ) | |
24 png? ( media-libs/libpng:0= ) | |
25 tiff? ( media-libs/tiff:0= )" | |
26 DEPEND="${RDEPEND}" | |
27 | |
28 RESTRICT="mirror" | |
29 | |
30 ECONF_SOURCE=${S} | |
31 | |
32 src_prepare() { | |
33 # This is conflicting with `usex` later on, upstream is using ac_cv_ wrong | |
34 # If modifying configure.ac, eautoreconf is required because of "Maintainer mode" | |
35 sed -i -e '/unset ac_cv_header_GL_glut_h/d' configure || die | |
36 | |
37 # Fix libtool relinking, bug 499270. | |
38 elibtoolize | |
39 } | |
40 | |
41 multilib_src_configure() { | |
42 # Only used for gif2webp binary wrt #486646 | |
43 local build_gif2webp=$(usex gif) | |
44 multilib_is_native_abi || build_gif2webp=no | |
45 | |
46 ac_cv_header_gif_lib_h=${build_gif2webp} \ | |
47 ac_cv_header_jpeglib_h=$(usex jpeg) \ | |
48 ac_cv_header_png_h=$(usex png) \ | |
49 ac_cv_header_GL_glut_h=$(usex opengl) \ | |
50 ac_cv_header_tiffio_h=$(usex tiff) \ | |
51 econf \ | |
52 $(use_enable static-libs static) \ | |
53 $(use_enable swap-16bit-csp) \ | |
54 $(use_enable experimental) \ | |
55 --enable-libwebpmux \ | |
56 --enable-libwebpdemux \ | |
57 --enable-libwebpdecoder | |
58 } | |
59 | |
60 multilib_src_install() { | |
61 emake DESTDIR="${D}" install | |
62 } | |
63 | |
64 multilib_src_install_all() { | |
65 prune_libtool_files | |
66 dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux} | |
67 } |