--- 3dchess-0.8.1.orig/src/engine.c +++ 3dchess-0.8.1/src/engine.c @@ -28,8 +28,8 @@ #include #include -#include "machine.h" -#include "3Dc.h" +#include "../include/machine.h" +#include "../include/3Dc.h" /* * Returns a pointer to any one piece of the specified colour threatening --- 3dchess-0.8.1.orig/src/init.c +++ 3dchess-0.8.1/src/init.c @@ -29,8 +29,8 @@ #include #include #include -#include "machine.h" -#include "3Dc.h" +#include "../include/machine.h" +#include "../include/3Dc.h" int n3DcErr; Piece *SQUARE_EMPTY, *SQUARE_INVALID; --- 3dchess-0.8.1.orig/src/main.c +++ 3dchess-0.8.1/src/main.c @@ -28,9 +28,9 @@ #include #include -#include "machine.h" +#include "../include/machine.h" -#include "3Dc.h" +#include "../include/3Dc.h" #define MAX_RETRIES 100 /* Number of times to guess a tricky move */ --- 3dchess-0.8.1.orig/src/Makefile +++ 3dchess-0.8.1/src/Makefile @@ -3,7 +3,7 @@ # put it in /usr/games or equivalent but I think that the lastability # of 3Dc is too small without proper AI. Until the computer can # play properly, 3Dc remains a local installation. -BINDIR=.. +BINDIR=/usr/games # The principle system configuration area. # Define -DHAVE_UNISTD_H if /usr/include/unistd.h exists @@ -73,6 +73,7 @@ ${RM} *.o *~ TAGS ${RM} ../*~ ${RM} ../include/*~ + ${RM} 3Dc tags: ${RM} TAGS --- 3dchess-0.8.1.orig/debian/patches/01_piece.c.dpatch +++ 3dchess-0.8.1/debian/patches/01_piece.c.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/piece.c ++++ 3dchess-0.8.1/src/piece.c +@@ -26,8 +26,8 @@ + */ + + #include +-#include "machine.h" +-#include "3Dc.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" + + #define PARAMS (Piece *, File, Rank, Level) + --- 3dchess-0.8.1.orig/debian/patches/02_engine.c.dpatch +++ 3dchess-0.8.1/debian/patches/02_engine.c.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/engine.c ++++ 3dchess-0.8.1/src/engine.c +@@ -28,8 +28,8 @@ + #include + #include + +-#include "machine.h" +-#include "3Dc.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" + + /* + * Returns a pointer to any one piece of the specified colour threatening --- 3dchess-0.8.1.orig/debian/patches/07_DrawingA.c.dpatch +++ 3dchess-0.8.1/debian/patches/07_DrawingA.c.dpatch @@ -0,0 +1,15 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/DrawingA.c ++++ 3dchess-0.8.1/src/DrawingA.c +@@ -12,7 +12,7 @@ + #include + #include + #include +-#include "DrawingAP.h" ++#include "../include/DrawingAP.h" + + static void Initialize(); + static void Destroy(); --- 3dchess-0.8.1.orig/debian/patches/00list +++ 3dchess-0.8.1/debian/patches/00list @@ -0,0 +1,9 @@ +01_piece.c.dpatch +06_stack.c.dpatch +07_DrawingA.c.dpatch +08_xif.c.dpatch +09_xnet.c.dpatch +10_callbaks.c.dpatch +11_ai.c.dpatch +12_3Dc-rules.html.dpatch +13_machine.h.dpatch --- 3dchess-0.8.1.orig/debian/patches/03_init.c.dpatch +++ 3dchess-0.8.1/debian/patches/03_init.c.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/init.c ++++ 3dchess-0.8.1/src/init.c +@@ -29,8 +29,8 @@ + #include + #include + #include +-#include "machine.h" +-#include "3Dc.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" + + int n3DcErr; + Piece *SQUARE_EMPTY, *SQUARE_INVALID; --- 3dchess-0.8.1.orig/debian/patches/04_main.c.dpatch +++ 3dchess-0.8.1/debian/patches/04_main.c.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/main.c ++++ 3dchess-0.8.1/src/main.c +@@ -28,9 +28,9 @@ + #include + #include + +-#include "machine.h" ++#include "../include/machine.h" + +-#include "3Dc.h" ++#include "../include/3Dc.h" + + #define MAX_RETRIES 100 /* Number of times to guess a tricky move */ + --- 3dchess-0.8.1.orig/debian/patches/05_Makefile.dpatch +++ 3dchess-0.8.1/debian/patches/05_Makefile.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/Makefile ++++ 3dchess-0.8.1/src/Makefile +@@ -3,7 +3,7 @@ + # put it in /usr/games or equivalent but I think that the lastability + # of 3Dc is too small without proper AI. Until the computer can + # play properly, 3Dc remains a local installation. +-BINDIR=.. ++BINDIR=/usr/games + + # The principle system configuration area. + # Define -DHAVE_UNISTD_H if /usr/include/unistd.h exists +@@ -73,6 +73,7 @@ + ${RM} *.o *~ TAGS + ${RM} ../*~ + ${RM} ../include/*~ ++ ${RM} 3Dc + + tags: + ${RM} TAGS --- 3dchess-0.8.1.orig/debian/patches/06_stack.c.dpatch +++ 3dchess-0.8.1/debian/patches/06_stack.c.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/stack.c ++++ 3dchess-0.8.1/src/stack.c +@@ -28,9 +28,9 @@ + #include + #include + +-#include "machine.h" +-#include "3Dc.h" +-#include "3DcErr.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" ++#include "../include/3DcErr.h" + + Global stack * + StackNew(void) --- 3dchess-0.8.1.orig/debian/patches/08_xif.c.dpatch +++ 3dchess-0.8.1/debian/patches/08_xif.c.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/xif.c ++++ 3dchess-0.8.1/src/xif.c +@@ -42,9 +42,9 @@ + #include "DrawingA.h" + + #include +-#include "pieces.xpm" ++#include "../include/pieces.xpm" + +-#include "3Dc.h" ++#include "../include/3Dc.h" + + Local GfxInfo GFX1; + GfxInfo *firstGFX, *secondGFX; --- 3dchess-0.8.1.orig/debian/patches/09_xnet.c.dpatch +++ 3dchess-0.8.1/debian/patches/09_xnet.c.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/xnet.c ++++ 3dchess-0.8.1/src/xnet.c +@@ -28,10 +28,10 @@ + #include + #include + +-#include "machine.h" ++#include "../include/machine.h" + + /* AutoInclude all necessary files */ +-#include "3Dc.h" ++#include "../include/3Dc.h" + #include + + Local GfxInfo GFX2; --- 3dchess-0.8.1.orig/debian/patches/10_callbaks.c.dpatch +++ 3dchess-0.8.1/debian/patches/10_callbaks.c.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/callbaks.c ++++ 3dchess-0.8.1/src/callbaks.c +@@ -41,9 +41,9 @@ + + #include + +-#include "local.h" +-#include "machine.h" +-#include "3Dc.h" ++#include "../include/local.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" + + Local GfxInfo * + Widget2GfxInfo(Widget w) --- 3dchess-0.8.1.orig/debian/patches/11_ai.c.dpatch +++ 3dchess-0.8.1/debian/patches/11_ai.c.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/src/ai.c ++++ 3dchess-0.8.1/src/ai.c +@@ -32,8 +32,8 @@ + #include + #include + +-#include "machine.h" +-#include "3Dc.h" ++#include "../include/machine.h" ++#include "../include/3Dc.h" + + #ifndef MAX + #define MAX(a,b) ((a) < (b) ? (b) : (a)) --- 3dchess-0.8.1.orig/debian/patches/12_3Dc-rules.html.dpatch +++ 3dchess-0.8.1/debian/patches/12_3Dc-rules.html.dpatch @@ -0,0 +1,15 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/3Dc-rules.html ++++ 3dchess-0.8.1/3Dc-rules.html +@@ -37,7 +37,7 @@ + It's easier to imagine if you draw the boards, or if you hold one (real) + chess board above another. If you've got a head for coordinates, then + you should realise that square Yd4 is adjacent to Xd4, +-Xd5, Ze3, Zc4 and ++Xd5, Ze3, Zc4 and + lots others. +

+ --- 3dchess-0.8.1.orig/debian/patches/13_machine.h.dpatch +++ 3dchess-0.8.1/debian/patches/13_machine.h.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ + +--- 3dchess-0.8.1.orig/include/machine.h ++++ 3dchess-0.8.1/include/machine.h +@@ -31,9 +31,11 @@ + #include + #endif + ++/* + #ifdef HAVE_ULIMIT_H + #include + #endif ++*/ + + #ifdef __alpha__ + #include --- 3dchess-0.8.1.orig/debian/dirs +++ 3dchess-0.8.1/debian/dirs @@ -0,0 +1 @@ +usr/games --- 3dchess-0.8.1.orig/debian/compat +++ 3dchess-0.8.1/debian/compat @@ -0,0 +1 @@ +4 --- 3dchess-0.8.1.orig/debian/menu +++ 3dchess-0.8.1/debian/menu @@ -0,0 +1,2 @@ +?package(3dchess):needs="X11" section="Games/Board" \ + title="3D Chess" command="/usr/games/3Dc" --- 3dchess-0.8.1.orig/debian/control +++ 3dchess-0.8.1/debian/control @@ -0,0 +1,16 @@ +Source: 3dchess +Section: games +Priority: optional +Maintainer: Debian QA Group +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 4.0.0), xaw3dg-dev, libx11-dev, libxpm-dev, libxt-dev, x-dev, libxaw-headers, dpatch + +Package: 3dchess +Architecture: any +Depends: ${shlibs:Depends} +Description: 3D chess for X11 + 3 dimensional Chess game for X11R6. There are three boards, stacked + vertically; 96 pieces of which most are the traditional chess pieces with + just a couple of additions; 26 possible directions in which to move. The + AI isn't wonderful, but provides a challenging enough game to all but the + most highly skilled players. --- 3dchess-0.8.1.orig/debian/rules +++ 3dchess-0.8.1/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + + $(MAKE) -C `pwd`/src + + touch build-stamp + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) -C `pwd`/src clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) -C `pwd`/src install BINDIR=`pwd`/debian/3dchess/usr/games + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_installmenu + dh_installman debian/3Dc.6 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install clean1 patch unpatch --- 3dchess-0.8.1.orig/debian/changelog +++ 3dchess-0.8.1/debian/changelog @@ -0,0 +1,116 @@ +3dchess (0.8.1-12) unstable; urgency=low + + * QA Upload + * Orphaned, set Maintainter to QA Group (#363498) + * Conforms with new Standards Version + * Refactor debian/rules + * Fix menu file (Closes: #341372) + * Add Build-Dependency on libxaw-headers + * Remove 3dchessbuild file. + * Remove typescript file. + * Add debian/docs + * Build-Depend on dpatch: + + split all patches from the .diff.gz into single + dpatch files. + + -- Michael Ablassmeier Fri, 5 May 2006 09:43:16 +0200 + +3dchess (0.8.1-11.1) unstable; urgency=low + + * Non-maintainer upload. + * xlibs-dev trasition. Closes: #346609 + + -- Victor Seva Tue, 10 Jan 2006 15:11:00 +0100 + +3dchess (0.8.1-11) unstable; urgency=low + + * Beef up long description (Closes: #209420) + + -- Mon, 12 Jan 2004 13:06:33 +0000 + +3dchess (0.8.1-10testXaw3dg) unstable; urgency=low + + * unreleased, only to test for Xaw3dg changes. + + -- Stephen Stafford Thu, 7 Aug 2003 14:35:53 +0000 + +3dchess (0.8.1-10) unstable; urgency=low + + * Ack NMU (Closes: #170144) + * Bumped policy version to 3.5.9.0 + + -- Stephen Stafford Fri, 9 May 2003 12:11:10 +0000 + +3dchess (0.8.1-9.1) unstable; urgency=low + + * NMU + * Removed the obsolote build-dependency on xlib6g-dev. Closes: #170114. + + -- Daniel Schepler Fri, 14 Mar 2003 21:20:12 -0800 + +3dchess (0.8.1-9) unstable; urgency=low + + * Changed the menu section from Games/Strategy to Games/Board. This is a + somewhat grey area, Strategy is not really actually incorrect, but I + fully agree with the bug submitter that Board is a somewhat more + intuitive location. (Closes: #128750) + * tweaked and tidied the rules makefile a little. Added dh_clean to the + clean target. + * Added the section field (6) to the .TH section of the manpage. + (Closes: 96045) + + -- Stephen Stafford Sun, 13 Jan 2002 23:08:46 +0000 + +3dchess (0.8.1-8) unstable; urgency=low + + * New Maintainer (closes: #87154) + * added simple manpage + * changed priority to optional (closes: #87480) + + -- Stephen Stafford Tue, 24 Apr 2001 02:47:54 +0100 + +3dchess (0.8.1-7) unstable; urgency=low + + * Added Build-Depends (closes: #70057). + * Recompile (xpm4g is provided by xlibs; closes: #67979). + * Set maintainer to Debian QA Group (relates: #87154). + + -- Peter Palfrader Fri, 23 Feb 2001 23:14:00 +0000 + +3dchess (0.8.1-6) unstable; urgency=low + + * Recompiled with latest libraries. + * Upgraded Standards-Version. + + -- Robert S. Edmonds Mon, 16 Oct 2000 21:21:46 +0000 + +3dchess (0.8.1-5) unstable; urgency=low + + * Recompiled with latest libraries. + + -- Robert S. Edmonds Mon, 11 Sep 2000 16:58:07 -0400 + +3dchess (0.8.1-4) frozen unstable; urgency=low + + * Recompiled with latest libraries. + + -- Robert S. Edmonds Mon, 5 Apr 1999 21:34:31 -0400 + +3dchess (0.8.1-3) frozen unstable; urgency=low + + * 3Dc's manpage has been linked to the undocumented man page. + + -- Robert S. Edmonds Mon, 30 Mar 1998 20:04:40 -0500 + +3dchess (0.8.1-2) unstable; urgency=low + + * Fixed Depends line in the control file. This should fix quite a few bugs. + + -- Robert S. Edmonds Thu, 12 Mar 1998 07:22:25 -0500 + +3dchess (0.8.1-1) unstable; urgency=low + + * Initial Release. + + -- Robert S. Edmonds Thu, 5 Mar 1998 20:30:01 -0500 + --- 3dchess-0.8.1.orig/debian/3Dc.6 +++ 3dchess-0.8.1/debian/3Dc.6 @@ -0,0 +1,30 @@ +.TH 3DC 6 "January 2002" +.SH NAME +3Dc \- Program to play 3D chess for X +.SH SYNOPSIS +.BR 3Dc " [" -play: +.IR " white" | black "] " +.RB [ -altdisplay: | -ad: +.IR display ] +.SH DESCRIPTION +This manual page documents briefly the +.B 3Dc +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +The Rules of 3Dchess as played by this program can be found in +/usr/share/doc/3dchess/3dc-rules.html on Debian GNU/Linux systems. +.SH OPTIONS +.TP +.BI -play: white \fR| \fIblack +Tells the computer to play. Requires a following parameter, either \fIblack +\fRor \fIwhite\fR, which tells the computer which colour to play. +.TP +.BI -altdisplay: display, -ad: display +Tells the computer that you are playing as the white player in a network +game. It requires one additional parameter---the \fIdisplay\fR to pop the +black player's windows up on. The other display must allow connections, via +xhost or xauth. +.SH AUTHOR +This manual page was written by Stephen Stafford , for +the Debian GNU/Linux system (but may be used by others). --- 3dchess-0.8.1.orig/debian/copyright +++ 3dchess-0.8.1/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Robert S. Edmonds on +Fri, 20 Feb 1998 20:58:02 -0500. + +It was downloaded from: +ftp://sunsite.unc.edu/pub/Linux/games/strategy/3Dc-0.8.1.tar.gz + +Author: +Paul Hicks + +Copyright: +GPL (GNU GPL license v2 included in source code) +The GNU GPL may be viewed on Debian GNU/Linux systems in +/usr/share/common-licenses/GPL --- 3dchess-0.8.1.orig/debian/docs +++ 3dchess-0.8.1/debian/docs @@ -0,0 +1,4 @@ +README +TODO +ACKNOWLEDGEMENTS +3Dc-rules.html