summaryrefslogtreecommitdiff
path: root/benchmarks/phoronix-test-suite/Makefile
blob: 54341f1fb2eb34f9a42a2c0d38254e198aeb03c8 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $NetBSD: Makefile,v 1.11 2021/03/07 13:21:56 taca Exp $
#

DISTNAME=	phoronix-test-suite-${PTS_VERSION}
PTS_VERSION=	8.8.1
PKGREVISION=	1
CATEGORIES=	benchmarks
MASTER_SITES=	https://www.phoronix-test-suite.com/releases/

MAINTAINER=	jym@NetBSD.org
HOMEPAGE=	https://www.phoronix-test-suite.com/
COMMENT=	Phoronix Benchmarking Suite
LICENSE=	gnu-gpl-v3

DEPENDS+=	${PHP_PKG_PREFIX}-curl>=5.3:../../www/php-curl
DEPENDS+=	${PHP_PKG_PREFIX}-gd>=5.3:../../graphics/php-gd
DEPENDS+=	${PHP_PKG_PREFIX}-pcntl>=5.3:../../devel/php-pcntl
DEPENDS+=	${PHP_PKG_PREFIX}-posix>=5.3:../../devel/php-posix
DEPENDS+=	${PHP_PKG_PREFIX}-zip>=5.3:../../archivers/php-zip
DEPENDS+=	${PHP_PKG_PREFIX}-zlib>=5.3:../../archivers/php-zlib

INSTALLATION_DIRS=	bin
INSTALLATION_DIRS+=	share/bash-completion.d
INSTALLATION_DIRS+=	share/phoronix-test-suite
INSTALLATION_DIRS+=	share/doc/phoronix-test-suite
INSTALLATION_DIRS+=	share/appdata share/applications
INSTALLATION_DIRS+=	share/icons/hicolor/48x48/apps share/mime/packages
INSTALLATION_DIRS+=	share/icons/hicolor/64x64/mimetypes

NO_BUILD=	yes

WRKSRC=		${WRKDIR}/phoronix-test-suite

ICON_THEMES=	yes

PLIST_VARS+=	systemd

.if exists(/bin/systemd)
PLIST.systemd=	yes
.endif

pre-install:
	${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f

do-install:
	cd ${WRKSRC}/ && DESTDIR=${DESTDIR:Q} PKGMANDIR=${PKGMANDIR:Q} \
		./install-sh ${PREFIX:Q}

.include "../../lang/php/json.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"