pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/dMagnetic games/dMagnetic: import dMagnetic-0.22
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ebb5934927a
branches: trunk
changeset: 411632:7ebb5934927a
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Feb 17 10:43:43 2020 +0000
description:
games/dMagnetic: import dMagnetic-0.22
Based on the package provided by Thomas Dettbarn in PR 54974.
DMAGNETIC is a Magnetic Scrolls Interpreter. It can be used to play
classic text adventure games, such as "The Pawn", "The Guild of
Thieves", and "Wonderland". Graphics will be rendered in glorious
ANSI art, so the games can be played in any console window.
diffstat:
games/dMagnetic/DESCR | 4 ++
games/dMagnetic/Makefile | 52 ++++++++++++++++++++++++++++++++++
games/dMagnetic/PLIST | 6 +++
games/dMagnetic/distinfo | 7 ++++
games/dMagnetic/patches/patch-Makefile | 24 +++++++++++++++
5 files changed, 93 insertions(+), 0 deletions(-)
diffs (113 lines):
diff -r 86049a5e886c -r 7ebb5934927a games/dMagnetic/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/dMagnetic/DESCR Mon Feb 17 10:43:43 2020 +0000
@@ -0,0 +1,4 @@
+DMAGNETIC is a Magnetic Scrolls Interpreter. It can be used to play
+classic text adventure games, such as "The Pawn", "The Guild of
+Thieves", and "Wonderland". Graphics will be rendered in glorious
+ANSI art, so the games can be played in any console window.
diff -r 86049a5e886c -r 7ebb5934927a games/dMagnetic/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/dMagnetic/Makefile Mon Feb 17 10:43:43 2020 +0000
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1 2020/02/17 10:43:43 wiz Exp $
+
+DISTNAME= dMagnetic_0.22
+PKGNAME= ${DISTNAME:S/_/-/}
+CATEGORIES= games
+MASTER_SITES= https://www.dettus.net/dMagnetic/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= dettus%dettus.net@localhost
+HOMEPAGE= https://www.dettus.net/dMagnetic/
+COMMENT= Magnetic Scrolls Interpreter
+LICENSE= 2-clause-bsd
+
+INSTALLATION_DIRS= bin share/doc/dMagnetic ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dMagnetic ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/dMagnetic
+ ${INSTALL_DATA} ${WRKSRC}/dMagnetic.ini ${DESTDIR}${PREFIX}/share/doc/dMagnetic
+ ${INSTALL_MAN} ${WRKSRC}/dMagnetic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/dMagneticini.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
+
+## The idea of this test is to check if the output is the expected one.
+## for this, the md5sum is being compared.
+## dMagnetic has several output modes, each one of them is tested.
+do-test:
+ cd ${WRKSRC}/testcode; if [ true \
+ -a `${ECHO} Hello | ../dMagnetic -ini ../dMagnetic.ini \
+ -mag minitest.mag -gfx minitest.gfx \
+ -vmode none -vcols 300 -vrows 300 \
+ | md5 `==0f919919290698aef854df8c75119aa8 \
+ -a `${ECHO} Hello | ../dMagnetic -ini ../dMagnetic.ini \
+ -mag minitest.mag -gfx minitest.gfx \
+ -vmode monochrome -vcols 300 -vrows 300 \
+ | md5 `==dece45b2dcc499bd4e4f4daa0d87fca5 \
+ -a `${ECHO} Hello | ../dMagnetic -ini ../dMagnetic.ini \
+ -mag minitest.mag -gfx minitest.gfx \
+ -vmode low_ansi -vcols 300 -vrows 300 \
+ | md5 `==54fedb8291eafbc756686ad5d0e069ee \
+ -a `${ECHO} Hello | ../dMagnetic -ini ../dMagnetic.ini \
+ -mag minitest.mag -gfx minitest.gfx \
+ -vmode high_ansi -vcols 300 -vrows 300 \
+ | md5 `==84608708bfa3ff2dc4964b255766dd81 \
+ -a `${ECHO} Hello | ../dMagnetic -ini ../dMagnetic.ini \
+ -mag minitest.mag -gfx minitest.gfx \
+ -vmode sixel -vcols 300 -vrows 300 \
+ | md5 `==d3708a8ddf81f504b86c767648dbacb0 \
+ ]; \
+ then ${ECHO} ok; else ${ECHO} expected output not seen; exit 1; fi
+
+.include "../../mk/bsd.pkg.mk"
diff -r 86049a5e886c -r 7ebb5934927a games/dMagnetic/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/dMagnetic/PLIST Mon Feb 17 10:43:43 2020 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2020/02/17 10:43:43 wiz Exp $
+bin/dMagnetic
+man/man1/dMagnetic.1
+man/man5/dMagneticini.5
+share/doc/dMagnetic/README.txt
+share/doc/dMagnetic/dMagnetic.ini
diff -r 86049a5e886c -r 7ebb5934927a games/dMagnetic/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/dMagnetic/distinfo Mon Feb 17 10:43:43 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/02/17 10:43:43 wiz Exp $
+
+SHA1 (dMagnetic_0.22.tar.bz2) = 167c961b1573eed4f88ea22c5d8a991bbc0ab968
+RMD160 (dMagnetic_0.22.tar.bz2) = 0d62c70b41eed8b9ccf029b525cc7c17635f5ac8
+SHA512 (dMagnetic_0.22.tar.bz2) = 13cf53cbee1dbcfe712d0f5442d9882076aaf9b1bdb8e9b45400ba40b1d9b6633f49d2f6f22c6ce25989f9351e380b1d8e18ac2cea81a1de8db9656f72c8577f
+Size (dMagnetic_0.22.tar.bz2) = 61092 bytes
+SHA1 (patch-Makefile) = 95a24071f37cd37e53df2afd6aca15c29f52d945
diff -r 86049a5e886c -r 7ebb5934927a games/dMagnetic/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/dMagnetic/patches/patch-Makefile Mon Feb 17 10:43:43 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2020/02/17 10:43:44 wiz Exp $
+
+Honor LDFLAGS.
+
+--- Makefile.orig 2020-02-13 10:14:28.000000000 +0000
++++ Makefile
+@@ -37,7 +37,7 @@ PROJ_HOME=./
+ INCFLAGS=-I$(PROJ_HOME)src/gui -I$(PROJ_HOME)src/toplevel -I$(PROJ_HOME)src/loader -I$(PROJ_HOME)src/engine/vm68k -I$(PROJ_HOME)src/engine/linea -I$(PROJ_HOME)src/engine/include
+ OBJDIR=$(PROJ_HOME)obj/
+ LINK=$(CC)
+-LDFLAGS="-L"$(OBJDIR)
++LDFLAGS+="-L"$(OBJDIR)
+
+ SOURCES_LOADER= \
+ src/loader/maggfxloader.c
+@@ -92,7 +92,7 @@ install: all dMagnetic.1 dMagneticini.5
+
+
+ dMagnetic: $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
+- $(LINK) -o $@ $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
++ $(LINK) $(LDFLAGS) -o $@ $(OBJ_LOADER) $(OBJ_LINEA) $(OBJ_VM68K) $(OBJ_GUI) $(OBJ_TOPLEVEL)
+
+ .c.o:
+ $(CC) $(CFLAGS) $(CFLAGS_EXTRA) $(INCFLAGS) -c -o $@ $<
Home |
Main Index |
Thread Index |
Old Index