the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libwebp2
Version: 0.1.3
Revision: 2
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: <<
Added upstream patch to enable building with gcc-4.0 on 10.5.
Can be removed in next version.
<<
License: BSD
Homepage: http://code.google.com/speed/webp/
Maintainer: Daniel Johnson
Source: http://webp.googlecode.com/files/libwebp-%v.tar.gz
Source-MD5: 254d4670e14e9ed881f0536b006ab336
PatchFile: %n.patch
PatchFile-MD5: 9af8587447902338dc780744b3f63549
Depends: %n-shlibs (= %v-%r)
BuildDepends: <<
libjpeg8,
libpng15,
pkgconfig
<<
BuildDependsOnly: true
Conflicts: libwebp0, libwebp2
Replaces: libwebp0, libwebp2
ConfigureParams: <<
--disable-dependency-tracking \
--disable-static
<<
InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: AUTHORS ChangeLog COPYING NEWS PATENTS README
SplitOff: <<
Package: %N-shlibs
Files: lib/libwebp.*.dylib
Shlibs: <<
%p/lib/libwebp.2.dylib 3.0.0 %n (>= 0.1.3-1)
<<
DocFiles: AUTHORS ChangeLog COPYING NEWS PATENTS README
<<
SplitOff2: <<
Package: %N-bin
Description: Utilities to convert between webp and png/jpeg
DescUsage: <<
Includes utilities:
cwebp - Encodes png/jpeg to webp
dwebp - Decodes webp to png/jpeg
<<
Depends: <<
%N-shlibs (>= %v-%r),
libjpeg8-shlibs,
libpng15-shlibs
<<
Conflicts: libwebp0-bin, libwebp2-bin
Replaces: libwebp0-bin, libwebp2-bin
Files: bin share
DocFiles: AUTHORS ChangeLog COPYING NEWS PATENTS README
<<
diff -ru libwebp-0.1.3.orig/src/dsp/cpu.c libwebp-0.1.3/src/dsp/cpu.c
--- libwebp-0.1.3.orig/src/dsp/cpu.c 2011-09-22 16:53:30.000000000 -0400
+++ libwebp-0.1.3/src/dsp/cpu.c 2012-01-26 12:54:36.000000000 -0500
@@ -21,7 +21,8 @@
// SSE2 detection.
//
-#if defined(__pic__) && defined(__i386__)
+// apple/darwin gcc-4.0.1 defines __PIC__, but not __pic__ with -fPIC.
+#if (defined(__pic__) || defined(__PIC__)) && defined(__i386__)
static inline void GetCPUInfo(int cpu_info[4], int info_type) {
__asm__ volatile (
"mov %%ebx, %%edi\n"