# SliTaz package receipt. PACKAGE="ptlib" VERSION="2.10.11" CATEGORY="network" SHORT_DESC="Portable Tools Library for unix and windows." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MPL" WEB_SITE="https://www.ekiga.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="alsa-lib cyrus-sasl expat libdv libraw1394 libsdl \ libunixODBC openssl" BUILD_DEPENDS="alsa-lib-dev cyrus-sasl-dev flex openssl-dev \ pkg-config zlib-dev" current_version() { local base=http://ftp.gnome.org/pub/gnome/sources/$PACKAGE wget -O - $base/$(wget -O - $base 2>/dev/null | \ sed '/href=.[0-9]/!d;s|.*href=.||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { patch -p1 < $stuff/ptlib-2.10.10-mga-bison-parameter.patch sed -i 's|.(Q_LD).*|echo &\n\t&|' make/lib.mak ./configure \ --prefix=/usr \ --bindir=/bin \ --libexecdir=/usr/bin \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/share $fs/usr }