NAME=libgnomeprint
VERSION=( 2.12.1 0.2.2 2.12.1 )
BUILD=1tukaani


SOURCE=( http://ftp.gnome.org/pub/gnome/sources/$NAME/2.12/$NAME-$VERSION.tar.bz2 
	 http://ftp.gnome.org/pub/gnome/sources/libgnomecups/0.2/libgnomecups-${VERSION[1]}.tar.bz2
	 http://ftp.gnome.org/pub/gnome/sources/libgnomeprintui/2.12/libgnomeprintui-${VERSION[2]}.tar.bz2 )

build() {

  _explode_all
  _cflags -O2

  cd $TMP/libgnomecups-${VERSION[1]}
  ./configure \
    --prefix=$GNOMEPREFIX \
    --disable-static \
    $CONFIGURE_TRIPLET
  make -j $NUMOBJS
  make DESTDIR=$PKG install
  
  _doc 0 libgnomecups-${VERSION[1]} AUTHORS COPYING ChangeLog INSTALL NEWS README
  
  _chfix
  _chgrp_bin
  _tmp_pkg 0
  
  cd "$TMP/$NAME-$VERSION" 
  ./configure \
    --prefix=$GNOMEPREFIX \
    --disable-static \
    --disable-gtk-doc \
    $CONFIGURE_TRIPLET
  make -j $NUMOBJS
  make DESTDIR="$PKG" install

  _doc 0 "$NAME-$VERSION" AUTHORS BUGS COPYING HACKING MAINTAINERS NEWS README
  
  _chfix
  _chgrp_bin
  _tmp_pkg 0
  
  cd $TMP/libgnomeprintui-${VERSION[2]}
  ./configure \
    --prefix=$GNOMEPREFIX \
    --disable-static \
    $CONFIGURE_TRIPLET
  make -j $NUMOBJS
  make DESTDIR=$PKG install
			  
  _doc 0 libgnomeprintui-${VERSION[2]} AUTHORS BUGS COPYIN* HACKING MAINTAINERS NEWS README
  
  _chfix
  _chgrp_bin
}  

