Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 1 | DESCRITOPN = "Utilities for the DAHDI Asterisk Linux kernel drivers" |
Holger Hans Peter Freyther | f4320dd | 2012-07-21 23:46:45 +0800 | [diff] [blame] | 2 | DEPENDS = "dahdi-linux libnewt libpcap" |
| 3 | RDEPENDS += "perl perl-module-strict perl-module-file-basename perl-module-config \ |
| 4 | 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 Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 8 | HOMEPAGE = "http://www.asterisk.org" |
Holger Hans Peter Freyther | 39b09a8 | 2012-05-30 19:21:39 +0800 | [diff] [blame] | 9 | LICENSE = "GPLv2" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 10 | |
Holger Hans Peter Freyther | f4320dd | 2012-07-21 23:46:45 +0800 | [diff] [blame] | 11 | SRC_URI = "http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-${PV}.tar.gz \ |
| 12 | file://perl_install.patch " |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 13 | |
Holger Hans Peter Freyther | f4320dd | 2012-07-21 23:46:45 +0800 | [diff] [blame] | 14 | INC_PR="r18" |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 15 | |
| 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ea5bed2f60d357618ca161ad539f7c0a \ |
| 17 | file://LICENSE.LGPL;md5=fb504b67c50331fc78734fed90fb0e09" |
| 18 | |
Holger Hans Peter Freyther | f4320dd | 2012-07-21 23:46:45 +0800 | [diff] [blame] | 19 | FILES_${PN} += "${datadir}/dahdi" |
| 20 | |
| 21 | inherit autotools_stage pkgconfig perlnative cpan-base |
Holger Hans Peter Freyther | 60ee4cd | 2011-11-11 21:26:06 +0800 | [diff] [blame] | 22 | |
| 23 | do_configure() { |
| 24 | oe_runconf |
| 25 | } |
Holger Hans Peter Freyther | f4320dd | 2012-07-21 23:46:45 +0800 | [diff] [blame] | 26 | |
| 27 | do_compile() { |
| 28 | base_do_compile |
| 29 | oe_runmake dahdi_pcap |
| 30 | } |
| 31 | |
| 32 | export DAHDI_PERLLIBDIR="${PERLLIBDIRS}/${@get_perl_version(d)}" |
| 33 | do_install() { |
| 34 | autotools_do_install |
| 35 | install -m 755 ${S}/dahdi_pcap ${D}${sbindir}/ |
| 36 | } |