Difference between revisions of "Gtk2"
From CBLFS
Jump to navigationJump to search (I added the package description from BLFS.) |
|||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | ftp://ftp.gtk.org/pub/gtk/ | + | | ftp://ftp.gtk.org/pub/gtk/v{{Gtk2-Version2}}/gtk+-{{Gtk2-Version}}.tar.bz2 |
|- | |- | ||
!Required Patch (For Multilib): | !Required Patch (For Multilib): | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/gtk+/gtk+- | + | | http://svn.cross-lfs.org/svn/repos/patches/gtk+/gtk+-{{Gtk2-Version}}-multilib-1.patch |
|} | |} | ||
Line 39: | Line 39: | ||
make install && | make install && | ||
− | install -v -m755 -d /usr/share/doc/gtk+- | + | install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}{faq,tutorial} && |
− | cp -v -R docs/faq/html/* /usr/share/doc/gtk+- | + | cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && |
− | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+- | + | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial |
== Multilib == | == Multilib == | ||
Line 49: | Line 49: | ||
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-32: | The following commands make Gtk put it's configuration information in /etc/gtk-2.0-32: | ||
− | patch -Np1 -i ../gtk+- | + | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && |
sed -i "s/BUILDENV/32/" gdk-pixbuf/gdk-pixbuf-io.c \ | sed -i "s/BUILDENV/32/" gdk-pixbuf/gdk-pixbuf-io.c \ | ||
gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | ||
Line 69: | Line 69: | ||
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-n32: | The following commands make Gtk put it's configuration information in /etc/gtk-2.0-n32: | ||
− | patch -Np1 -i ../gtk+- | + | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && |
sed -i "s/BUILDENV/n32/" gdk-pixbuf/gdk-pixbuf-io.c \ | sed -i "s/BUILDENV/n32/" gdk-pixbuf/gdk-pixbuf-io.c \ | ||
gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | ||
Line 90: | Line 90: | ||
The following commands make Gtk put it's configuration information in /etc/gtk-2.0-64: | The following commands make Gtk put it's configuration information in /etc/gtk-2.0-64: | ||
− | patch -Np1 -i ../gtk+- | + | patch -Np1 -i ../gtk+-{{Gtk2-Version}}-multilib-1.patch && |
sed -i "s/BUILDENV/64/" gdk-pixbuf/gdk-pixbuf-io.c \ | sed -i "s/BUILDENV/64/" gdk-pixbuf/gdk-pixbuf-io.c \ | ||
gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ | ||
Line 106: | Line 106: | ||
make install && | make install && | ||
− | install -v -m755 -d /usr/share/doc/gtk+- | + | install -v -m755 -d /usr/share/doc/gtk+-{{Gtk2-Version}}/{faq,tutorial} && |
− | cp -v -R docs/faq/html/* /usr/share/doc/gtk+- | + | cp -v -R docs/faq/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/faq && |
− | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+- | + | cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-{{Gtk2-Version}}/tutorial |
==Contents== | ==Contents== |
Revision as of 11:27, 17 December 2006
Download Source: | ftp://ftp.gtk.org/pub/gtk/v2.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 Gtk+ 2
The GTK+ package contains GTK+ libraries. These are useful for creating graphical user interfaces for applications.
Dependencies
Required
Reccomended
Optional
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/" gdk-pixbuf/gdk-pixbuf-io.c \ gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILD32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 \ ./configure --prefix=/usr --sysconfdir=/etc && make
Install the package
make install
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/" gdk-pixbuf/gdk-pixbuf-io.c \ gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATHN32 \ ./configure --prefix=/usr --libdir=/usr/lib32 \ --sysconfdir=/etc && make
Install the package
make install
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/" gdk-pixbuf/gdk-pixbuf-io.c \ gdk-pixbuf/Makefile.am gdk-pixbuf/Makefile.in \ modules/input/Makefile.am modules/input/Makefile.in \ gtk/gtkrc.c
Compile the package:
CC="gcc ${BUILD64}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \ ./configure --prefix=/usr --libdir=/usr/lib64 \ --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
Contents
- Installed programs: gdk-pixbuf-csource, gdk-pixbuf-query-loaders, gtk-query-immodules-2.0, gtk-update-icon-cache, gtk-demo
- Installed libraries: libgdk_pixbuf-2.0.{so,la}, libpixbufloader-{png,jpeg,gif,ico,ani,ras,xpm,tiff,pnm,bmp,wbmp,xbm,tga,pcx}.{so,la}, 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}
- Installed directories: /usr/lib/gtk-2.0/2.10.4/loaders, /usr/lib/gtk-2.0/2.10.4/immodules, /usr/lib64/gtk-2.0/2.10.4/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
In addition to the above files, GTK+ also installs various *.c and image files used in the demos. A more complete list of files and install directories can be found here [1].