# gtk20/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] # 1. It's inadvisable to rebuild "gtk20" while X is running. X doesn't # use "gtk20" directly, but numerous X applications do use "gtk20", # and rebuilding "gtk20" may cause active instances of the applica- # tions to abort. #--------------------------------------------------------------------- # 2. Presently, the "configure" section of this file should set: # # --enable-debug=yes # If this isn't done, Mozilla (tm)-based browsers may crash at run- # time. The problem occurs if a user presses the Insert key while an # HTML "textarea" has keyboard focus. As of 2011, this was a well- # known problem; it occurred for multiple Linux distros. However, the # exact cause wasn't clear. # Note: Although the setting in question causes "gtk+" to be compiled # in "debug" mode, it shouldn't increase the size of the package sig- # nificantly, because the "build" procedure "strips" the files pro- # duced. #--------------------------------------------------------------------- # 3. A few of the packages listed as "gtk20" dependencies aren't actu- # ally needed by "gtk20" ("gtk12" is one example). The packages in # question are listed as dependencies to simplify things at higher le- # vels. #--------------------------------------------------------------------- [buildtimes] 00.07 hours (or 004.10 minutes) - HP Pavilion dv8 8GB RAM 00.08 hours (or 004.75 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.12 hours (or 007.10 minutes) - HP EliteBook 8560w 32GB RAM 00.13 hours (or 007.68 minutes) - ThinkPad W530 i7 4x2 32GB RAM 00.13 hours (or 007.88 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.17 hours (or 010.47 minutes) - Toshiba Satellite C655 E-300 CPU 4GB RAM 00.20 hours (or 012.12 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM #--------------------------------------------------------------------- [settings] build = default fortran = disabled license = GNU Library General Public License, version 2 (June 1991) makejail = yes nls = disabled proddir = $PRODTREE/gtkcore purge = no shareddir = yes tmpsize = 166M setpaths = gtkcore jasper llvmgcc xorg #--------------------------------------------------------------------- [depends] actools cairo cups-base dbus dbus-base dbus-glib dbus-python2 dbus-python3 expat fontconfig gawk gdkpixbuf20 glib12 # See notes near start of this file glib20:strict grep gsetschema:strict gtkatk gtkdoc jasper jpeg libidl libpng llvmgcc pango perl pkgconf pycups sed tiff xorg #--------------------------------------------------------------------- [configure] ETCDIR=$PKGDIR_PROD/etc MANBASE=$PKGDIR_PROD/man mkdir -p $ETCDIR $MANBASE for base in $PKGDIR_PROD /usr/local do rm -fr $base/{etc,include,lib,share}/gtk-2.* rm -fr $base/share/themes/*/gtk-2.* rm -fr $base/lib/libgtk-* rm -fr $base/lib/pkgconfig/gtk+-{,*-}2.*.pc done # Warning: "Builds" may fail unless "--keeptimes" is used here. for x in GDK GTK do treetextsub --keeptimes \ --pattern=${x}_DISABLE_DEPRECATED \ --newtext=${x}_DISABLE_MASTICATED done echo Running configure script bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --enable-shared=yes \ --enable-static=no \ --mandir=$MANBASE \ --sysconfdir=$ETCDIR echo Patching Makefile sed -e 's|gtk modules demos tests perf|gtk modules perf|' \ -i Makefile #--------------------------------------------------------------------- [postbuild] pushd $PKGDIR_PROD/lib/pkgconfig for x in *.pc do sed -e "/^Requires\.private: @/d" -i $x done popd cd $PKGDIR_PROD/include/gtk-2.0 ln -nsf ../../lib/gtk-2.0/include/gdkconfig.h . fixxorgref #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/gtk+2.0 url_home = http://www.gtk.org/ url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ x/gtk2.html url_tarball = https://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/\ gtk+-2.24.33.tar.xz #--------------------------------------------------------------------- [history] 170505 Updated from 2.24.29 to 2.24.31 180114 Updated to 2.24.32 210125 Updated to 2.24.33