#!/bin/sh
#
# Copyright 2005 Dagmar d'Surreal <rivyqntzne@tznvy.pbz>
# Available under the terms of the GNU GPL.
#

NAME="pwlib"
VERSION="1.8.7"
REVISION="1"

PKG_SOURCEURL='http://www.gnomemeeting.org/admin/downloads/latest/sources/sources/$NAME-$VERSION.tar.gz'
PKG_PATCH[0]="pwlib-1.8.0-libname.diff"
PKG_PATCH[1]="pwlib-1.8.0-fix-libpt.so-symlink.diff"

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

PKG_DOCFILES="$PKG_DOCFILES History.txt ReadMe.txt ReadMe_QOS.txt mpl-1.0.htm"

# These don't seem to impress it much, but we try our best.
cflags
cxxflags
prepare

applypatch 0 0
applypatch 1 0 

analyzesource
configure --enable-plugins --enable-alsa
make
spewdo "createdir $PKG_STAGEROOT$PKG_PREFIX/bin"
makeinstall
cd $PKG_STAGEROOT$PKG_PREFIX/bin
spewdo "ln -s ../usr/share/pwlib/make/ptlib-config ."
spewdo "strip -g $PKG_STAGEROOT$PKG_PREFIX/lib/*"
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
