git: 2671ebcfbba9 - main - games/adom: Resurrect port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 05 Sep 2023 04:56:21 UTC
The branch main has been updated by bofh:

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

commit 2671ebcfbba9718c4104b58f176cb4d63f68ce9a
Author:     Volodymyr Kostyrko <arcade@b1t.name>
AuthorDate: 2023-09-04 05:47:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-05 04:56:11 +0000

    games/adom: Resurrect port
    
    PR:             270374
---
 MOVED                |  1 -
 games/Makefile       |  1 +
 games/adom/Makefile  | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 games/adom/distinfo  |  5 +++++
 games/adom/pkg-descr | 11 +++++++++++
 games/adom/pkg-plist |  4 ++++
 6 files changed, 68 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 6af47b672026..2e3b9c412da0 100644
--- a/MOVED
+++ b/MOVED
@@ -4129,7 +4129,6 @@ editors/omegaT||2020-05-05|Has expired: Broken for more than 6 months
 finance/cbb||2020-05-05|Has expired: Broken for more than 6 months
 ftp/llnlxdir||2020-05-05|Has expired: Broken for more than 6 months
 ftp/llnlxftp||2020-05-05|Has expired: Broken for more than 6 months
-games/adom||2020-05-05|Has expired: Broken for more than 6 months
 games/bsdrain||2020-05-05|Has expired: Broken for more than 6 months
 games/bunnysay||2020-05-05|Has expired: Broken for more than 6 months
 games/castlevox||2020-05-05|Has expired: Broken for more than 6 months
diff --git a/games/Makefile b/games/Makefile
index c4705b292456..76a51ff5782c 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -28,6 +28,7 @@
     SUBDIR += abstreet
     SUBDIR += abuse_sdl
     SUBDIR += ace-of-penguins
+    SUBDIR += adom
     SUBDIR += adonthell
     SUBDIR += adonthell-wastesedge
     SUBDIR += aestats
diff --git a/games/adom/Makefile b/games/adom/Makefile
new file mode 100644
index 000000000000..dddda0c74151
--- /dev/null
+++ b/games/adom/Makefile
@@ -0,0 +1,47 @@
+PORTNAME=	adom
+PORTVERSION=	3.0.6
+CATEGORIES=	games
+MASTER_SITES=	http://www.adom.de/home/download/old/${PORTVERSION}/
+DISTNAME=	${PORTNAME}_freebsd_${ARCH_BITS}_${PORTVERSION}
+
+MAINTAINER=	arcade@b1t.name
+COMMENT=	Rogue-like advanced rpg with color support (binary port)
+WWW=		https://www.adom.de
+
+LICENSE=	UNKNOWN
+LICENSE_NAME=	The ADOM License
+LICENSE_FILE=	${WRKSRC}/docs/readme1st.txt
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror
+
+NO_CDROM=	Copy of CD must be sent to author
+
+ONLY_FOR_ARCHS=	amd64 i386
+
+NO_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/adom
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64
+ARCH_BITS=	64
+.elif ${ARCH} == i386
+ARCH_BITS=	32
+.endif
+
+.if ${OSVERSION} >= 1300078
+LIB_DEPENDS+=	libncursesw.so.8:misc/compat12x
+.endif
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/adom ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for docs in adomfaq.txt manual.txt credits.txt
+	${INSTALL_DATA} ${WRKSRC}/docs/${docs} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/games/adom/distinfo b/games/adom/distinfo
new file mode 100644
index 000000000000..0a02606268ec
--- /dev/null
+++ b/games/adom/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1679308153
+SHA256 (adom_freebsd_32_3.0.6.tar.gz) = bdcdc22eec21c573adac32e0a2c3b32e206a9733302eb07d07528de6631a12ef
+SIZE (adom_freebsd_32_3.0.6.tar.gz) = 1641496
+SHA256 (adom_freebsd_64_3.0.6.tar.gz) = b1fc487d64d862c050ffa85a337911374e67340766ba93f35662dfab43d8efce
+SIZE (adom_freebsd_64_3.0.6.tar.gz) = 1686470
diff --git a/games/adom/pkg-descr b/games/adom/pkg-descr
new file mode 100644
index 000000000000..0ce02be4bf20
--- /dev/null
+++ b/games/adom/pkg-descr
@@ -0,0 +1,11 @@
+Ancient Domains of Mystery (ADOM for short) is a rogue-like game
+which means that it is a single-user game featuring the exploration
+of a dungeon complex (and in the case of ADOM a few other games of
+this genre: the exploration of a large wilderness area with
+villages and many special locations). You control a fictional
+character described by race, class, attributes, skills, and
+equipment. This fictional character is trying to achieve a specific
+goal and succeed in a difficult quest. To fulfill the
+quest, you have to explore previously undiscovered tunnels and
+dungeons, fight hideous monsters, uncover long forgotten secrets,
+and find treasures of all kind.
diff --git a/games/adom/pkg-plist b/games/adom/pkg-plist
new file mode 100644
index 000000000000..6c73fb842769
--- /dev/null
+++ b/games/adom/pkg-plist
@@ -0,0 +1,4 @@
+bin/adom
+%%PORTDOCS%%%%DOCSDIR%%/adomfaq.txt
+%%PORTDOCS%%%%DOCSDIR%%/credits.txt
+%%PORTDOCS%%%%DOCSDIR%%/manual.txt