1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Graphical roguelike originally developed for Gameboy Advance.

WWW: http://www.zincland.com/powder/
This commit is contained in:
Dmitry Marakasov 2009-06-07 23:24:33 +00:00
parent f96e3758e0
commit f7a11c9fe5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235399
6 changed files with 92 additions and 0 deletions

View File

@ -643,6 +643,7 @@
SUBDIR += polypuzzle
SUBDIR += pongix
SUBDIR += pouetchess
SUBDIR += powder
SUBDIR += powermanga
SUBDIR += powwow
SUBDIR += ppracer

43
games/powder/Makefile Normal file
View File

@ -0,0 +1,43 @@
# New ports collection makefile for: powder
# Date created: 29 Dec 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= powder
PORTVERSION= 111
CATEGORIES= games
MASTER_SITES= http://www.zincland.com/powder/release/ \
http://mirror.amdmi3.ru/
DISTNAME= ${PORTNAME}${PORTVERSION}_src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Graphical dungeon crawling game
USE_GMAKE= yes
USE_SDL= sdl
BUILD_WRKSRC= ${WRKSRC}/port/linux
PLIST_FILES= bin/powder
PORTDOCS= README.TXT LICENSE.TXT CREDITS.TXT
post-patch:
@${REINPLACE_CMD} -e 's|bin/bash|bin/sh|' \
${WRKSRC}/rooms/buildrooms.bash \
${WRKSRC}/gfx/rebuild.sh
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
${BUILD_WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/powder ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

3
games/powder/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (powder111_src.tar.gz) = 6b4ae441bb8a08da2985381b1dc00313
SHA256 (powder111_src.tar.gz) = fc76270137941d028586cc3ba95d23bdc524dbfa30e0f6dea247eefe3b085eec
SIZE (powder111_src.tar.gz) = 1389349

View File

@ -0,0 +1,15 @@
--- gfx/rebuild.sh.orig 2009-02-06 04:42:17.000000000 +0300
+++ gfx/rebuild.sh 2009-06-08 00:18:29.000000000 +0400
@@ -3,10 +3,10 @@
echo Rebuilding Graphics Files
for tileset in classic adambolt nethack ascii ibsongrey akoimeexx; do
- pushd $tileset
+ cd $tileset
echo Building tiles...
../../support/tile2c/tile2c
- popd
+ cd -
done
echo Building Background images..

View File

@ -0,0 +1,27 @@
--- port/linux/linuxmain.cpp.orig 2008-01-10 06:26:42.000000000 +0300
+++ port/linux/linuxmain.cpp 2009-06-08 00:37:41.000000000 +0400
@@ -1,4 +1,8 @@
#include <SDL.h>
+#include <err.h>
+#include <stdlib.h>
+#include <sys/stat.h>
+#include <unistd.h>
#ifdef main
#undef main
@@ -11,6 +15,15 @@
int main(int argc, char **argv)
{
+ {
+ if (chdir(getenv("HOME")) != 0)
+ err(1, "cannot cd to $HOME");
+ if (mkdir(".powder", 0755) != 0 && errno != EEXIST)
+ err(1, "cannot mkdir $HOME/.powder");
+ if (chdir(".powder") != 0)
+ err(1, "cannot cd to $HOME/.powder");
+ }
+
// Call our main.
gba_main();

3
games/powder/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
Graphical roguelike originally developed for Gameboy Advance.
WWW: http://www.zincland.com/powder/