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

NAME="ptlib"
VERSION="2.6.5"
REVISION="1"

PKG_SOURCEURL='http://download.gnome.org/sources/$NAME/$VER_MAJ.$VER_MIN/$NAME-$VERSION.tar.gz'

. $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
analyzesource
# You may need 2.6 kernel headers installed for v4l2 support.
configure --enable-plugins --enable-alsa --enable-v4l2
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$LIBSUFFIX/*"
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
