aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/bonnie/bonnie++_2.00a.bb
blob: 29590bfe84b6ed8aa54620b6c9c5cb675a438a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUMMARY = "Tests large file IO and creation/deletion of small files"
HOMEPAGE = "https://doc.coker.com.au/projects/bonnie/"
SECTION = "benchmark/tests"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://copyright.txt;md5=cd4dde95a6b9d122f0a9150ae9cc3ee0"

SRC_URI = "\
    http://www.coker.com.au/bonnie++/${BPN}-${PV}.tgz \
    file://fix-configure-lfs.patch \
    file://fix-csv2html-data.patch \
    file://makefile-use-link-for-helper.patch \
"
SRC_URI[sha256sum] = "a8d33bbd81bc7eb559ce5bf6e584b9b53faea39ccfb4ae92e58f27257e468f0e"

# force lfs to skip configure's check, because we are cross-building
PACKAGECONFIG ?= "lfs"
PACKAGECONFIG[lfs] = "--enable-lfs,--disable-lfs"

inherit autotools

EXTRA_OECONF += "--disable-stripping"
EXTRA_OEMAKE += "-I ${S} VPATH=${S}"
CXXFLAGS += "-I ${S}"

do_install() {
    oe_runmake eprefix='${D}${exec_prefix}' install-bin
}

PACKAGE_BEFORE_PN += "${PN}-scripts"

FILES:${PN}-scripts = "${bindir}/bon_csv2*"

RDEPENDS:${PN}-scripts += "perl"