blob: 52bd11b1a0353bb798fa6a498cef7156d636106f [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Data recovery tool"
2DESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \
3 from one file or block device (hard disc, cdrom, etc) to another, \
4 trying hard to rescue data in case of read errors."
5HOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html"
6SECTION = "console"
7LICENSE = "GPLv2+"
8
9LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
10 file://main_common.cc;beginline=5;endline=16;md5=3ec288b2676528cd2b069364e313016f"
11
12SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.lz"
Brad Bishop7e36d532019-09-16 07:44:26 -040013SRC_URI[md5sum] = "8ac89f833c0df221723e33b447e230fe"
14SRC_URI[sha256sum] = "4b5d3feede70e3657ca6b3c7844f23131851cbb6af0cecc9721500f7d7021087"
Brad Bishop316dfdd2018-06-25 12:45:53 -040015
16# This isn't already added by base.bbclass
17do_unpack[depends] += "lzip-native:do_populate_sysroot"
18
19CONFIGUREOPTS = "\
20 '--srcdir=${S}' \
21 '--prefix=${prefix}' \
22 '--exec-prefix=${exec_prefix}' \
23 '--bindir=${bindir}' \
24 '--datadir=${datadir}' \
25 '--infodir=${infodir}' \
26 '--sysconfdir=${sysconfdir}' \
27 'CXX=${CXX}' \
28 'CPPFLAGS=${CPPFLAGS}' \
29 'CXXFLAGS=${CXXFLAGS}' \
30 'LDFLAGS=${LDFLAGS}' \
31"
32EXTRA_OEMAKE = ""
33
34do_configure () {
35 ${S}/configure ${CONFIGUREOPTS}
36}
37
38do_install () {
39 oe_runmake 'DESTDIR=${D}' install
40 # Info dir listing isn't interesting at this point so remove it if it exists.
41 if [ -e "${D}${infodir}/dir" ]; then
42 rm -f ${D}${infodir}/dir
43 fi
44}