Difference between revisions of "Gtk2"
From CBLFS
Jump to navigationJump to searchJjdicharry (talk | contribs) (→Contents: removed gdk_pixbuf binaries and libraries from the list because they are now located in the gdk-pixbuf package.) |
|||
(32 intermediate revisions by 11 users not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | | + | | http://ftp.gnome.org/pub/gnome/sources/gtk+/{{Gtk2-Version2}}/gtk+-{{Gtk2-Version}}.tar.bz2 |
|- | |- | ||
!Required Patch (For Multilib): | !Required Patch (For Multilib): | ||
Line 8: | Line 8: | ||
|} | |} | ||
− | - | + | {{Package-Introduction|The Gtk2 package contains version 2 of the GTK+ libraries. GTK+ is a multi-platform toolkit for creating graphical user interfaces. It is the GUI toolkit that [[Gnome]] uses. The current version of [[Gnome]] - [[Gnome]] 2 - is based on Gtk2.|http://www.gtk.org/}} |
− | |||
− | |||
− | |||
− | The | ||
== Dependencies == | == Dependencies == | ||
=== Required === | === Required === | ||
− | |||
* [[Cairo]] | * [[Cairo]] | ||
* [[Pango]] | * [[Pango]] | ||
* [[ATK]] | * [[ATK]] | ||
− | + | * [[Gdk-Pixbuf]] | |
− | + | ||
− | * [[ | ||
− | |||
=== Optional === | === Optional === | ||
* [[Gtk-Doc]] | * [[Gtk-Doc]] | ||
* [[DocBook Utils]] | * [[DocBook Utils]] | ||
+ | * [[CUPS]] | ||
+ | |||
+ | == Configuration Information == | ||
+ | |||
+ | {|style="text-align: left" | ||
+ | |- | ||
+ | |<i>--disable-cups</i>: disable [[CUPS]] print backend. | ||
+ | |- | ||
+ | |<i>--enable-gtk-doc</i> use [[Gtk-Doc]] to build documentation. | ||
+ | |- | ||
+ | |<i>--enable-gtk-doc-html</i>: use [[Gtk-Doc]] to build documentation in html format. | ||
+ | |- | ||
+ | |<i>--enable-gtk-doc-pdf</i>: use [[Gtk-Doc]] to build documentation in pdf format. | ||
+ | |- | ||
+ | |<i>--with-xinput=yes</i> support XInput, useful for graphic tablets that make use of it. Without it, tools like GIMP will not be able to use the advanced features of the tablet, i.e. pressure, tilt, rotation. | ||
+ | |} | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 39: | Line 48: | ||
make install && | make install && | ||
− | install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}{faq,tutorial} && | + | install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}/{faq,tutorial} && |
cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && | cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && | ||
cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial | ||
Line 50: | Line 59: | ||
patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | ||
− | sed -i "s/BUILDENV/32/" | + | sed -i "s/BUILDENV/32/" \ |
− | |||
modules/input/Makefile.am modules/input/Makefile.in \ | modules/input/Makefile.am modules/input/Makefile.in \ | ||
gtk/gtkrc.c | gtk/gtkrc.c | ||
Line 57: | Line 65: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILD32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 \ | + | CC="gcc ${BUILD32}" USE_ARCH=32 \ |
− | + | PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ | |
+ | ./configure --prefix=/usr --sysconfdir=/etc && | ||
make | make | ||
Install the package | Install the package | ||
− | make install | + | make install && |
+ | mv -v /usr/bin/gtk-query-immodules-2.0{,-32} | ||
=== N32 === | === N32 === | ||
Line 70: | Line 80: | ||
patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | ||
− | sed -i "s/BUILDENV/n32/" | + | sed -i "s/BUILDENV/n32/" \ |
− | |||
modules/input/Makefile.am modules/input/Makefile.in \ | modules/input/Makefile.am modules/input/Makefile.in \ | ||
gtk/gtkrc.c | gtk/gtkrc.c | ||
Line 77: | Line 86: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILDN32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATHN32 \ | + | CC="gcc ${BUILDN32}" USE_ARCH=n32 \ |
− | + | PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ | |
+ | ./configure --prefix=/usr --libdir=/usr/lib32 \ | ||
--sysconfdir=/etc && | --sysconfdir=/etc && | ||
make | make | ||
Line 84: | Line 94: | ||
Install the package | Install the package | ||
− | make install | + | make install && |
+ | mv -v /usr/bin/gtk-query-immodules-2.0{,-n32} | ||
=== 64Bit === | === 64Bit === | ||
Line 91: | Line 102: | ||
patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && | ||
− | sed -i "s/BUILDENV/64/" | + | sed -i "s/BUILDENV/64/" \ |
− | |||
modules/input/Makefile.am modules/input/Makefile.in \ | modules/input/Makefile.am modules/input/Makefile.in \ | ||
gtk/gtkrc.c | gtk/gtkrc.c | ||
Line 98: | Line 108: | ||
Compile the package: | Compile the package: | ||
− | CC="gcc ${BUILD64}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \ | + | CC="gcc ${BUILD64}" USE_ARCH=64 \ |
− | + | PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ | |
+ | ./configure --prefix=/usr --libdir=/usr/lib64 \ | ||
--sysconfdir=/etc && | --sysconfdir=/etc && | ||
make | make | ||
Line 106: | Line 117: | ||
make install && | make install && | ||
+ | mv -v /usr/bin/gtk-query-immodules-2.0{,-64} && | ||
+ | ln -sfv multiarch_wrapper /usr/bin/gtk-query-immodules-2.0 && | ||
install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}/{faq,tutorial} && | install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}/{faq,tutorial} && | ||
cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && | cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && | ||
cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial | ||
− | ==Contents== | + | == Contents == |
− | + | {|style="text-align: left" | |
− | + | |-valign="top" | |
− | + | !Installed Directories: | |
+ | |/usr/lib/gtk-2.0/{{Gtk2-Version2}}.0/loaders, /usr/lib/gtk-2.0/{{Gtk2-Version2}}.0/immodules, /usr/lib64/gtk-2.0/{{Gtk2-Version2}}.0/printbackends, /usr/include/gtk-2.0/{gdk-pixbuf,gdk,gtk}, /usr/include/gtk-unix-print-2.0, /usr/include/gtk-unix-print-2.0/gtk, /usr/include/gtk-2.0/gdk-pixbuf-xlib, /usr/share/themes/Raleigh/gtk-2.0, /usr/share/themes/Default/gtk-2.0-key, /usr/share/themes/Emacs/gtk-2.0-key, /usr/share/gtk-2.0/demo | ||
+ | |-valign="top" | ||
+ | !Installed Programs: | ||
+ | |gtk-query-immodules-2.0, gtk-update-icon-cache, gtk-demo | ||
+ | |-valign="top" | ||
+ | !Installed Libraries: | ||
+ | |libgdk-x11-2.0.{so,la}, libgtk-x11-2.0.{so,la}, im-xim.{so,la}, im-am-et.{so,la}, im-cedilla.{so,la}, im-cyrillic-translit.{so,la}, im-inuktitut.{so,la}, im-ipa.{so,la}, im-thai-broken.{so,la}, im-ti-er.{so,la}, im-ti-et.{so,la}, im-viqr.{so,la}, libpixmap.{so,la}, libprintbackend-file.{so,la}, libprintbackend-lpr.{so,la}, libgdk_pixbuf_xlib-2.0.{so,la} | ||
+ | |} | ||
− | + | [[Category:X Libs]] |
Latest revision as of 06:55, 25 April 2011
Download Source: | http://ftp.gnome.org/pub/gnome/sources/gtk+/2.23/gtk+-2.23.2.tar.bz2 |
---|---|
Required Patch (For Multilib): | http://svn.cross-lfs.org/svn/repos/patches/gtk+/gtk+-2.23.2-multilib-1.patch |
Contents
Introduction to Gtk2
The Gtk2 package contains version 2 of the GTK+ libraries. GTK+ is a multi-platform toolkit for creating graphical user interfaces. It is the GUI toolkit that Gnome uses. The current version of Gnome - Gnome 2 - is based on Gtk2.
Project Homepage: http://www.gtk.org/
Dependencies
Required
Optional
Configuration Information
--disable-cups: disable CUPS print backend. |
--enable-gtk-doc use Gtk-Doc to build documentation. |
--enable-gtk-doc-html: use Gtk-Doc to build documentation in html format. |
--enable-gtk-doc-pdf: use Gtk-Doc to build documentation in pdf format. |
--with-xinput=yes support XInput, useful for graphic tablets that make use of it. Without it, tools like GIMP will not be able to use the advanced features of the tablet, i.e. pressure, tilt, rotation. |
Non-Multilib
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc && make
Install the package
make install && install -v -m755 -d /usr/share/doc/gtk+-2.23.2/{faq,tutorial} && cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.23.2/faq && cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-2.23.2/tutorial
Multilib
32Bit
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-32:
patch -Np1 -i ../gtk+-2.23.2-multilib-1.patch && sed -i "s/BUILDENV/32/" \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILD32}" USE_ARCH=32 \ PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ ./configure --prefix=/usr --sysconfdir=/etc && make
Install the package
make install && mv -v /usr/bin/gtk-query-immodules-2.0{,-32}
N32
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-n32:
patch -Np1 -i ../gtk+-2.23.2-multilib-1.patch && sed -i "s/BUILDENV/n32/" \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILDN32}" USE_ARCH=n32 \ PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ ./configure --prefix=/usr --libdir=/usr/lib32 \ --sysconfdir=/etc && make
Install the package
make install && mv -v /usr/bin/gtk-query-immodules-2.0{,-n32}
64Bit
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-64:
patch -Np1 -i ../gtk+-2.23.2-multilib-1.patch && sed -i "s/BUILDENV/64/" \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILD64}" USE_ARCH=64 \ PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ ./configure --prefix=/usr --libdir=/usr/lib64 \ --sysconfdir=/etc && make
Install the package
make install && mv -v /usr/bin/gtk-query-immodules-2.0{,-64} && ln -sfv multiarch_wrapper /usr/bin/gtk-query-immodules-2.0 && install -v -m755 -d /usr/share/doc/gtk+-2.23.2/{faq,tutorial} && cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.23.2/faq && cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-2.23.2/tutorial
Contents
Installed Directories: | /usr/lib/gtk-2.0/2.23.0/loaders, /usr/lib/gtk-2.0/2.23.0/immodules, /usr/lib64/gtk-2.0/2.23.0/printbackends, /usr/include/gtk-2.0/{gdk-pixbuf,gdk,gtk}, /usr/include/gtk-unix-print-2.0, /usr/include/gtk-unix-print-2.0/gtk, /usr/include/gtk-2.0/gdk-pixbuf-xlib, /usr/share/themes/Raleigh/gtk-2.0, /usr/share/themes/Default/gtk-2.0-key, /usr/share/themes/Emacs/gtk-2.0-key, /usr/share/gtk-2.0/demo |
---|---|
Installed Programs: | gtk-query-immodules-2.0, gtk-update-icon-cache, gtk-demo |
Installed Libraries: | libgdk-x11-2.0.{so,la}, libgtk-x11-2.0.{so,la}, im-xim.{so,la}, im-am-et.{so,la}, im-cedilla.{so,la}, im-cyrillic-translit.{so,la}, im-inuktitut.{so,la}, im-ipa.{so,la}, im-thai-broken.{so,la}, im-ti-er.{so,la}, im-ti-et.{so,la}, im-viqr.{so,la}, libpixmap.{so,la}, libprintbackend-file.{so,la}, libprintbackend-lpr.{so,la}, libgdk_pixbuf_xlib-2.0.{so,la} |