freebsd-ports/benchmarks/phoronix-test-suite/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

76 lines
2.5 KiB
Makefile

PORTNAME= phoronix-test-suite
DISTVERSIONPREFIX= v
DISTVERSION= 10.8.4
CATEGORIES= benchmarks
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= pizzamig@FreeBSD.org
COMMENT= Phoronix Benchmarking Suite
WWW= https://www.phoronix-test-suite.com
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= sudo:security/sudo \
bash:shells/bash
USES= php:cli,build,flavors python shebangfix
USE_GITHUB= yes
USE_PHP= curl dom gd openssl pcntl posix simplexml zip zlib
NO_BUILD= yes
PORTDATA= *
PORTDOCS= *
NO_ARCH= yes
SHEBANG_FILES= ob-cache/test-profiles/pts/shadowofthetombraider-1.0.0/install.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.0/interim.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.0/pre.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.0/post.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.1/install.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.1/interim.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.1/pre.sh \
ob-cache/test-profiles/pts/shadowofthetombraider-1.0.1/post.sh \
ob-cache/test-profiles/pts/csgo-1.5.1/pre_linux.sh \
ob-cache/test-profiles/pts/dota2-1.2.2/pre_linux.sh \
ob-cache/test-profiles/pts/portal-1.1.1/pre_linux.sh \
deploy/docker/ubuntu-pts-docker-build.sh
CONFLICTS_INSTALL= phoronix-test-suite-php[0-9][0-9] # bin/phoronix-test-suite
OPTIONS_DEFINE= BASH_COMPLETIONS DOCS X11
OPTIONS_DEFAULT= X11
OPTIONS_SUB= yes
BASH_COMPLETIONS_DESC= Install bash completions
BASH_COMPLETIONS_CONFIGURE_ON= WITH_BASH_COMPLETIONS=yes
X11_DESC= Install X11 icons and mimetypes
X11_USES= desktop-file-utils shared-mime-info
X11_CONFIGURE_OFF= WITHOUT_X11=yes
.include <bsd.port.pre.mk>
.if ${FLAVOR} != php80
USE_PHP+= json
.endif
post-patch:
@${SED} -i '' -e "s|/usr/local|${LOCALBASE}|g" \
${WRKSRC}/phoronix-test-suite \
${WRKSRC}/pts-core/commands/ob_test_profile_analyze.php \
${WRKSRC}/pts-core/pts-core.php \
${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php \
${WRKSRC}/pts-core/objects/client/pts_external_dependencies.php \
${WRKSRC}/pts-core/objects/client/pts_client.php \
${WRKSRC}/pts-core/objects/phodevi/components/phodevi_system.php
@${SED} -i '' -e "s|/usr/share/fonts|${LOCALBASE}/share/fonts| ; \
s|/usr/X11/lib|${LOCALBASE}/lib|" \
${WRKSRC}/pts-core/objects/pts_svg_dom_gd.php
@${SED} -i '' -e "/fpdf.php/s|/usr/share/php|${PREFIX}/share|" \
${WRKSRC}/pts-core/objects/pts_pdf_template.php
do-install:
(cd ${WRKSRC} && ${CONFIGURE_ARGS} DESTDIR="${STAGEDIR}" ./install-sh ${PREFIX})
.include <bsd.port.post.mk>