Bug 258509 - [NEW PORT] games/amnesia-tdd Amnesia: The Dark Descent game
Summary: [NEW PORT] games/amnesia-tdd Amnesia: The Dark Descent game
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-09-15 05:20 UTC by shamaz.mazum
Modified: 2022-03-31 17:41 UTC (History)
1 user (show)

See Also:


Attachments
The new port (2.44 KB, text/plain)
2021-09-15 05:20 UTC, shamaz.mazum
no flags Details
Here is an updated port (2.44 KB, text/plain)
2021-11-01 04:55 UTC, shamaz.mazum
no flags Details
Updated version (2.44 KB, text/plain)
2022-03-25 04:01 UTC, shamaz.mazum
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description shamaz.mazum 2021-09-15 05:20:00 UTC
Created attachment 227910 [details]
The new port

Hello. I ported Amnesia: The Dark Descent on FreeBSD. Unfortunatelly, I suppose it will work only on x86-64 (I simply have no means to debug it on other platforms and the possibility there are some bugs is high), so I included ONLY_FOR_ARCHS= amd64.

The game is playable to the end. You will need to buy a copy in order to play.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-24 04:12:26 UTC
See Also: OpenBSD port submission: https://marc.info/?l=openbsd-ports&m=163504179010845&w=2
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2021-10-24 09:34:50 UTC
Is there any collaboration between all forks and is there something we need/should pull in?
https://github.com/FrictionalGames/AmnesiaTheDarkDescent/network

PORTVERSION should also be DISTVERSION
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github-description

Thanks for your submission!
Comment 3 shamaz.mazum 2021-10-24 11:41:42 UTC
> PORTVERSION should also be DISTVERSION

Aha! Should it be enough to replace PORTVERSION with DISTVERSION?

> Is there any collaboration between all forks

Not much. I got some help from buzer2020 (https://github.com/buzer2020/Amnesia64) and merged a pull request from brynet (https://github.com/shamazmazum/AmnesiaTheDarkDescent/pull/1). Other forks provide some additional features like map editor and support for models in a proprietary FBX format which I had to disable (these features do not affect the gameplay), so I did not send any pull requests to anyone.
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2021-10-31 22:50:09 UTC
(In reply to shamaz.mazum from comment #3)

I see, in that case DISTVERSION should be the only needed change.

Best regards,
Daniel
Comment 5 shamaz.mazum 2021-11-01 04:55:22 UTC
Created attachment 229184 [details]
Here is an updated port

OK, I send an updated port archive
Comment 6 shamaz.mazum 2021-11-05 20:25:03 UTC
What stops this port from being merged?
Comment 7 Daniel Engberg freebsd_committer freebsd_triage 2022-02-12 09:06:11 UTC
I'll give this a go in Poudreire
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2022-03-24 18:15:06 UTC
Sorry for the wait! Poudriere checks out fine, I'll commit this tomorrow.
Comment 9 shamaz.mazum 2022-03-25 04:01:52 UTC
Created attachment 232688 [details]
Updated version
Comment 10 shamaz.mazum 2022-03-25 04:05:40 UTC
(In reply to Daniel Engberg from comment #8)

No problem! But there is an important bugfix, so I updated the port. Please make sure to commit the new version.

For some reason clang13 does not respect -fno-strict-aliasing as clang12 does, so I added a quick fix to Newton engine to avoid segfault on startup when built with clang13.
Comment 11 commit-hook freebsd_committer freebsd_triage 2022-03-31 17:35:58 UTC
A commit in branch main references this bug:

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

commit 70f7b09d39ce4c4190dc0e8baa23c5b6fc526639
Author:     Vasily Postnicov <shamaz.mazum@gmail.com>
AuthorDate: 2022-03-31 17:28:56 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-03-31 17:35:30 +0000

    games/amnesia-tdd: New port: Amnesia: The Dark Descent

    Amnesia: The Dark Descent is a survival horror adventure video game
    featuring a protagonist named Daniel exploring a dark and foreboding
    castle called Brennenburg, while trying to maintain his sanity by
    avoiding monsters and unsettling events.

    PR:             258509

 games/Makefile                               |  1 +
 games/amnesia-tdd/Makefile (new)             | 38 ++++++++++++++++++++++++++++
 games/amnesia-tdd/distinfo (new)             |  3 +++
 games/amnesia-tdd/files/pkg-message.in (new) |  9 +++++++
 games/amnesia-tdd/pkg-descr (new)            |  8 ++++++
 games/amnesia-tdd/pkg-plist (new)            |  2 ++
 6 files changed, 61 insertions(+)
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2022-03-31 17:41:32 UTC
Committed, sorry for the wait.