1PORTNAME= phoronix-test-suite 2DISTVERSIONPREFIX= v 3DISTVERSION= 10.8.4 4PORTREVISION= 6 5CATEGORIES= benchmarks 6PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} 7 8MAINTAINER= ports@MidnightBSD.org 9COMMENT= Phoronix Benchmarking Suite 10WWW= https://www.phoronix-test-suite.com 11 12LICENSE= gpl3 13LICENSE_FILE= ${WRKSRC}/COPYING 14 15RUN_DEPENDS= sudo:security/sudo \ 16 bash:shells/bash 17 18USES= php:cli,build,flavors python shebangfix 19USE_GITHUB= yes 20USE_PHP= curl dom gd pcntl posix simplexml zip zlib 21NO_BUILD= yes 22 23PORTDATA= * 24PORTDOCS= * 25 26NO_ARCH= yes 27NO_TEST= yes 28 29SHEBANG_GLOB= *.sh 30 31CONFLICTS_INSTALL= phoronix-test-suite-php[0-9][0-9] # bin/phoronix-test-suite 32 33OPTIONS_DEFINE= BASH_COMPLETIONS DOCS X11 34OPTIONS_DEFAULT= X11 35OPTIONS_SUB= yes 36 37BASH_COMPLETIONS_DESC= Install bash completions 38BASH_COMPLETIONS_CONFIGURE_ON= WITH_BASH_COMPLETIONS=yes 39X11_DESC= Install X11 icons and mimetypes 40X11_USES= desktop-file-utils shared-mime-info 41X11_CONFIGURE_OFF= WITHOUT_X11=yes 42 43post-patch: 44 @${SED} -i '' -e "s|/usr/local|${LOCALBASE}|g" \ 45 ${WRKSRC}/phoronix-test-suite \ 46 ${WRKSRC}/pts-core/commands/ob_test_profile_analyze.php \ 47 ${WRKSRC}/pts-core/pts-core.php \ 48 ${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php \ 49 ${WRKSRC}/pts-core/objects/phodevi/components/phodevi_system.php \ 50 ${WRKSRC}/pts-core/objects/client/pts_external_dependencies.php \ 51 ${WRKSRC}/pts-core/objects/client/pts_client.php \ 52 ${WRKSRC}/pts-core/external-test-dependencies/xml/midnightbsd-packages.xml 53 @${SED} -i '' -e "s|/usr/share/fonts|${LOCALBASE}/share/fonts| ; \ 54 s|/usr/X11/lib|${LOCALBASE}/lib|" \ 55 ${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php 56 @${SED} -i '' -e "/fpdf.php/s|/usr/share/php|${PREFIX}/share|" \ 57 ${WRKSRC}/pts-core/objects/pts_pdf_template.php 58 59do-install: 60 (cd ${WRKSRC} && ${CONFIGURE_ARGS} DESTDIR="${FAKE_DESTDIR}" ./install-sh ${TRUE_PREFIX}) 61 62.include <bsd.port.mk> 63