#!/bin/bash
#
#  Install script for gtk
#  Builds and installs the shared library components and the config
#   files of the library
#

CONFIGOPTIONS="--enable-debug=no --disable-static --disable-nls --with-glib-prefix=\"$TOOLS\" --disable-glibtest --sysconfdir=/etc --prefix=/usr --x-includes=\"$TOOLS\"/usr/X11R6/include --x-libraries=\"$TOOLS\"/usr/X11R6/lib $TARGETARCH"
COMPILEOPTIONS=

ml_check_for_package X
ml_required_package glib 1.2.10

function ml_installlocal() {
        $JMAKE -C $PACKAGE/$PACKAGE prefix="$TOOLS" install-strip
	for i in gdk gtk ; do
		rm -rf $TOOLS/include/$i
		ln -s $TOOLS/include/gtk-1.2/$i $TOOLS/include/$i
	done
}

function ml_installroot() {
        for i in gdk-1.2 gtk-1.2 ; do
            cp -af $TOOLS/lib/lib${i}.so* $ROOT/usr/lib
        done
}

