wok-next view ptlib/receipt @ rev 20764

Up cookutils (1064), gifsicle (1.91), zopfli (1.0.2)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 00:13:23 2018 +0300 (2018-06-06)
parents 188b011e073a
children a3c581bf52b8
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ptlib"
4 VERSION="2.10.11"
5 CATEGORY="network"
6 SHORT_DESC="Portable Tools Library for UNIX and Windows"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL"
9 WEB_SITE="http://www.ekiga.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/ptlib.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="flex openssl-dev cyrus-sasl-dev zlib-dev alsa-lib-dev expat-dev"
16 SPLIT="ptlib-dev"
18 compile_rules() {
19 sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
20 src/ptclib/podbc.cxx
21 sed -i '/\/ioctl.h/a#include <sys/uio.h>' src/ptlib/unix/channel.cxx
23 ./configure \
24 --disable-odbc \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install || return 1
29 chmod 755 $install/usr/lib/libpt.so.$VERSION
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 ptlib)
35 copy @std
36 DEPENDS="alsa-lib expat libsasl openssl"
37 ;;
38 *-dev)
39 copy @dev
40 ;;
41 esac
42 }