wok-next annotate ptlib/receipt @ rev 21674

updated geoip (1.4.8 -> 1.6.12)
author Hans-G?nter Theisgen
date Mon Jun 29 10:52:14 2020 +0100 (2020-06-29)
parents f48456621a9d
children
rev   line source
pascal@20091 1 # SliTaz package receipt v2.
pascal@1419 2
pascal@1419 3 PACKAGE="ptlib"
pascal@20091 4 VERSION="2.10.11"
pascal@1419 5 CATEGORY="network"
al@20648 6 SHORT_DESC="Portable Tools Library for UNIX and Windows"
pascal@1419 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15376 8 LICENSE="MPL"
al@20906 9 WEB_SITE="https://www.ekiga.org/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/ptlib.html"
al@20512 11
pascal@20091 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20512 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@15376 14
al@20512 15 BUILD_DEPENDS="flex openssl-dev cyrus-sasl-dev zlib-dev alsa-lib-dev expat-dev"
al@21020 16 SPLIT="$PACKAGE-dev"
pascal@1419 17
al@20512 18 compile_rules() {
al@20512 19 sed -i "s/sbin\.Right(1) == '\\\\0')/strlen(sbin\.Right(1)) == 0)/" \
al@20512 20 src/ptclib/podbc.cxx
al@20512 21 sed -i '/\/ioctl.h/a#include <sys/uio.h>' src/ptlib/unix/channel.cxx
al@20512 22
al@20512 23 ./configure \
al@20512 24 --disable-odbc \
al@20512 25 $CONFIGURE_ARGS &&
pascal@1533 26 make &&
al@21020 27 make DESTDIR=$install install || return 1
al@20512 28
al@20512 29 chmod 755 $install/usr/lib/libpt.so.$VERSION
pascal@1419 30 }
pascal@1419 31
al@20512 32 genpkg_rules() {
pascal@20091 33 case $PACKAGE in
al@20512 34 ptlib)
al@20512 35 copy @std
al@20648 36 DEPENDS="alsa-lib expat libsasl openssl"
al@20512 37 ;;
al@20512 38 *-dev)
al@20512 39 copy @dev
al@20512 40 ;;
pascal@20091 41 esac
pascal@1419 42 }