Package: libwebp4-shlibs
Version: 0.3.1
Revision: 6
Distribution: 10.9, 10.10, 10.11, 10.12, 10.13, 10.14, 10.14.5, 10.15
Description: Library for manipulating WebP format
DescDetail: <<
	WebP is a method of lossy compression that can be used on photographic
	images. The degree of compression is adjustable so a user can choose
	the trade-off between file size and image quality.

	A WebP file consists of VP8 image data, and a container based on RIFF.
	Webmasters, web developers and browser developers can use the WebP
	format to create smaller, better looking images that can help make the
	web faster.
<<
DescPackaging: <<
	Will not build in the presence of freeglut so BuildConflicts with it.
	configure expects to only find OpenGL.framework on OS X and gets
	horribly confused by another GL. No easy way to fix.

	Upstream-like patch to support new giflib API
<<
License: BSD
Homepage: http://code.google.com/speed/webp/
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
Source: http://webp.googlecode.com/files/libwebp-%v.tar.gz
Source-Checksum: SHA256(b37932c625322a69fe4e9b88884b5c7aed2b3eaf9fd5e5b480aee339a92e6ee7)

PatchFile: %n.patch
PatchFile-MD5: d58f31949e84f1d457bac56000ea698c

BuildDepends: <<
	fink-package-precedence,
	giflib7,
	libjpeg9 (>= 9-3),
	libpng16,
	libtiff6,
	pkgconfig
<<
BuildConflicts: freeglut, freeglut2

ConfigureParams: <<
	--enable-dependency-tracking \
	--disable-static \
	--enable-libwebpmux \
	--enable-libwebpdemux \
	--enable-libwebpdecoder
<<

CompileScript: <<
	%{default_script}
	fink-package-precedence .
<<

InstallScript: <<
	make install DESTDIR=%d
	/bin/rm -rf %i/include %i/lib/*.la %i/lib/pkgconfig %i/lib/libwebp.dylib %i/lib/libwebpdecoder.dylib %i/lib/libwebpdemux.dylib %i/lib/libwebpmux.dylib
<<

Shlibs: <<
	%p/lib/libwebp.4.dylib 5.0.0 %n (>= 0.2.1-1)
	%p/lib/libwebpdecoder.0.dylib 1.0.0 %n (>= 0.3.1-1)
	%p/lib/libwebpdemux.0.dylib 1.0.0 %n (>= 0.3.1-1)
	%p/lib/libwebpmux.0.dylib 1.0.0 %n (>= 0.3.1-1)
<<

DocFiles: AUTHORS ChangeLog COPYING NEWS PATENTS README

SplitOff: <<
	Package: %N-bin
	Description: Utilities to convert webp <-> png/jpeg
	DescUsage: <<
		Includes utilities:
			cwebp - Encodes png/jpeg to webp
			dwebp - Decodes webp to png/jpeg
			gif2webp - Encodes gif to webp
			vwebp - Displays webp files with OpenGL
			webpmux - Create WebP Mux/container file
	<<
	
	Depends: <<
		%N (>= %v-%r),
		giflib7-shlibs,
		libjpeg9-shlibs (>= 9-3),
		libpng16-shlibs,
		libtiff6-shlibs
	<<
	Conflicts: <<
		libwebp0-bin,
		libwebp2-bin,
		libwebp4-bin,
		libwebp5-bin,
		libwebp6-bin,
		libwebp7-bin,
		libwebp4-shlibs-bin,
		webp-bin
	<<
	Replaces: <<
		libwebp0-bin,
		libwebp2-bin,
		libwebp4-bin,
		libwebp5-bin,
		libwebp6-bin,
		libwebp7-bin,
		libwebp4-shlibs-bin,
		webp-bin
	<<

	Files: bin share
	
	DocFiles: AUTHORS ChangeLog COPYING NEWS PATENTS README
<<