wok annotate ptlib/receipt @ rev 24899

updated mediawiki (1.34.1 -> 1.37.2)
author Hans-G?nter Theisgen
date Sat Apr 09 09:41:00 2022 +0100 (2022-04-09)
parents 78bc4b109dd6
children
rev   line source
pascal@1419 1 # SliTaz package receipt.
pascal@1419 2
pascal@1419 3 PACKAGE="ptlib"
Hans-G?nter@21720 4 VERSION="2.10.11"
pascal@1419 5 CATEGORY="network"
pascal@1419 6 SHORT_DESC="Portable Tools Library for unix and windows."
pascal@1419 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15376 8 LICENSE="MPL"
pascal@20669 9 WEB_SITE="https://www.ekiga.org/"
Hans-G?nter@21720 10
Hans-G?nter@21720 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@5465 12 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@15376 13
Hans-G?nter@21720 14 DEPENDS="alsa-lib cyrus-sasl expat libdv libraw1394 libsdl \
Hans-G?nter@21720 15 libunixODBC openssl"
Hans-G?nter@21720 16 BUILD_DEPENDS="alsa-lib-dev cyrus-sasl-dev flex openssl-dev \
Hans-G?nter@21720 17 pkg-config zlib-dev"
pascal@1419 18
pascal@24083 19 current_version()
pascal@24083 20 {
pascal@24083 21 local base=http://ftp.gnome.org/pub/gnome/sources/$PACKAGE
pascal@24083 22 wget -O - $base/$(wget -O - $base 2>/dev/null | \
pascal@24083 23 sed '/href=.[0-9]/!d;s|.*href=.||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
pascal@24083 24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24083 25 }
pascal@24083 26
pascal@1419 27 # Rules to configure and make the package.
pascal@1419 28 compile_rules()
pascal@1419 29 {
pascal@23890 30 patch -p1 < $stuff/ptlib-2.10.10-mga-bison-parameter.patch
pascal@23890 31 sed -i 's|.(Q_LD).*|echo &\n\t&|' make/lib.mak
Hans-G?nter@21720 32 ./configure \
Hans-G?nter@21720 33 --prefix=/usr \
Hans-G?nter@21720 34 --bindir=/bin \
Hans-G?nter@21720 35 --libexecdir=/usr/bin \
Hans-G?nter@21720 36 --mandir=/usr/share/man \
Hans-G?nter@21720 37 $CONFIGURE_ARGS &&
pascal@1533 38 make &&
pascal@15376 39 make DESTDIR=$DESTDIR install
pascal@1419 40 }
pascal@1419 41
pascal@1419 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1419 43 genpkg_rules()
pascal@1419 44 {
pascal@1419 45 mkdir -p $fs/usr
Hans-G?nter@21720 46
Hans-G?nter@21720 47 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21720 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21720 49 cp -a $install/usr/share $fs/usr
pascal@1419 50 }