blob: 06ef35cf23ba81144f5eb16122d514684702a29a [file] [log] [blame]
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08001DESCRITOPN = "Utilities for the DAHDI Asterisk Linux kernel drivers"
Holger Hans Peter Freytherf4320dd2012-07-21 23:46:45 +08002DEPENDS = "dahdi-linux libnewt libpcap"
Holger Hans Peter Freyther77821742013-03-16 11:10:54 +01003RDEPENDS_${PN} += "perl perl-module-strict perl-module-file-basename perl-module-config \
Holger Hans Peter Freytherf4320dd2012-07-21 23:46:45 +08004 perl-module-warnings perl-module-getopt perl-module-getopt-std \
5 perl-module-file perl-module-file-glob perl-module-xsloader \
6 perl-module-dynaloader perl-module-carp perl-module-errno"
7
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08008HOMEPAGE = "http://www.asterisk.org"
Holger Hans Peter Freyther39b09a82012-05-30 19:21:39 +08009LICENSE = "GPLv2"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080010
Holger Hans Peter Freytherf4320dd2012-07-21 23:46:45 +080011SRC_URI = "http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-${PV}.tar.gz \
12 file://perl_install.patch "
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080013
Holger Hans Peter Freyther77821742013-03-16 11:10:54 +010014INC_PR="r19"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080015
16LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a \
17 file://LICENSE.LGPL;md5=fb504b67c50331fc78734fed90fb0e09"
18
Holger Hans Peter Freytherf4320dd2012-07-21 23:46:45 +080019FILES_${PN} += "${datadir}/dahdi"
20
21inherit autotools_stage pkgconfig perlnative cpan-base
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080022
23do_configure() {
24 oe_runconf
25}
Holger Hans Peter Freytherf4320dd2012-07-21 23:46:45 +080026
27do_compile() {
28 base_do_compile
29 oe_runmake dahdi_pcap
30}
31
32export DAHDI_PERLLIBDIR="${PERLLIBDIRS}/${@get_perl_version(d)}"
33do_install() {
34 autotools_do_install
35 install -m 755 ${S}/dahdi_pcap ${D}${sbindir}/
36}