Package: gtk+2 # do not upgrade to 2.8.x until cairo InheritedBuildDepends issue is resolved! Version: 2.6.10 Revision: 4 Description: The Gimp Toolkit License: LGPL Maintainer: The Gnome Core Team Depends: << %N-shlibs (= %v-%r), atk1-shlibs (>= 1.6.0-1), libgettext3-shlibs, glib2-shlibs (>= 2.12.0-1), libiconv, libjpeg-shlibs, libpng3-shlibs (>= 1.2.5-4), libtiff-shlibs, pango1-xft2 (>= 1.8.0-1), x11 << BuildDepends: << glib2-dev (>= 2.12.0-1), atk1 (>= 1.6.0-1), pango1-xft2-dev (>= 1.8.0-1), libpng3, libjpeg, libtiff, pkgconfig (>= 0.15.0-2), libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, x11-dev << Conflicts: %N-common Replaces: %N-common Source: mirror:gnome:sources/gtk+/2.6/gtk+-%v.tar.bz2 Source-MD5: 520090ef291e35ba93397060e20f5025 PatchScript: sed -e 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1 NoSetLDFLAGS: true SetCPPFLAGS: -DX_LOCALE SetCFLAGS: -O3 -funroll-loops -fstrict-aliasing -pipe SetLIBRARY_PATH: %p/lib ConfigureParams: --mandir=%p/share/man --enable-static --disable-shm --disable-gtk-doc --disable-dependency-tracking InstallScript: << make install DESTDIR=%d install -d -m 755 %i/sbin %i/etc/gtk-2.0 install -c -m 755 update-gdk-pixbuf-loaders %i/sbin/ install -c -m 755 update-gtk-immodules %i/sbin/ << DocFiles: AUTHORS COPYING ChangeLog NEWS README SplitOff: << Package: %N-shlibs Depends: << atk1-shlibs (>= 1.6.0-1), libgettext3-shlibs, glib2-shlibs (>= 2.12.0-1), libiconv, libjpeg-shlibs, libpng3-shlibs (>= 1.2.5-4), libtiff-shlibs, pango1-xft2-shlibs (>= 1.8.0-1), x11, xdg-base << Replaces: gtk2-engines (<< 2.6.3-1) DocFiles: AUTHORS COPYING ChangeLog NEWS README RuntimeVars: GDK_USE_XFT: 1 Files: << lib/lib*-2.0.*.dylib lib/gtk-2.0/2.4.0 << Shlibs: << %p/lib/libgdk-x11-2.0.0.dylib 601.0.0 %n (>= 2.6.7-1) %p/lib/libgdk_pixbuf-2.0.0.dylib 601.0.0 %n (>= 2.6.7-1) %p/lib/libgdk_pixbuf_xlib-2.0.0.dylib 601.0.0 %n (>= 2.6.7-1) %p/lib/libgtk-x11-2.0.0.dylib 601.0.0 %n (>= 2.6.7-1) << << SplitOff2: << Package: %N-dev Depends: %N-shlibs (= %v-%r), %N (= %v-%r) Replaces: %N (<< 2.6.7-3) Conflicts: gtk+ (<< 1.2.10-12) BuildDependsOnly: True DocFiles: AUTHORS COPYING ChangeLog NEWS README Files: << include lib/gtk-2.0 lib/lib* lib/pkgconfig/gdk-2.0.pc lib/pkgconfig/gdk-pixbuf-2.0.pc lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc lib/pkgconfig/gdk-x11-2.0.pc lib/pkgconfig/gtk+-2.0.pc lib/pkgconfig/gtk+-x11-2.0.pc share/aclocal share/gtk-2.0 share/gtk-doc << DescPackaging: << Provides a .pc so other pkgs can use pkgconfig to compile against us Any package which BuildDepends on this one must also BuildDepend on: atk1 (>= 1.6.0-1), glib2-dev (>= 2.12.0-1), pango1-xft2-dev (>= 1.8.0-1) << << PostInstScript: << case "$1" in configure) update-gdk-pixbuf-loaders update-gtk-immodules ;; esac << PostRmScript: << case "$1" in purge) rm -f %p/etc/gtk-2.0/gdk-pixbuf.loaders rm -f %p/etc/gtk-2.0/gtk.immodules rmdir %p/etc/gtk-2.0 || true ;; esac << Homepage: http://www.gtk.org DescDetail: << The X libraries originally written for the GIMP, which are now used by several other programs as well. << DescPackaging: << Packages which install gdk-pixbuf loader(s) should call update-gdk- pixbuf-loaders in their PostInstScript and PostRmScript to update the gdk-pixbuf.loaders file. Packages which install gtk immodule(s) should call update-gtk-immodules in their PostInstScript and PostRmScript to update the gtk.immodules file. Older versions of gtk2-engines had a pixbuf theme, but now gtk+2 has that itself (and gtk2-engines has dropped or renamed it). Sometimes not all .pc files get created. I suspect this is due to a missing BuildDepends or missing files due to Installer.app breakage, but don't know what. So all .pc are listed explicitly in Files so that if any are not built, the pkg will not build. Better to crash and force a diagnosis than to build a wrong package silently, which could lead to pkgs that use these .pc to build incorrectly (possibly silently also). << DescPort: << LDFLAGS and LIBS are modified for detecting freetype2 and xft. gtk+2-dev conflicts with gtk+ (<< 1.2.11), because it has symbolic link which intercepts include files of the package. <<