build_gtk2(){ # Add /apps/gtk2/lib in 1st line of /etc/ld.so.conf and # run ldconfig . ./libjpeg-turbo-sc.inc || exit 1 . ./libtiff-sc.inc || exit 1 . ./glib2-sc.inc || exit 1 . ./shared-mime-info-sc.inc || exit 1 . ./cairo-sc.inc || exit 1 . ./pango-sc.inc || exit 1 . ./ttf-bitstream-vera-sc.inc || exit 1 . ./hicolor-icon-theme-sc.inc || exit 1 . ./fontconfig-sc.inc || exit 1 . ./atk-sc.inc || exit 1 . ./gdk-pixbuf2-sc.inc || exit 1 . ./libxml2-sc.inc || exit 1 HERE=`pwd` BUILDDEPS="cups-dev.tcz intltool.tcz gettext.tcz perl5.tcz Xorg-7.6-dev.tcz \ compiletc.tcz fontconfig-dev.tcz Xorg-7.6-bin.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:/usr/local/lib:$LD_LIBRARY_PATH" cd "$HERE" echo `pwd` if [ ! -f "$TMPDIR"/libjpeg-turbo ]; then build_libjpeg-turbo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libtiff ]; then build_libtiff "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/ttf-bitstream-vera ]; then build_ttf-bitstream-vera "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libxml2 ]; then build_libxml2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/hicolor-icon-theme ]; then build_hicolor-icon-theme "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gdk-pixbuf2 ]; then build_gdk-pixbuf2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/atk ]; then build_atk "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/cairo ]; then build_cairo "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pango ]; then build_pango "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/shared-mime-info ]; then build_shared-mime-info "$PKGPATH" || exit 1 fi ldconfig tar xvf gtk+-2.24.13.tar.xz || exit 1 cd gtk+-2.24.13 || exit 1 #zcat ../gtk2-gtk+-2.24.x.icon-compat.diff.gz | patch -p1 --verbose || exit 1 #zcat ../gtk2-gtk+-2.24.x.icon-compat.am.diff.gz | patch -p1 --verbose || exit 1 patch -p1 < ../gtk2-xid-collision-debug.patch || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 /apps/gtk2/localbin/gtk-query-immodules-2.0 > /apps/gtk2/etc/gtk-2.0/gtk.immodules cd "$PKGPATH"/share/fonts && ln -s /opt/scm/share/fonts scmfonts ln -s /usr/local/share/fonts sysfonts ############### #edit "$PKGPATH"/etc/fonts/fonts.conf to contain: # /opt/scm/share/fonts # /usr/share/fonts # /usr/local/share/fonts # /usr/lib/X11/fonts # /apps/gtk2/share/fonts ############### cd "$HERE" touch "$TMPDIR"/gtk2 }