pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/dMagnetic



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Feb 17 10:43:44 UTC 2020

Added Files:
        pkgsrc/games/dMagnetic: DESCR Makefile PLIST distinfo
        pkgsrc/games/dMagnetic/patches: patch-Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/dMagnetic/DESCR \
    pkgsrc/games/dMagnetic/Makefile pkgsrc/games/dMagnetic/PLIST \
    pkgsrc/games/dMagnetic/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/dMagnetic/patches/patch-Makefile

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

Added files:

Index: pkgsrc/games/dMagnetic/DESCR
diff -u /dev/null pkgsrc/games/dMagnetic/DESCR:1.1
--- /dev/null   Mon Feb 17 10:43:44 2020
+++ pkgsrc/games/dMagnetic/DESCR        Mon Feb 17 10:43:43 2020
@@ -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.
Index: pkgsrc/games/dMagnetic/Makefile
diff -u /dev/null pkgsrc/games/dMagnetic/Makefile:1.1
--- /dev/null   Mon Feb 17 10:43:44 2020
+++ pkgsrc/games/dMagnetic/Makefile     Mon Feb 17 10:43:43 2020
@@ -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"
Index: pkgsrc/games/dMagnetic/PLIST
diff -u /dev/null pkgsrc/games/dMagnetic/PLIST:1.1
--- /dev/null   Mon Feb 17 10:43:44 2020
+++ pkgsrc/games/dMagnetic/PLIST        Mon Feb 17 10:43:43 2020
@@ -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
Index: pkgsrc/games/dMagnetic/distinfo
diff -u /dev/null pkgsrc/games/dMagnetic/distinfo:1.1
--- /dev/null   Mon Feb 17 10:43:44 2020
+++ pkgsrc/games/dMagnetic/distinfo     Mon Feb 17 10:43:43 2020
@@ -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

Index: pkgsrc/games/dMagnetic/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/dMagnetic/patches/patch-Makefile:1.1
--- /dev/null   Mon Feb 17 10:43:44 2020
+++ pkgsrc/games/dMagnetic/patches/patch-Makefile       Mon Feb 17 10:43:44 2020
@@ -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