pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

brogue-ce: import brogue-ce-1.9.2 as wip/brogue-ce



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Mon Jan 11 21:25:03 2021 +0200
Changeset:	8e7b663570e92510594b91d313f1a3cc133dee2a

Modified Files:
	Makefile
Added Files:
	brogue-ce/DESCR
	brogue-ce/Makefile
	brogue-ce/PLIST
	brogue-ce/distinfo
	brogue-ce/files/brogue-ce.sh
	brogue-ce/options.mk

Log Message:
brogue-ce: import brogue-ce-1.9.2 as wip/brogue-ce

Brogue: Community Edition is a community-lead fork of the much-loved minimalist
roguelike game Brogue.

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?

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8e7b663570e92510594b91d313f1a3cc133dee2a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                     |  1 +
 brogue-ce/DESCR              | 12 +++++++++++
 brogue-ce/Makefile           | 47 ++++++++++++++++++++++++++++++++++++++++++++
 brogue-ce/PLIST              | 41 ++++++++++++++++++++++++++++++++++++++
 brogue-ce/distinfo           |  6 ++++++
 brogue-ce/files/brogue-ce.sh |  8 ++++++++
 brogue-ce/options.mk         | 26 ++++++++++++++++++++++++
 7 files changed, 141 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 362b529855..b5a810b51f 100644
--- a/Makefile
+++ b/Makefile
@@ -316,6 +316,7 @@ SUBDIR+=	briskmenu
 SUBDIR+=	brlcad
 SUBDIR+=	brltty
 SUBDIR+=	brogue
+SUBDIR+=	brogue-ce
 SUBDIR+=	browserpass-native
 SUBDIR+=	brumbrumrally
 SUBDIR+=	bscript
diff --git a/brogue-ce/DESCR b/brogue-ce/DESCR
new file mode 100644
index 0000000000..d775d2aab6
--- /dev/null
+++ b/brogue-ce/DESCR
@@ -0,0 +1,12 @@
+Brogue: Community Edition is a community-lead fork of the much-loved minimalist
+roguelike game Brogue.
+
+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?
diff --git a/brogue-ce/Makefile b/brogue-ce/Makefile
new file mode 100644
index 0000000000..b26061da1e
--- /dev/null
+++ b/brogue-ce/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	BrogueCE
+GITHUB_TAG=	v1.9.2
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	brogue-ce-${GITHUB_TAG:S,^v,,}
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=tmewett/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/tmewett/BrogueCE/
+COMMENT=	Community edition of the brogue roguelike game
+LICENSE=	gnu-agpl-v3
+
+WRKSRC=		${WRKDIR}/BrogueCE-1.9.2
+USE_TOOLS+=	gmake
+
+BUILD_TARGET=	bin/brogue
+FILES_SUBST+=	PREFIX=${PREFIX}
+MAKE_FLAGS+=	DATADIR=${PREFIX}/share/brogue-ce
+MAKE_FLAGS+=	TERMINAL=YES
+
+INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	share/brogue-ce
+INSTALLATION_DIRS+=	share/doc/brogue-ce
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-install
+SUBST_FILES.paths=	brogue-ce.sh
+SUBST_VARS.paths=	PREFIX
+
+pre-configure:
+	${CP} ${FILESDIR}/brogue-ce.sh ${WRKSRC}/brogue-ce.sh
+
+do-install: ${BROGUE_CE_ASSETS}
+	${INSTALL_SCRIPT} ${WRKSRC}/brogue-ce.sh ${DESTDIR}${PREFIX}/bin/brogue-ce
+	${INSTALL_ASSETS} ${WRKSRC}/bin/assets/* ${DESTDIR}${PREFIX}/share/brogue-ce/assets/
+	${INSTALL_GAME} ${WRKSRC}/bin/brogue ${DESTDIR}${PREFIX}/share/brogue-ce/
+	${INSTALL_DATA} ${WRKSRC}/bin/keymap.txt ${DESTDIR}${PREFIX}/share/brogue-ce/
+	${INSTALL_DATA} ${WRKSRC}/*.md ${DESTDIR}${PREFIX}/share/doc/brogue-ce/
+	${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/brogue-ce/
+
+.include "options.mk"
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/brogue-ce/PLIST b/brogue-ce/PLIST
new file mode 100644
index 0000000000..3a48c1caa5
--- /dev/null
+++ b/brogue-ce/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD$
+bin/brogue-ce
+${PLIST.sdl2}share/brogue-ce/assets/README.txt
+${PLIST.sdl2}share/brogue-ce/assets/font-1.png
+${PLIST.sdl2}share/brogue-ce/assets/font-10.png
+${PLIST.sdl2}share/brogue-ce/assets/font-11.png
+${PLIST.sdl2}share/brogue-ce/assets/font-12.png
+${PLIST.sdl2}share/brogue-ce/assets/font-13.png
+${PLIST.sdl2}share/brogue-ce/assets/font-14.png
+${PLIST.sdl2}share/brogue-ce/assets/font-15.png
+${PLIST.sdl2}share/brogue-ce/assets/font-2.png
+${PLIST.sdl2}share/brogue-ce/assets/font-3.png
+${PLIST.sdl2}share/brogue-ce/assets/font-4.png
+${PLIST.sdl2}share/brogue-ce/assets/font-5.png
+${PLIST.sdl2}share/brogue-ce/assets/font-6.png
+${PLIST.sdl2}share/brogue-ce/assets/font-7.png
+${PLIST.sdl2}share/brogue-ce/assets/font-8.png
+${PLIST.sdl2}share/brogue-ce/assets/font-9.png
+${PLIST.sdl2}share/brogue-ce/assets/icon.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-1.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-10.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-11.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-12.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-13.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-14.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-15.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-2.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-3.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-4.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-5.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-6.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-7.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-8.png
+${PLIST.sdl2}share/brogue-ce/assets/tiles-9.png
+share/brogue-ce/brogue
+share/brogue-ce/keymap.txt
+share/doc/brogue-ce/BUILD.md
+share/doc/brogue-ce/CHANGELOG.md
+share/doc/brogue-ce/CONTRIBUTING.md
+share/doc/brogue-ce/LICENSE.txt
+share/doc/brogue-ce/README.md
diff --git a/brogue-ce/distinfo b/brogue-ce/distinfo
new file mode 100644
index 0000000000..e090781421
--- /dev/null
+++ b/brogue-ce/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (BrogueCE/v1.9.2.tar.gz) = 27f71d526e254f67152b9ef09b5d05eb1f824867
+RMD160 (BrogueCE/v1.9.2.tar.gz) = 65d0930a51571478e24048858c6fceb93f85d5ee
+SHA512 (BrogueCE/v1.9.2.tar.gz) = f13856892f13f55caa4c4b7073bee9fab7cf783be3376daa6aa0ae5d853a978d80b4986013661a7fdba737ae79ab602ec63289935c948cbada20fb9ad7acc929
+Size (BrogueCE/v1.9.2.tar.gz) = 1256241 bytes
diff --git a/brogue-ce/files/brogue-ce.sh b/brogue-ce/files/brogue-ce.sh
new file mode 100644
index 0000000000..64825f569a
--- /dev/null
+++ b/brogue-ce/files/brogue-ce.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+userdir="${XDG_DATA_HOME:-$HOME/.local/share}/BrogueCE"
+
+mkdir -p "$userdir"
+cd "$userdir"
+
+exec @PREFIX@/share/brogue-ce/brogue "$@"
diff --git a/brogue-ce/options.mk b/brogue-ce/options.mk
new file mode 100644
index 0000000000..a1d1874be5
--- /dev/null
+++ b/brogue-ce/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.brogue-ce
+
+PKG_SUPPORTED_OPTIONS=	sdl2
+PKG_SUGGESTED_OPTIONS=	sdl2
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=		sdl2
+
+###
+### SDL2 support
+###
+.if !empty(PKG_OPTIONS:Msdl2)
+INSTALL_ASSETS=		${INSTALL_DATA}
+INSTALLATION_DIRS+=	share/brogue-ce/assets
+MAKE_FLAGS+=		GRAPHICS=YES
+PLIST.sdl2=		yes
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.else
+INSTALL_ASSETS=		${TRUE}
+MAKE_FLAGS+=		GRAPHICS=NO
+.endif


Home | Main Index | Thread Index | Old Index