From owner-dev-commits-ports-main@freebsd.org Mon Aug 2 20:19:03 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D8A90679BC7; Mon, 2 Aug 2021 20:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gdq8l5Q83z3FV2; Mon, 2 Aug 2021 20:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A1D2B258DC; Mon, 2 Aug 2021 20:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 172KJ363084868; Mon, 2 Aug 2021 20:19:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 172KJ3Ad084867; Mon, 2 Aug 2021 20:19:03 GMT (envelope-from git) Date: Mon, 2 Aug 2021 20:19:03 GMT Message-Id: <202108022019.172KJ3Ad084867@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: bf71474213f3 - main - games/brogue: (New) Much-loved minimalist roguelike game (community edition) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf71474213f3d7147d34deebfcd2e76604bb5939 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2021 20:19:03 -0000 The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=bf71474213f3d7147d34deebfcd2e76604bb5939 commit bf71474213f3d7147d34deebfcd2e76604bb5939 Author: Robert Clausecker AuthorDate: 2021-08-02 16:46:13 +0000 Commit: Li-Wen Hsu CommitDate: 2021-08-02 20:18:43 +0000 games/brogue: (New) Much-loved minimalist roguelike game (community edition) PR: 257567 --- games/brogue/Makefile | 65 ++++++++++++++++++++++++++++++++++++ games/brogue/distinfo | 3 ++ games/brogue/files/brogue.desktop.in | 13 ++++++++ games/brogue/files/brogue.sh.in | 7 ++++ games/brogue/pkg-descr | 19 +++++++++++ 5 files changed, 107 insertions(+) diff --git a/games/brogue/Makefile b/games/brogue/Makefile new file mode 100644 index 000000000000..cd508ccfa9d1 --- /dev/null +++ b/games/brogue/Makefile @@ -0,0 +1,65 @@ +PORTNAME= brogue +DISTVERSIONPREFIX= v +DISTVERSION= 1.10 +CATEGORIES= games + +MAINTAINER= fuz@fuz.su +COMMENT= Much-loved minimalist roguelike game (community edition) + +LICENSE= AGPLv3+ CC-BY-SA-4.0 +LICENSE_COMB= multi +LICENSE_FILE_AGPLv3+ = ${WRKSRC}/LICENSE.txt +LICENSE_FILE_CC-BY-SA-4.0= ${WRKSRC}/bin/assets/LICENSE.txt + +FLAVORS= x11 nox11 +FLAVOR?= ${FLAVORS:[1]} +nox11_PKGNAMESUFFIX= -nox11 + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= tmewett +GH_PROJECT= BrogueCE + +.if ${FLAVOR} == x11 +USES+= sdl +USE_SDL= sdl2 image2 +.endif + +MAKE_ARGS= DATADIR=${DATADIR} \ + RELEASE=YES \ + GRAPHICS=${${FLAVOR:U} == x11:?YES:NO} +ALL_TARGET= bin/brogue +SUB_FILES= brogue.desktop brogue.sh +PLIST_SUB= DISTVERSION=${DISTVERSION} + +PLIST_FILES= bin/brogue \ + libexec/brogue \ + share/applications/brogue.desktop +PORTDATA= assets/LICENSE.txt \ + assets/tiles.bin \ + assets/icon.png \ + assets/tiles.png \ + keymap.txt + +OPTIONS_DEFINE= DEBUG NCURSES WEBUI +OPTIONS_DEFAULT= NCURSES WEBUI +DEBUG_MAKE_ARGS= DEBUG=YES +DEBUG_MAKE_ARGS_OFF= DEBUG=NO +NCURSES_USES= ncurses +NCURSES_MAKE_ARGS= TERMINAL=YES +NCURSES_MAKE_ARGS_OFF= TERMINAL=NO +WEBUI_MAKE_ARGS= WEBUI=YES +WEBUI_MAKE_ARGS_OFF= WEBUI=NO + +post-patch: + ${REINPLACE_CMD} -e 's,/opt/brogue,${DATADIR},' ${WRKSRC}/linux/brogue-multiuser.sh + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/brogue ${STAGEDIR}${PREFIX}/libexec + ${INSTALL_SCRIPT} ${WRKDIR}/brogue.sh ${STAGEDIR}${PREFIX}/bin/brogue + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/bin/keymap.txt ${STAGEDIR}${DATADIR} + ${CP} -r ${WRKSRC}/bin/assets ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/brogue.desktop ${STAGEDIR}${PREFIX}/share/applications + +.include diff --git a/games/brogue/distinfo b/games/brogue/distinfo new file mode 100644 index 000000000000..1d9072410624 --- /dev/null +++ b/games/brogue/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1627915047 +SHA256 (tmewett-BrogueCE-v1.10_GH0.tar.gz) = 31af277940f784a6809ff08a2420b8122b9e15f2bfdf985d7678b69fc12d8e6b +SIZE (tmewett-BrogueCE-v1.10_GH0.tar.gz) = 1159270 diff --git a/games/brogue/files/brogue.desktop.in b/games/brogue/files/brogue.desktop.in new file mode 100644 index 000000000000..412c343db1a8 --- /dev/null +++ b/games/brogue/files/brogue.desktop.in @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=%%DISTVERSION%% +Type=Application +Name=Brogue +GenericName=Roguelike +Comment=Brave the Dungeons of Doom! +Comment[de]=Meistere die Dungeons der Verdammnis! +Comment[ru]=Бросьте вызов Подземельям Погибели! +Exec=%%PREFIX%%/bin/brogue +Path=%%DATADIR%% +Icon=%%DATADIR%%/assets/icon.png +Terminal=false +Categories=Game; diff --git a/games/brogue/files/brogue.sh.in b/games/brogue/files/brogue.sh.in new file mode 100755 index 000000000000..6aa940ae2414 --- /dev/null +++ b/games/brogue/files/brogue.sh.in @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e +userdir="${XDG_DATA_HOME:-$HOME/.local/share}/Brogue" +mkdir -p "$userdir" +cd "$userdir" +exec %%PREFIX%%/libexec/brogue "$@" diff --git a/games/brogue/pkg-descr b/games/brogue/pkg-descr new file mode 100644 index 000000000000..6f9f00bd3283 --- /dev/null +++ b/games/brogue/pkg-descr @@ -0,0 +1,19 @@ +Countless adventurers before you have descended this torch-lit +staircase, seeking the promised riches below. As you reach the bottom +and step into the wide cavern, the doors behind you seal with a powerful +magic... + + Welcome to the Dungeons of Doom! + +Brogue is a single-player strategy game set in the halls of a mysterious +and randomly-generated dungeon. The objective is simple enough -- +retrieve the fabled Amulet of Yendor from the 26th level -- but the +dungeon is riddled with danger. Horrifying creatures and devious, +trap-ridden terrain await. Yet it is also riddled with weapons, potions, +and artifacts of forgotten power. Survival demands strength and cunning +in equal measure as you descend, making the most of what the dungeon +gives you. You will make sacrifices, narrow escapes, and maybe even some +friends along the way -- but will you be one of the lucky few to return +alive? + +WWW: https://sites.google.com/site/broguegame/