wok-next view dahdi-tools/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 06f5cd437bd1
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dahdi-tools"
4 VERSION="2.11.1"
5 CATEGORY="network"
6 SHORT_DESC="Digium Asterisk Hardware Device Interface userland tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.asterisk.org/"
11 WGET_URL="http://downloads.asterisk.org/pub/telephony/$PACKAGE/releases/$TARBALL"
12 CONFIG_FILES="/etc/dahdi/"
14 DEPENDS="libusb-compat newt libpri dahdi-perl"
15 BUILD_DEPENDS="dahdi-linux-dev ppp-dev newt-dev libpri-dev gtk+-dev file"
16 SPLIT="dahdi-tools dahdi-dev dahdi-man dahdi-perl dahdi-ppp"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 compile_rules()
20 {
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --exec-prefix=/usr \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS 2>&1 | grep -v conftest &&
27 make &&
28 make -C ppp &&
29 make DESTDIR=$DESTDIR install &&
30 make DESTDIR=$DESTDIR -C ppp install &&
31 make DESTDIR=$DESTDIR config
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 dahdi-tools)
39 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
40 cp -a $install/etc/dahdi $fs/etc
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/lib/lib*.so* $fs/usr/lib
43 cp -a $install/usr/share/dahdi $fs/usr/share
44 ;;
45 dahdi-dev)
46 CAT="development|Digium Asterisk Hardware Device Interface development files."
47 PROVIDE="zaptel-dev"
48 DEPENDS="dahdi-linux-dev"
49 mkdir -p $fs/usr/lib
50 cp -a $install/usr/lib/lib*.a $fs/usr/lib
51 cp -a $install/usr/include $fs/usr
52 ;;
53 dahdi-man)
54 CAT="network|Digium Asterisk Hardware Device Interface man pages."
55 mkdir -p $fs/usr/share
56 cp -a $install/usr/share/man $fs/usr/share
57 ;;
58 dahdi-perl)
59 CAT="development|Digium Asterisk Hardware Device Interface PERL modules."
60 PROVIDE="zaptel-perl"
61 DEPENDS="perl"
62 mkdir -p $fs/usr/lib
63 cp -a $install/usr/lib/perl* $fs/usr/lib
64 ;;
65 dahdi-ppp)
66 CAT="network|Digium Asterisk Hardware Device Interface PPP plugin."
67 DEPENDS="ppp"
68 mkdir -p $fs/usr/lib
69 cp -a $install/usr/lib/pppd $fs/usr/lib
70 ;;
71 esac
72 }