Bug 240041 - [NEW PORT] games/linux-unigine-superposition: Unigine Superposition Benchmark, basic version, linux binaries
Summary: [NEW PORT] games/linux-unigine-superposition: Unigine Superposition Benchmark...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2019-08-22 17:30 UTC by Hannes Hauswedell
Modified: 2022-06-09 13:03 UTC (History)
2 users (show)

See Also:


Attachments
games/linux-unigine-superposition (14.38 KB, text/plain)
2019-08-22 17:30 UTC, Hannes Hauswedell
h2+fbsdports: maintainer-approval+
Details
Updated Port. (14.38 KB, text/plain)
2019-09-03 09:14 UTC, Hannes Hauswedell
no flags Details
Updated Port. (14.38 KB, text/plain)
2019-09-03 09:52 UTC, Hannes Hauswedell
no flags Details
New Makefile (1.57 KB, text/plain)
2019-09-12 19:56 UTC, Tijl Coosemans
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.