HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/sysutils/kdiskmark/Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>

PORTNAME=	kdiskmark
PORTVERSION=	2.2.0
CATEGORIES=	sysutils

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Graphical HDD/SSD benchmarking tool

LICENSE=	GPLv3

RUN_DEPENDS=	fio:benchmarks/fio

USE_GITHUB=	yes
GH_ACCOUNT=	JonMagon
GH_PROJECT=	KDiskMark

USES=		cmake kde:5 qt:5
USE_QT=		buildtools_build linguisttools_build qmake_build \
		core gui widgets
USE_KDE=	auth coreaddons

post-patch:
	@${REINPLACE_CMD} -e '/--ioengine=/s,libaio,posixaio,' \
		${WRKSRC}/src/benchmark.cpp
# XXX: disable pagecache flushing by default to avoid "kf.auth: Tried
# to start an invalid action: org.jonmagon.kdiskmark.dropcache" error.
	@${REINPLACE_CMD} -e '908s,true,false,' ${WRKSRC}/src/mainwindow.ui

.include <bsd.port.mk>