#!/bin/sh

. config/options

$SCRIPTS/install glib
$SCRIPTS/install cairo
$SCRIPTS/install freetype
$SCRIPTS/install fontconfig
$SCRIPTS/install libX11
$SCRIPTS/install libXft

MODULE_VERSION=`pkg-config pango --variable=pango_module_version`
mkdir -p $INSTALL/usr/lib
cp -PR $PKG_BUILD/pango/.libs/libpango*.so* $INSTALL/usr/lib
rm -rf $INSTALL/usr/lib/libpango*.so*T

mkdir -p $INSTALL/usr/lib/pango/$MODULE_VERSION/modules
cp -PR $PKG_BUILD/modules/*/.libs/*.so \
    $INSTALL/usr/lib/pango/$MODULE_VERSION/modules

mkdir -p $INSTALL/usr/bin
cp -PR $PKG_BUILD/pango/.libs/pango-querymodules $INSTALL/usr/bin

mkdir -p $INSTALL/etc/pango
cp -PR $PKG_BUILD/$1/pangox.aliases $INSTALL/etc/pango
