wok-next view ptlib/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | 867395afbd02 |
children | d08d2d235af0 |
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 cyrus-sasl expat libsdl libdv libraw1394 \
37 libunixODBC openssl"
38 ;;
39 *-dev)
40 copy @dev
41 ;;
42 esac
43 }