gdk-pixbuf stable port information

Package: gdk-pixbuf
Version: 0.22.0
Revision: 14
Distribution: 10.4, 10.5
Depends: %N-shlibs (= %v-%r)
BuildDepends: <<
audiofile,
autoconf2.6,
automake1.11,
esound (>= 0.2.38-1),
fink (>= 0.24.12-1),
gettext-bin,
gettext-tools,
glib,
gnome-libs-dev,
gtk+ (>= 1.2.10-20),
imlib (>= 1.9.14-2),
libgettext3-dev,
libiconv-dev,
libjpeg,
libpng3,
libtiff,
libtool14,
x11-dev
<<
BuildDependsOnly: True
Source: mirror:gnome:sources/%n/0.22/%n-%v.tar.bz2
Source-MD5: 05fcb68ceaa338614ab650c775efc2f2
PatchFile: %n.patch
PatchFile-MD5: f3793f75938f248f81a3390d72c01247
PatchScript: <<
%{default_script}
# disable demos
perl -pi -e 's,demo\S*,,,g' Makefile.am configure.in

# clean up syntax weirdness
perl -ni -e 'print unless /^#.*\\/' doc/Makefile.am

# "libexec" appears to be a reserved or magical name in new automake
perl -pi -e 's/libexec/loader/g' gdk-pixbuf/Makefile.am

# fix .m4 syntax for use by modern automake in other packages
perl -pi -e 's/(AC_DEFUN\()(\S+)(,)/\1\[\2]\3/' gdk-pixbuf.m4
<<
ConfigureParams: --disable-gtk-doc
CompileScript: <<
autoreconf -f -i
./configure %c
make
<<
InstallScript: make install DESTDIR=%d
SplitOff: <<
Package: %N-shlibs
Replaces: gdk-pixbuf (<< 0.16.0-2)
Depends: <<
audiofile-shlibs,
esound-shlibs (>= 0.2.38-1),
glib-shlibs,
gnome-libs-shlibs,
gtk+-shlibs (>= 1.2.10-20),
imlib-shlibs (>= 1.9.14-2),
libgettext3-shlibs,
libiconv,
libjpeg-shlibs,
libpng3-shlibs,
libtiff-shlibs,
x11
<<
Files: <<
lib/gdk-pixbuf/loaders/*.so
lib/libgdk_pixbuf.2.0.0.dylib
lib/libgdk_pixbuf.2.dylib
lib/libgdk_pixbuf_xlib.2.0.0.dylib
lib/libgdk_pixbuf_xlib.2.dylib
lib/libgnomecanvaspixbuf.1.0.0.dylib
lib/libgnomecanvaspixbuf.1.dylib
<<
Shlibs: <<
%p/lib/libgdk_pixbuf.2.dylib 3.0.0 %n (>= 0.18.0-1)
%p/lib/libgdk_pixbuf_xlib.2.dylib 3.0.0 %n (>= 0.18.0-1)
%p/lib/libgnomecanvaspixbuf.1.dylib 2.0.0 %n (>= 0.18.0-1)
<<
DocFiles: README COPYING* AUTHORS NEWS
<<
DocFiles: README COPYING* AUTHORS NEWS
Description: Image loading and manipulation library
DescDetail: <<
gdk-pixbuf is a generic image handling library for Gtk+ programs. It
can read a wide range of image file formats. Images can be manipulated
in memory, operations include scaling, compositing and
filtering. gdk-pixbuf is intended to eventually replace Imlib.
<<
License: GPL/LGPL
Homepage: http://www.gnome.org/
Maintainer: The Gnome Core Team
DescPackaging: <<
Originally packaged by Masanori Sekino.

Easier to just modernize the autotool template files and rerun
autoconf than to patch a lot of flags in the distributed files
generated by an ancient autotools.
<<

gdk-pixbuf stable port .patch

diff -Nurd -x'*~' gdk-pixbuf-0.22.0.orig/configure.in gdk-pixbuf-0.22.0/configure.in
--- gdk-pixbuf-0.22.0.orig/configure.in 2002-12-18 17:18:18.000000000 -0500
+++ gdk-pixbuf-0.22.0/configure.in 2006-08-08 19:10:45.000000000 -0400
@@ -26,6 +26,7 @@
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PATH_XTRA
+AM_PROG_AS

dnl Initialize maintainer mode
AM_MAINTAINER_MODE
@@ -147,18 +148,18 @@
dnl Test for libtiff
if test -z "$LIBTIFF"; then
AC_CHECK_LIB(tiff, TIFFReadScanline,
- AC_CHECK_HEADER(tiffio.h,
+ [AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF='-ltiff',
- AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***)),
- AC_CHECK_LIB(tiff, TIFFWriteScanline,
- AC_CHECK_HEADER(tiffio.h,
+ AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
+ [AC_CHECK_LIB(tiff, TIFFWriteScanline,
+ [AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
- AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***)),
- AC_CHECK_LIB(tiff34, TIFFFlushData,
- AC_CHECK_HEADER(tiffio.h,
+ AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
+ [AC_CHECK_LIB(tiff34, TIFFFlushData,
+ [AC_CHECK_HEADER(tiffio.h,
TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
- AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***)),
- AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***), -ljpeg -lz -lm), -ljpeg -lz -lm), -lm)
+ AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
+ AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***), -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
fi

dnl Test for libjpeg
@@ -191,9 +192,9 @@
dnl Test for libpng
if test -z "$LIBPNG"; then
AC_CHECK_LIB(png, png_read_info,
- AC_CHECK_HEADER(png.h,
+ [AC_CHECK_HEADER(png.h,
png_ok=yes,
- png_ok=no),
+ png_ok=no)],
AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)
if test "$png_ok" = yes; then
AC_MSG_CHECKING([for png_structp in png.h])
diff -Nurd -x'*~' gdk-pixbuf-0.22.0.orig/gdk-pixbuf/Makefile.am gdk-pixbuf-0.22.0/gdk-pixbuf/Makefile.am
--- gdk-pixbuf-0.22.0.orig/gdk-pixbuf/Makefile.am 2002-09-11 11:55:52.000000000 -0400
+++ gdk-pixbuf-0.22.0/gdk-pixbuf/Makefile.am 2006-08-08 19:43:25.000000000 -0400
@@ -17,6 +17,7 @@
$(CANVAS_PIXBUF_LIB)

libgnomecanvaspixbuf_la_LDFLAGS = -version-info 1:0:0 $(EXTRA_GNOME_LIBS)
+libgnomecanvaspixbuf_la_LIBADD = libgdk_pixbuf.la

libexecdir = $(libdir)/gdk-pixbuf/loaders

gdk-pixbuf _unstable_ port .patch