--- qgo-1.5.4-r3.orig/debian/rules +++ qgo-1.5.4-r3/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +CONFFLAGS = --with-qt-dir=/usr/share/qt3 --without-libdnet + +# Include dpatch stuff +include /usr/share/dpatch/dpatch.make +PACKAGES=qgo + + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + CFLAGS="$(CFLAGS)" ./configure $(CONFFLAGS) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --bindir=/usr/games --mandir=\$${prefix}/share/man + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/qgo. + $(MAKE) install DESTDIR=$(CURDIR)/debian/qgo + + +# 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 ChangeLog + dh_installdocs AUTHORS README TODO + dh_install + dh_installmenu + dh_installdebconf + dh_installman debian/qgo.6 + dh_installmime + 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 --- qgo-1.5.4-r3.orig/debian/watch +++ qgo-1.5.4-r3/debian/watch @@ -0,0 +1,4 @@ +version=3 +#http://prdownloads.sourceforge.net/qgo/qgo-(.*)\.tar\.gz?download \ +http://sf.net/qgo/qgo-(\d+[0-9\-\.r]+)\.tar\.gz \ + debian uupdate --- qgo-1.5.4-r3.orig/debian/qgo.install +++ qgo-1.5.4-r3/debian/qgo.install @@ -0,0 +1,4 @@ +templates/qgo.desktop /usr/share/applications/kde +src/pics/qgo.xpm /usr/share/pixmaps +debian/icons/qgo-16.xpm /usr/share/pixmaps +src/pics/Bowl.png usr/share/icons --- qgo-1.5.4-r3.orig/debian/compat +++ qgo-1.5.4-r3/debian/compat @@ -0,0 +1 @@ +5 --- qgo-1.5.4-r3.orig/debian/qgo.mime +++ qgo-1.5.4-r3/debian/qgo.mime @@ -0,0 +1 @@ +application/x-go-sgf; qgo '%s'; edit=qgo '%s'; test=test "$DISPLAY" != ""; priority=2 --- qgo-1.5.4-r3.orig/debian/copyright +++ qgo-1.5.4-r3/debian/copyright @@ -0,0 +1,31 @@ +This is the Debian GNU/Linux prepackaged version of qGo. It was made by +Cyril Chaboisseau , thanks to the original +maintainer Martin A. Godisch , the source package +can be obtained from http://prdownloads.sourceforge.net/qgo/ + +Copyright (c) 2001-2005 Emmanuel Beranger, Johannes Mesa, Peter Strempel +and Marin Ferecatu + +qGo is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +qGo is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +with your Debian GNU/Linux system as /usr/share/common-licenses/GPL. +If not, write to the Free Software Foundation, Inc., 51 Franklin St, +Fifth Floor, Boston, MA 02110-1301, USA. + +The Windows version is linked against the Qt non-commercial edition +and also published under the GPL with the following exception +applying to the Windows version of qGo: + +As a special exception, the author gives permission to link this +program with Qt non-commercial edition, and distribute the resulting +executable, without including the source code for the Qt +non-commercial edition in the source distribution. --- qgo-1.5.4-r3.orig/debian/changelog +++ qgo-1.5.4-r3/debian/changelog @@ -0,0 +1,214 @@ +qgo (1.5.4-r3-1ubuntu2) lucid; urgency=low + + * debian/patches/04_desktop.dpatch: + - updated from forthcoming Debian update, adding semicolon at end of + MimeType. + - Fixes sfg/sgf typo. + - Remove Ubuntu specific debian/patches/06_desktop_application.dpatch + again. + + -- Daniel Hahler Sun, 14 Mar 2010 23:51:45 +0100 + +qgo (1.5.4-r3-1ubuntu1) lucid; urgency=low + + * Remove "Application" from MimeType list (LP: #381704) + - debian/patches/06_desktop_application.dpatch + - Fixes "File '/usr/share/applications/kde/qgo.desktop' contains invalid MIME type + 'Application' that is missing a slash" + + -- Daniel Hahler Thu, 25 Feb 2010 23:12:08 +0100 + +qgo (1.5.4-r3-1) unstable; urgency=low + + * New upstream release (polish translation) + * fix icon in menus (closes: #498938) + * Bumped Standards-Version to 3.8.0. No changes needed. + + -- Cyril Chaboisseau Sat, 15 Nov 2008 11:25:02 +0100 + +qgo (1.5.4-r2-2) unstable; urgency=low + + * fix several minor issues + * remove libqt3-compat-headers from control (closes: #464760) + * Bumped Standards-Version to 3.7.3. No changes needed. + * adding qgo-16.xpm + + -- Cyril Chaboisseau Sun, 16 Mar 2008 23:53:01 +0000 + +qgo (1.5.4-r2-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix g++-4.3 FTBFS (Closes: 461676). + + -- Pierre Habouzit Sun, 16 Mar 2008 23:09:41 +0000 + +qgo (1.5.4-r2-1) unstable; urgency=low + + * New minor (-r2) upstream release (turkish translation) + * fixing debian/watch file for uscan to work (closes: #449858) + + -- Cyril Chaboisseau Fri, 09 Nov 2007 15:01:22 +0100 + +qgo (1.5.4-2) unstable; urgency=low + + * correct unused libdnet found by Steinar H. Gunderson's script + * remove debian/copyright in rules (automatically installed by dh_installdocs) + + -- Cyril Chaboisseau Sun, 22 Jul 2007 22:20:33 +0200 + +qgo (1.5.4-1) unstable; urgency=low + + * New upstream release + * fix FTBFS on kFreeBSD, thanks to Cyril Brulebois (closes: #415146) + + -- Cyril Chaboisseau Wed, 13 Jun 2007 00:26:02 +0200 + +qgo (1.5.3-1) unstable; urgency=low + + * New upstream release (closes: #405259) + + -- Cyril Chaboisseau Fri, 5 Jan 2007 05:49:36 +0100 + +qgo (1.5.2-1) unstable; urgency=low + + * New upstream release + + -- Cyril Chaboisseau Tue, 3 Oct 2006 23:46:07 +0200 + +qgo (1.5.1-1) unstable; urgency=low + + * New upstream release (closes #381919) + * forgot to change standards-version in control + * patch from upstream CVS to fix segfault (closes #375203) + + -- Cyril Chaboisseau Thu, 13 Jul 2006 19:45:05 +0200 + +qgo (1.5-r1-2) unstable; urgency=low + + * Bumped Standards-Version to 3.7.2. No changes needed. + * Change patch system to dpatch + * Recompile with gcc-4.1 and newer libs + + -- Cyril Chaboisseau Wed, 8 May 2006 18:46:12 +0200 + +qgo (1.5-r1-1) unstable; urgency=low + + * New major upstream release (see changelog for details) + * Adding mime support (closes: #355805) in /usr/lib/mime/packages/qgo + + -- Cyril Chaboisseau Wed, 5 Apr 2006 23:01:58 +0200 + +qgo (1.0.4-r2-1) unstable; urgency=low + + * New upstream release (minor corrections) + + -- Cyril Chaboisseau Tue, 17 Jan 2006 18:20:53 +0100 + +qgo (1.0.4-1) unstable; urgency=low + + * New upstream release (going through old bugs) + * fixed : now impossible to play on an illegal ko (closes: #342786) + * fixed in qgo 1.0.3 : suppressed the 'open / new game' menu for observed and + computer game (closes: #331646) + * fixed in qgo 0.2.2 : illegal move when playing gnugo was taken as "pass" + move (closes: #266544) + * more use of debhelper + + -- Cyril Chaboisseau Mon, 9 Jan 2006 22:56:20 +0100 + +qgo (1.0.3-r2-1) unstable; urgency=low + + * add build dependency on libxinerama-dev (closes: #320260) + * New upstream subrelease (closes: #340071) + * version 1.0.3 seems to have corrected some segfault (closes: #310715) + + -- Cyril Chaboisseau Tue, 27 Dec 2005 11:47:51 +0100 + +qgo (1.0.3-1) unstable; urgency=low + + * New upstream version (closes: #331398). + * Fix qgo.xpm installation + * reworked debian/rules from dh_make + * don't build-depends on automake1.6 + * add #DEBHELPER# to post{inst,rm} to make lintian/linda happy + * new author added to copyright : Marin Ferecatu (from AUTHORS file) + + -- Cyril Chaboisseau Mon, 03 Oct 2005 23:10:21 +0200 + +qgo (1.0.2-5) unstable; urgency=low + + * revert lots of changes which broke compilation (closes: #330607). + + -- Cyril Chaboisseau Thu, 29 Sep 2005 00:32:07 +0200 + +qgo (1.0.2-4) unstable; urgency=low + + * Update debhelper build dependency (closes: #330485). + + -- Cyril Chaboisseau Tue, 27 Sep 2005 23:04:31 +0200 + +qgo (1.0.2-3) unstable; urgency=low + + * build-depends on versionned libqt3-mt-dev (>= 3:3.3.4-3) + * already the latest version 1.0.2, closes: #288221 + + -- Cyril Chaboisseau Sun, 25 Sep 2005 14:01:24 +0200 + +qgo (1.0.2-2) unstable; urgency=low + + * New maintainer, closes: #279553 (RFA), closes: #329283 (ITA) + * Rebuilt with libqt3-mt, closes: #327096 + * C++ transition: build-depends on libqt3-mt-dev (>= 3.3.4-3) + + -- Cyril Chaboisseau Wed, 21 Sep 2005 10:46:42 +0200 + +qgo (1.0.2-1) unstable; urgency=low + + * New upstream release, + closes: #291789 (server connect), + closes: #266378 (crashes while playing against gnugo), + closes: #266428 (delay before placing the stone). + + -- Martin A. Godisch Thu, 14 Jul 2005 16:10:15 +0200 + +qgo (1.0.0-r2-2) unstable; urgency=low + + * Fixed MIME type, closes: #316667. + * Moved menu file to /usr/share/menu/qgo. + * Updated standards version. + + -- Martin A. Godisch Sun, 03 Jul 2005 09:34:30 +0200 + +qgo (1.0.0-r2-1) unstable; urgency=low + + * New upstream release, + closes: #270206 (eats up all CPU cycles). + + -- Martin A. Godisch Sat, 01 Jan 2005 23:07:10 +0100 + +qgo (0.2.2-1) unstable; urgency=low + + * New upstream release, closes: #278813, + closes: #266403 (invalid move is recognized as "pass"), + closes: #266424 (context-menu of players-list disappears), + closes: #266399 (filter for players-view not saved), + closes: #266420 (present popup for playerstats instead of console-output), + closes: #266426 (chatting in boardview after game has finished should...), + closes: #266546 ("save" or "save as" should offer meaningful filename). + + -- Martin A. Godisch Sat, 30 Oct 2004 18:21:20 +0200 + +qgo (0.2.1-2) unstable; urgency=low + + * Fixed build issues, closes: #265055. + Thanks to Andreas Jochens and Adam Lackorzynski. + * Fixed manual page. + * Added watch file. + + -- Martin A. Godisch Sat, 21 Aug 2004 07:57:06 +0200 + +qgo (0.2.1-1) unstable; urgency=low + + * Initial release, closes: #259577. + + -- Martin A. Godisch Sat, 24 Jul 2004 22:38:31 +0200 --- qgo-1.5.4-r3.orig/debian/qgo.6 +++ qgo-1.5.4-r3/debian/qgo.6 @@ -0,0 +1,42 @@ +.TH QGO 6 "" "The Debian Project" "" +. +.SH NAME +. +qGo \- Go client and full featured SGF editor +. +.SH SYNOPSIS +. +.B qgo +.RI [ options ]\ [ file ] +. +.SH DESCRIPTION +. +qGo is a computerized board on which you can play the game of Go +against another player, view and edit smart-go files, and connect to +Go servers on the internet. It can also interface with computer Go +programs such as GNU Go that speak the Go modem protocol. +. +.SH OPTIONS +. +.TP +.BR \-sgf +Make new sgf file (or simple open a board to play). +.TP +.BR \-sgf19 +Same but don't ask and open 19x19 board. +.TP +.BR \-debug +Open debug window and show status messages. +.TP +.BR \-desktop +Use standard options from desktop. +.TP +.I file +Open the specified file (type SGF, MGT or XML). +. +.SH AUTHORS +. +qGo is copyright (c) Emmanuel Beranger, Johannes Mesa, Peter Strempel. +This manual page was written by Martin A. Godisch for Debian GNU/Linux, +but may be used by others. +. --- qgo-1.5.4-r3.orig/debian/control +++ qgo-1.5.4-r3/debian/control @@ -0,0 +1,46 @@ +Source: qgo +Section: games +Priority: optional +Maintainer: Cyril Chaboisseau +Standards-Version: 3.8.0 +Build-Depends: debhelper (>= 5.0.7), autotools-dev, libqt3-mt-dev (>= 3:3.3.4-3), libxinerama-dev, dpatch + +Package: qgo +Architecture: any +Depends: ${shlibs:Depends} +Suggests: gnugo +Description: Go client and full featured SGF editor + qGo is a computerized board on which you can play the game of Go + against another player, view and edit smart-go files, and connect to + Go servers on the internet. It can also interface with computer Go + programs such as GNU Go that speak the Go modem protocol. The qGo + homepage can be found at http://qgo.sourceforge.net/. Have a look at + the cgoban package if you are interested in a Go client with less + package dependencies. + . + Go is an ancient game originated from China, with a definite history + of over 3000 years, although there are historians who say that the + game was invented more than 4000 years ago. The Chinese call the game + Weiqi, other names for Go include Baduk (Korean), Igo (Japanese), and + Goe (Taiwanese). + . + In this game, each player tries to exert more influence on territory + than her opponent, using threats of death, capture, or isolation. It + is, therefore, a symbolic representation of the relationships between + nations. Go is getting increasingly popular around the world, + especially in Asian, European and American countries, with many + worldwide competitions being held. + . + The game of Go is played on a board. The Go set is comprised of the + board, together with 181 black and 180 white stones. The standard + board has 19 lines by 19 lines, but 13x13 and 9x9 boards can also be + used. However, the 9x9 and 13x13 boards are usually for beginners; + more advanced players would prefer the traditional 19x19 board. + . + Compared to International Chess and Chinese Chess, Go has far fewer + rules. Yet this allowed for all sorts of moves to be played, so Go + can be a more intellectually challenging game than the other two + types of Chess. Nonetheless, Go is not a difficult game to learn, so + have a fun time playing the game with your friends. + . + (adopted from http://senseis.xmp.net/?WhatIsGo) --- qgo-1.5.4-r3.orig/debian/menu +++ qgo-1.5.4-r3/debian/menu @@ -0,0 +1,9 @@ +?package(qgo):\ + needs="x11"\ + section="Games/Board"\ + hints="KDE,Go"\ + title="qGo"\ + icon32x32="/usr/share/pixmaps/qgo.xpm"\ + icon16x16="/usr/share/pixmaps/qgo-16.xpm"\ + command="/usr/games/qgo" + --- qgo-1.5.4-r3.orig/debian/icons/qgo-16.xpm +++ qgo-1.5.4-r3/debian/icons/qgo-16.xpm @@ -0,0 +1,137 @@ +/* XPM */ +static char *q2[] = { +/* columns rows colors chars-per-pixel */ +"16 16 115 2", +" c #000700070007", +". c #01C201C201C2", +"X c #03C402C30101", +"o c #02C302C302C3", +"O c #038403840384", +"+ c #042403030162", +"@ c #070705050243", +"# c #088907470586", +"$ c #098A098A098A", +"% c #0D8E0D8E0D8E", +"& c #16D70FD005C6", +"* c #19DA12D30747", +"= c #14D514D514D5", +"- c #161616161616", +"; c #1D1D1D1D1D1D", +": c #353535353535", +"> c #3C7C3C7C3C7C", +", c #4B0B448439FA", +"< c #696949891ADB", +"1 c #6CAC4BCC1BDC", +"2 c #6A6A4C0C20A1", +"3 c #68684D0D2363", +"4 c #69694CCD24A5", +"5 c #6CAC4E0E2262", +"6 c #6CAC4F4F2626", +"7 c #707050D121E2", +"8 c #501050105010", +"9 c #521252125212", +"0 c #561656165616", +"q c #5D1D5D1D5D1D", +"w c gray39", +"e c #7EFF7EFF7EFF", +"r c #BD3D870732B3", +"t c #BFFF90904909", +"y c #E423A2223CBD", +"u c #E9E9A3633BBC", +"i c #C74796164BCC", +"p c #DFDFA6664A8A", +"a c #DB1AB4347A3A", +"s c #EC6CA8E84808", +"d c #E969B2325C9C", +"f c #EB6BB4745E9E", +"g c #EE2DB2325919", +"h c #F575AE6E4181", +"j c #F595AEAE41A2", +"k c #F5F5AEAE4141", +"l c #F5F5B2F24A4A", +"z c #FFFFB2B24141", +"x c #FFFFB4B44747", +"c c #FAFAB4B44D4D", +"v c #FFFFB6F64A4A", +"b c #FFFFB6B64D4D", +"n c #F5F5B7375353", +"m c #F7B7B5F55757", +"M c #F6B6B5F55919", +"N c #FBBBB6F65212", +"B c #FFFFB8CD5361", +"V c #FF7FBA7A5999", +"C c #FFBFBABA59DA", +"Z c #FFFFBABA5959", +"A c #FFFFBBBB5ADB", +"S c #FFFFBD3D5959", +"D c #FFFFBCFC5C5C", +"F c #FFFFBD7D5D5D", +"G c #FF7FBEFE5F9F", +"H c #FFFFBF3F5F5F", +"J c #EFAFB6366363", +"K c #ED2CB8F86BEC", +"L c #EFAFBD7D71F2", +"P c #FFFFBFFF6525", +"I c #FFFFC1816262", +"U c #FFFFC3C36565", +"Y c #F837C8C87DFE", +"T c #FFFFC60571B1", +"R c #FFFFC7C776F7", +"E c #901090109010", +"W c #B6F6B6F6B6F6", +"Q c #BF7FBF7FBF7F", +"! c #BFDFBFDFBFDF", +"~ c #C848B8B8A1E1", +"^ c #CACABC7CA868", +"/ c #E8A8BFBF8101", +"( c #E6E6BF3F8404", +") c #CF4FC141AD6D", +"_ c #D555C5C5AE6E", +"` c #E423C0C08A4A", +"' c #FFFFD3939292", +"] c #FB3AD7579EDE", +"[ c #E161D191BA7A", +"{ c #C22CC22CC22C", +"} c #C403C403C403", +"| c #C525C525C525", +" . c #C605C605C605", +".. c #C747C747C747", +"X. c #C807C807C807", +"o. c #CB8BCB8BCB8B", +"O. c #CC0CCC0CCC0C", +"+. c #CD2DCD2DCD2D", +"@. c #CF0ECF0ECF0E", +"#. c #D1F1D1F1D1F1", +"$. c #D353D353D353", +"%. c #D757D757D757", +"&. c #D7D7D7D7D7D7", +"*. c #DA19DA19DA19", +"=. c #DC5CDC5CDC5C", +"-. c #DF5FDF5FDF5F", +";. c #E0A0E0A0E0A0", +":. c #E7E7D999C5C5", +">. c #FFFFE969C888", +",. c #FE3DECACD00F", +"<. c #E767E767E767", +"1. c #EFEFEFEFEFEF", +"2. c #F9F9F9F9F9F9", +"3. c #FFFFFD7DF979", +"4. c #FFFFFDFDFA7A", +/* pixels */ +"H k z Z H n B n z c j S H j z S ", +"H y 1 5 g n c N z B j x U j z Z ", +"H r @ @ i l c i 2 O 3 p x c S ", +"H y 1 6 g k s , 9 : $ * u Z Z ", +"H k x Z H k 7 > E e - < B I ", +"H k x Z U k # ; q w % & c Z ", +"H k z Z Y / + $ $ & c S ", +"H k N :.-.*.0 < x I ", +"S s :.<.1.&.Q - * u z H ", +"V J $.;.2.=.@.W 9 O @ 3 p z z H ", +"V ( #.$.$.o...| } ` k b n c B H ", +"n d #.O.O.....} { L k c n x Z H ", +"B z _ @.O. .{ Q ^ H k H ,.>.U H ", +"S u m ) { | ) ^ M H k T 4.4.R H ", +"S j x S K a J k B H k B ] ' Z U ", +"H j b B H c c k c H k c n x Z U " +}; --- qgo-1.5.4-r3.orig/debian/patches/04_desktop.dpatch +++ qgo-1.5.4-r3/debian/patches/04_desktop.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_desktop.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: new mimetype + +@DPATCH@ + +--- qgo-1.5.4-r3.orig/templates/sgf.desktop ++++ qgo-1.5.4-r3/templates/sgf.desktop +@@ -2,6 +2,6 @@ + Comment=Smart go format + Hidden=false + Icon=/usr/share/qGo/pics/Bowl.png +-MimeType=text/sfg ++MimeType=text/sgf; + Patterns=*.sgf + Type=MimeType +--- qgo-1.5.4-r3.orig/templates/qgo.desktop ++++ qgo-1.5.4-r3/templates/qgo.desktop +@@ -4,7 +4,7 @@ + Comment=qgo + Exec=qgo + Icon=/usr/share/qGo/pics/Bowl.png +-MimeType=text/plain;text/sfg;Application ++MimeType=text/sgf; + Name=qgo + GenericName=Go + Name[fr]=qgo +@@ -29,6 +29,3 @@ + GenericName[zh]=?? +-SwallowExec= +-SwallowTitle= + Terminal=false +-TerminalOptions= + Type=Application --- qgo-1.5.4-r3.orig/debian/patches/00list +++ qgo-1.5.4-r3/debian/patches/00list @@ -0,0 +1,5 @@ +01_gnugo +02_v_erf +04_desktop +05_g++-4.3 +20_kfreebsd --- qgo-1.5.4-r3.orig/debian/patches/20_kfreebsd.dpatch +++ qgo-1.5.4-r3/debian/patches/20_kfreebsd.dpatch @@ -0,0 +1,178 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_kfreebsd.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: FTBFS on GNU/kFreeBSD + +@DPATCH@ + +--- qgo-1.5.3.orig/src/qgo.cpp ++++ qgo-1.5.3/src/qgo.cpp +@@ -304,7 +304,7 @@ + { + if (clickSound) //setting->readBoolEntry("SOUND_STONE") && clickSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!clickSound->isAvailable()) + play(clickSound->fileName().latin1()); + else +@@ -317,7 +317,7 @@ + { + if (setting->readBoolEntry("SOUND_AUTOPLAY") && clickSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!clickSound->isAvailable()) + play(clickSound->fileName().latin1()); + else +@@ -330,7 +330,7 @@ + { + if (setting->readBoolEntry("SOUND_TALK") && talkSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!talkSound->isAvailable()) + play(talkSound->fileName().latin1()); + else +@@ -343,7 +343,7 @@ + { + if (setting->readBoolEntry("SOUND_MATCH") && matchSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!matchSound->isAvailable()) + play(matchSound->fileName().latin1()); + else +@@ -356,7 +356,7 @@ + { + if (setting->readBoolEntry("SOUND_PASS") && passSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!passSound->isAvailable()) + play(passSound->fileName().latin1()); + else +@@ -369,7 +369,7 @@ + { + if (setting->readBoolEntry("SOUND_GAMEEND") && gameEndSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!gameEndSound->isAvailable()) + play(gameEndSound->fileName().latin1()); + else +@@ -382,7 +382,7 @@ + { + if (setting->readBoolEntry("SOUND_TIME") && timeSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!timeSound->isAvailable()) + play(timeSound->fileName().latin1()); + else +@@ -395,7 +395,7 @@ + { + if (setting->readBoolEntry("SOUND_SAY") && saySound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!saySound->isAvailable()) + play(saySound->fileName().latin1()); + else +@@ -408,7 +408,7 @@ + { + if (setting->readBoolEntry("SOUND_ENTER") && enterSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!enterSound->isAvailable()) + play(enterSound->fileName().latin1()); + else +@@ -421,7 +421,7 @@ + { + if (setting->readBoolEntry("SOUND_LEAVE") && leaveSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!leaveSound->isAvailable()) + play(leaveSound->fileName().latin1()); + else +@@ -436,7 +436,7 @@ + + if (setting->readBoolEntry("SOUND_CONNECT") && connectSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!connectSound->isAvailable()) + play(connectSound->fileName().latin1()); + else +@@ -449,7 +449,7 @@ + { + if (setting->readBoolEntry("SOUND_DISCONNECT") && connectSound) + { //added eb 7 +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + if (!connectSound->isAvailable()) + play(connectSound->fileName().latin1()); + else +--- qgo-1.5.3/src/qgo.h ++++ qgo-1.5.3/src/qgo.h +@@ -17,7 +17,7 @@ + #include + #endif + +-#ifdef Q_OS_LINUX ++#if defined(Q_OS_LINUX) || defined(__GLIBC__) + #include "wavplay.h" + #endif + +--- qgo-1.5.3/src/wavfile.c ++++ qgo-1.5.3/src/wavfile.c +@@ -41,7 +41,7 @@ + * wavplay project. + */ + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__GLIBC__) + + static const char rcsid[] = "@(#)wavfile.c $Revision: 1.8 $"; + +@@ -60,8 +60,11 @@ + #include + #include + #include +-#include +- ++#if defined(__linux__) ++# include ++#else ++# include ++#endif + + + +--- qgo-1.5.3/src/wavplay.c ++++ qgo-1.5.3/src/wavplay.c +@@ -54,7 +54,7 @@ + * + */ + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__GLIBC__) + + static const char rcsid[] = "@(#)recplay.c $Revision: 1.8 $"; + +@@ -66,7 +66,11 @@ + #include + #include + #include +-#include ++#if defined(__linux__) ++# include ++#else ++# include ++#endif + #include "wavplay.h" + /*/#include "server.h"*/ + --- qgo-1.5.4-r3.orig/debian/patches/05_g++-4.3.dpatch +++ qgo-1.5.4-r3/debian/patches/05_g++-4.3.dpatch @@ -0,0 +1,37 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_g++-4.3.dpatch by Pierre Habouzit +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: g++-4.3 patch + +@DPATCH@ +--- qgo-1.5.4-r2~/src/matrix.cpp 2004-10-30 20:49:50.000000000 +0000 ++++ qgo-1.5.4-r2/src/matrix.cpp 2008-03-16 23:04:18.306414183 +0000 +@@ -2,12 +2,14 @@ + * matrix.cpp + */ + ++#include + #include "matrix.h" +-#include + #ifndef NO_DEBUG +-#include ++#include + #endif + ++using namespace std; ++ + Matrix::Matrix(int s) + : size(s) + { +--- qgo-1.5.4-r2~/src/tree.cpp 2005-05-12 20:58:23.000000000 +0000 ++++ qgo-1.5.4-r2/src/tree.cpp 2008-03-16 23:04:50.660267034 +0000 +@@ -5,7 +5,7 @@ + #include "tree.h" + #include "move.h" + #include "qgo.h" +-#include ++#include + #include + + Tree::Tree(int board_size) --- qgo-1.5.4-r3.orig/debian/patches/01_gnugo.dpatch +++ qgo-1.5.4-r3/debian/patches/01_gnugo.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_gnugo_patch.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: gnugo default + +@DPATCH@ + +--- qgo-0.2.1.orig/src/setting.cpp ++++ qgo-0.2.1/src/setting.cpp +@@ -193,6 +193,10 @@ + if (!file.exists() || !file.open(IO_ReadOnly)) + { + qWarning("Failed loading settings: " + file.name()); ++ /* Make GNU Go Debian's default Go engine. */ ++ writeEntry("COMPUTER_PATH", "/usr/games/gnugo"); ++ writeEntry("COMPUTER_BLACK", "0"); ++ writeEntry("COMPUTER_WHITE", "1"); + return; + } + } --- qgo-1.5.4-r3.orig/debian/patches/02_v_erf.dpatch +++ qgo-1.5.4-r3/debian/patches/02_v_erf.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_v_erf_patch.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: move err function + +@DPATCH@ + +--- qgo-0.2.1.orig/src/wavfile.c ++++ qgo-0.2.1/src/wavfile.c +@@ -141,6 +141,11 @@ + static char emsg[2048]; + + ++static void ++_v_erf(const char *format,va_list ap) { ++ vsprintf(emsg,format,ap); /* Capture message into emsg[] */ ++} ++ + + /* + * Error reporting function for this source module: +@@ -157,13 +162,6 @@ + } + + +-static void +-_v_erf(const char *format,va_list ap) { +- vsprintf(emsg,format,ap); /* Capture message into emsg[] */ +-} +- +- +- + int WaveReadHeader (int wavefile, int* channels, u_long* samplerate, int* samplebits, u_long* samples, u_long* datastart,ErrFunc erf) + { static WAVEFORMAT waveformat ; + static char buffer [ BUFFERSIZE ] ; /* Function is not reentrant.*/