SUMMARY = "System-level performance monitoring and performance management"
HOMEPAGE = "http://www.pcp.io"
SECTION =  "Applications/System"

LICENSE = "GPLv2+ & LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=37ab75b580d5aad4ada04260efa3702f \
                    "
COMPATIBLE_HOST:libc-musl = "null"

SRC_URI = "https://performancecopilot.jfrog.io/artifactory/pcp-source-release/pcp-5.3.5.src.tar.gz \
	   file://config.linux \
	   "

SRC_URI[sha256sum] = "589a610f753a49af6d2015cede87e9d469bd07880ebef26fe1607b6ded375e97"

inherit setuptools3-base pkgconfig autotools

B = "${S}"

# Specify any options you want to pass to the configure script using EXTRA_OECONF:
CACHED_CONFIGUREVARS = "PACKAGE_DISTRIBUTION=arch"
EXTRA_OECONF:append = " --with-dstat-symlink=yes --with-infiniband=no \
                --with-pmdapodman=no --with-python=no --with-python3=yes --with-perl=no \
		--with-pmdabcc=no --with-pmdajson=no  --with-perfevent=no \
		--with-pmdabcc=yes \
		--with-rundir=${localstatedir}/run \
                --with-sysconfigdir=${sysconfdir} \
                --with-logdir=${localstatedir}/log \
                --with-docdir=${docdir} \
                "

PACKAGECONFIG[qt5] = "--with-qt=yes --with-qt3d=yes,--with-qt=no --with-qt3d=no,qtbase qt3d"

PACKAGECONFIG ?= ""
