benchmarks/linux-gputest: Remove port

Linuxism
This commit is contained in:
2025-04-28 01:50:41 +02:00
parent 564e2adf79
commit cc2f126a25
9 changed files with 1 additions and 278 deletions
+1
View File
@@ -321,6 +321,7 @@ audio/yoshimi
audio/zplugins-lv2
audio/zrythm
benchmarks/kdiskmark
benchmarks/linux-gputest
benchmarks/linux-unigine-heaven
benchmarks/linux-unigine-sanctuary
benchmarks/linux-unigine-superposition
-1
View File
@@ -40,7 +40,6 @@
SUBDIR += libcelero
SUBDIR += libcpucycles
SUBDIR += libmicro
SUBDIR += linux-gputest
SUBDIR += lmbench
SUBDIR += lzbench
SUBDIR += mdtest
-72
View File
@@ -1,72 +0,0 @@
PORTNAME= gputest
PORTVERSION= 0.7.0
CATEGORIES= benchmarks linux
MASTER_SITES= http://vault.101011010.xyz/distfiles/ \
http://freebsd.nsu.ru/distfiles/ LOCAL/danfe
# http://www.ozone3d.net/gputest/dl/ (original
# upstream URL, but they ask not to hotlink)
DISTNAME= GpuTest_Linux_x64_${PORTVERSION}
PKGNAMEPREFIX= linux-
MAINTAINER= danfe@FreeBSD.org
COMMENT= GPU stress test and OpenGL benchmark
WWW= https://www.Geeks3D.com/GpuTest/
LICENSE= GEEKS3D
LICENSE_NAME= Geeks3D End-User License Agreement
LICENSE_FILE= ${WRKSRC}/EULA.txt
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
ONLY_FOR_ARCHS= amd64
PATCH_DEPENDS= p5-Sys-Mmap>0:devel/p5-Sys-Mmap
USES= linux perl5 zip
USE_LINUX= dri libglvnd xorglibs
USE_PERL5= patch
NO_BUILD= yes
OPTIONS_DEFINE= DOCS GUI
OPTIONS_DEFAULT= GUI
OPTIONS_SUB= yes
GUI_DESC= Install Python/Tkinter-based GUI launcher
GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR}
GUI_USES= python:run
post-patch:
@${REINPLACE_CMD} -e '1s,bash,sh,' ${WRKSRC}/start_*.sh
@${RM} ${WRKSRC}/data/.DS_Store
@cd ${WRKSRC} && ${PERL} ${FILESDIR}/apply-binary-patch.pl < \
${FILESDIR}/fix-logfile-path.crk
# We cannot just embed shebang line in the patch because 210:fix-shebang
# happens before 500:do-patch :(
post-patch-GUI-on:
@${REINPLACE_CMD} -e '1 { x; s,^,#!${PYTHON_CMD},; G; }' \
${WRKSRC}/gputest_gui.py
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
cd ${WRKSRC} && ${COPYTREE_SHARE} data \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_LIB} ${WRKSRC}/*.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/GpuTest \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/start_*.sh \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/_geeks3d_gputest_scores.csv \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${PRINTF} '#!/bin/sh\n\ncd ${PREFIX}/lib/${PORTNAME} || exit\
1\n\nexec ./GpuTest "$$@"\n' > \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
do-install-GUI-on:
${INSTALL_SCRIPT} ${WRKSRC}/gputest_gui.py ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
-3
View File
@@ -1,3 +0,0 @@
TIMESTAMP = 1393924825
SHA256 (GpuTest_Linux_x64_0.7.0.zip) = a6cbddfb40dc203735d63bc9609b24abde8613fbb649d0ef7d0d4515842ba263
SIZE (GpuTest_Linux_x64_0.7.0.zip) = 2083164
@@ -1,33 +0,0 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Sys::Mmap;
my $fh;
my $flen;
my $fdata;
sub commit {
return unless $fh;
munmap $fdata or die "munmap: $!";
close $fh or die "close: $!";
}
while (<>) {
chomp;
if (/^([0-9A-F]{8}):? ([0-9A-F]{2}) ([0-9A-F]{2})$/i) {
my ($offset, $old, $new) = map hex, $1, $2, $3;
next unless $fdata;
next unless $offset < $flen;
next if ord substr($fdata, $offset, 1) != $old;
substr($fdata, $offset, 1) = chr $new;
} elsif (-e) {
commit;
open $fh, '+<', $_ or die "open: $!";
mmap $fdata, 0, PROT_READ | PROT_WRITE, MAP_SHARED, $fh
or die "mmap: $!";
$flen = -s;
}
}
commit;
@@ -1,95 +0,0 @@
; GpuTest is not cwd-agnostic and must be run in ${PREFIX}/lib/${PORTNAME}
; where it looks for resources and writes its logfile. Change the logfile
; location to user-writable directory (/tmp) and shift a couple of strings
; to make the room for other changes.
GpuTest
00036FE0: 5F 2F
00036FE1: 67 74
00036FE2: 65 6D
00036FE3: 65 70
00036FE4: 6B 2F
00036FE5: 73 5F
00036FE6: 33 67
00036FE7: 64 65
00036FE8: 5F 65
00036FE9: 67 6B
00036FEA: 70 73
00036FEB: 75 33
00036FEC: 74 64
00036FED: 65 5F
00036FEE: 73 67
00036FEF: 74 70
00036FF0: 5F 75
00036FF1: 6C 74
00036FF2: 6F 65
00036FF3: 67 73
00036FF4: 2E 74
00036FF5: 74 2E
00036FF6: 78 6C
00036FF7: 74 6F
00036FF8: 00 67
; "Linux x%d" moves +1 byte (1 reference)
; 424bbb: be f9 6f 43 00 mov $0x436ff9,%esi
00024BBC: F9 FA
00036FF9: 4C 00
00036FFA: 69 4C
00036FFB: 6E 69
00036FFC: 75 6E
00036FFD: 78 75
00036FFE: 20 78
00036FFF: 78 20
00037000: 25 78
00037001: 64 25
00037002: 00 64
; "GpuTest" moves +3 bytes (3 references)
; 424c4b: be 03 70 43 00 mov $0x437003,%esi
; 424dba: b9 03 70 43 00 mov $0x437003,%ecx
; 425040: ba 03 70 43 00 mov $0x437003,%edx
00024C4C: 03 06
00024DBB: 03 06
00025041: 03 06
00037003: 47 00
00037004: 70 00
00037005: 75 00
00037006: 54 47
00037007: 65 70
00037008: 73 75
00037009: 74 54
0003700A: 00 65
; "%s (%s) is starting up..." moves +3 bytes (1 reference)
; 424d9c: ba 0b 70 43 00 mov $0x43700b,%edx
00024D9D: 0B 0E
0003700B: 25 73
0003700C: 73 74
0003700D: 20 00
0003700E: 28 25
0003700F: 25 73
00037010: 73 20
00037011: 29 28
00037012: 20 25
00037013: 69 73
00037014: 73 29
00037016: 73 69
00037017: 74 73
00037018: 61 20
00037019: 72 73
0003701B: 69 61
0003701C: 6E 72
0003701D: 67 74
0003701E: 20 69
0003701F: 75 6E
00037020: 70 67
00037021: 2E 20
00037022: 2E 75
00037023: 2E 70
00037024: 00 2E
00037025: 00 2E
00037026: 00 2E
@@ -1,29 +0,0 @@
--- gputest_gui.py.orig 2014-03-04 02:16:44 UTC
+++ gputest_gui.py
@@ -7,7 +7,7 @@
import os
#from subprocess import call
-import Tkinter as tk
+import tkinter as tk
root = tk.Tk()
@@ -90,7 +90,7 @@ def prepare_command_line():
index = cs[0]
seltext = listbox1.get(index)
else:
- print "\nPlease select a test (FurMark is the default test)."
+ print("\nPlease select a test (FurMark is the default test).")
index = 0
seltext = listbox1.get(index)
@@ -98,7 +98,7 @@ def prepare_command_line():
for demo in allDemos:
if demo.demo_name == seltext:
demo_code = demo.demo_code
- g_command_line = "./GpuTest /test='%s' /width=%d /height=%d /gpumon_terminal" % (demo_code, g_width, g_height)
+ g_command_line = "gputest /test='%s' /width=%d /height=%d /gpumon_terminal" % (demo_code, g_width, g_height)
if (fullscreen.get() == 1):
g_command_line += " /fullscreen"
-7
View File
@@ -1,7 +0,0 @@
GpuTest is a cross-platform GPU stress test and benchmarking utility, based
on OpenGL. It comes with a number of different tests, including the famous
stress test based on FurMark (OpenGL 2.1 or 3.2), a tessellation test based
on TessMark (OpenGL 4.0), and geometry instancing test (OpenGL 3.3).
An optional GUI (graphical user interface) program made with Python/Tkinter
is available since GpuTest version 0.6.0.
-38
View File
@@ -1,38 +0,0 @@
bin/gputest
%%GUI%%bin/gputest_gui.py
lib/gputest/GpuTest
lib/gputest/_geeks3d_gputest_scores.csv
lib/gputest/data/_bg.jpg
lib/gputest/data/_fur.jpg
lib/gputest/data/apple_logo.jpg
lib/gputest/data/bg.jpg
lib/gputest/data/bg02.jpg
lib/gputest/data/bg02_.jpg
lib/gputest/data/bg08.jpg
lib/gputest/data/bg09.jpg
lib/gputest/data/fur.jpg
lib/gputest/data/linux_logo.jpg
lib/gputest/data/piano_texture.jpg
lib/gputest/data/piano_texture_01.jpg
lib/gputest/data/tess_bump.jpg
lib/gputest/data/tess_diffuse.jpg
lib/gputest/data/tess_normal.jpg
lib/gputest/data/windows_logo.jpg
lib/gputest/libgxl3d_r_linux.so
lib/gputest/plugin_gxl3d_gpu_monitor_gml_x64.so
lib/gputest/plugin_gxl3d_opencl_x64.so
lib/gputest/start_furmark_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_furmark_windowed_1024x640.sh
lib/gputest/start_gimark_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_gimark_windowed_1024x640.sh
lib/gputest/start_pixmark_piano_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_pixmark_piano_windowed_1024x640.sh
lib/gputest/start_pixmark_volplosion_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_pixmark_volplosion_windowed_1024x640.sh
lib/gputest/start_plot3d_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_plot3d_windowed_1024x640.sh
lib/gputest/start_tessmark_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_tessmark_windowed_1024x640.sh
lib/gputest/start_triangle_benchmark_fullscreen_1920x1080.sh
lib/gputest/start_triangle_windowed_1024x640.sh
%%PORTDOCS%%%%DOCSDIR%%/README.txt