Bug 240041

Summary: [NEW PORT] games/linux-unigine-superposition: Unigine Superposition Benchmark, basic version, linux binaries
Product: Ports & Packages Reporter: Hannes Hauswedell <h2+fbsdports>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me CC: danfe, emaste
Priority: --- Keywords: feature, needs-qa
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239783
Attachments:
Description Flags
games/linux-unigine-superposition
h2+fbsdports: maintainer-approval+
Updated Port.
none
Updated Port.
none
New Makefile none

Description Hannes Hauswedell 2019-08-22 17:30:50 UTC
Created attachment 206792 [details]
games/linux-unigine-superposition

This is a split-off from 239783.

It contains the new port games/linux-unigine-superposition
Comment 1 Hannes Hauswedell 2019-09-03 09:14:11 UTC
Created attachment 207135 [details]
Updated Port.

Add USES= ssl
Comment 2 Hannes Hauswedell 2019-09-03 09:52:25 UTC
Created attachment 207136 [details]
Updated Port.

replace spaces with tab in line 17
Comment 3 Hannes Hauswedell 2019-09-03 09:53:22 UTC
# make describe passes.

# portlint
WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX.
0 fatal errors and 1 warning found.

# make check-plist
...
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)

# make stage-qa
====> Running Q/A tests (stage-qa)
Warning: License is not auto-accepted, packages will not be built, ports depending on this one will be ignored.
Warning: License does not allow package to be distributed, ports depending on this one will be ignored
/!\ To run stage-qa automatically add DEVELOPER=yes to your environment /!\

# port test .

only (falsely?) complains about:
actual-package-depends: dependency on linux-c7-dri>0 not registered
pkg-static: No packages installed
actual-package-depends: dependency on linux-c7-openal-soft>0 not registered
pkg-static: No packages installed
actual-package-depends: dependency on linux-c7-xorg-libs>0 not registered
pkg-static: No packages installed
Comment 4 Tijl Coosemans freebsd_committer freebsd_triage 2019-09-12 19:56:00 UTC
Created attachment 207429 [details]
New Makefile

Here's a new Makefile with the following changes:
- Add a .desktop entry.
- Install icons like the included postinstall.sh script does.
- Remove USES=ssl, it's for FreeBSD programs, not Linux.
- Add USE_LINUX=dbuslibs, needed by the included Qt5 libraries.
- Install Superposition launcher and replace the /usr/local/bin/linux-unigine-superposition script with a symlink to it.

The launcher needs the latest linux-c7-xorg-libs (7.7_7).

You still need to update pkg-plist and feel free to make other changes of course.
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2019-09-13 09:26:15 UTC
You may also want to replace '“' and '”' in pkg-license with ASCII '"', because the former don't display properly here.
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-06-09 12:55:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eed17095ea9bff5a585bfeda1261afcdddc90dd4

commit eed17095ea9bff5a585bfeda1261afcdddc90dd4
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-06-09 12:54:34 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-06-09 12:54:34 +0000

    benchmarks/linux-unigine-superposition: new port had been added (+)

    Extreme performance and stability test for PC hardware: video card,
    power supply, cooling system.  Also includes interactive experience
    in a beautiful, detailed environment.

    This is the fifth and the latest Unigine benchmark featured in our
    Ports Collection.

    PR:     240041

 benchmarks/Makefile                                |   1 +
 .../linux-unigine-superposition/Makefile (new)     |  53 ++++++++++
 .../linux-unigine-superposition/distinfo (new)     |   3 +
 .../files/wrapper.sh.in (new)                      |  22 ++++
 .../linux-unigine-superposition/pkg-descr (new)    |  19 ++++
 .../linux-unigine-superposition/pkg-license (new)  |  65 ++++++++++++
 .../linux-unigine-superposition/pkg-plist (new)    | 116 +++++++++++++++++++++
 7 files changed, 279 insertions(+)
Comment 7 Alexey Dokuchaev freebsd_committer freebsd_triage 2022-06-09 13:03:14 UTC
I've taken the liberty to finish this work, hope you don't mind guys.  I've implemented Tijl's suggestions, moved the port to a more appropriate category, and also provided user-friendly startup script that checks for certain things like required mounted filesystems.