# SliTaz package receipt.

PACKAGE="opal"
VERSION="3.6.6"
CATEGORY="network"
SHORT_DESC="Open Phone Abstraction library."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.ekiga.org/"
WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
DEPENDS="cyrus-sasl expat jpeg libsdl libogg libtheora libunixODBC \
openssl ptlib tiff zlib"
BUILD_DEPENDS="ptlib ptlib-dev openssl-dev"
TAGS="telephony"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --bindir=/bin \
	--libexecdir=/usr/bin --mandir=/usr/share/man \
	$CONFIGURE_ARGS &&
	make $MAKEFLAGS &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/lib $fs/usr
	rm -f $fs/usr/lib/*.a
}