--- freesci-0.6.4.orig/debian/README.Debian +++ freesci-0.6.4/debian/README.Debian @@ -0,0 +1,7 @@ +freesci for Debian +---------------------- + +To use this package, you will need the data files of a SCI (DOS) game, +such as SpaceQuest 3 or one of the free games out there. + + -- Bas Zoetekouw , Thu, 1 Jun 2000 20:21:35 +0200 --- freesci-0.6.4.orig/debian/changelog +++ freesci-0.6.4/debian/changelog @@ -0,0 +1,404 @@ +freesci (0.6.4-7.2) unstable; urgency=low + + * Non-maintainer upload. + * Add patch 03_fix_segfault_with_no_x.patch to prevent segfault + (Closes: #715917) + * Build with hardening (Closes: #664513) + - Add 04_fix_format_security.patch + - Build-Depends on dpkg-dev (>= 1.16.1~) + + -- Paul Gevers Wed, 20 Nov 2013 20:03:59 +0100 + +freesci (0.6.4-7.1) unstable; urgency=low + + * Non-maintainer upload. + * Update Build-Depends + - libmotif-dev instead of lesstif2-dev. Unclear where it is used anyways, + as no dependency shows up afterwards (Closes: #721928) + - add libxrender-dev, libfontconfig1-dev, libice-dev and libxft-dev as they + were pulled in by lesstif2-dev and change the build log otherwise + - libpng-dev instead of libpng12-dev (Closes: #662336) + - automake instead of automake1.9 (Closes: #724370) + * Add and use autotools-dev to update config.{guess,sub} during build + (Closes: #727860) + + -- Paul Gevers Sun, 03 Nov 2013 18:20:58 +0100 + +freesci (0.6.4-7) unstable; urgency=low + + * Fix multiple definition of \ifpdf in docs + (Closes: #562386) + * Added ${misc:Depends} to dependencies + * Bumped standards-version to 3.8.4 (no changes required) + + -- Bas Zoetekouw Mon, 08 Feb 2010 16:19:23 +0100 + +freesci (0.6.4-6) unstable; urgency=low + + * Fix conflict of private function getline() with newly introduced glibc + function of the same name (thanks Lucas!) + (Closes: #552890) + * Updated Standards-version to 3.8.3 (no changes necessary) + + -- Bas Zoetekouw Thu, 29 Oct 2009 09:19:23 +0100 + +freesci (0.6.4-5) unstable; urgency=low + + * Change build-dep on libreadline5-dev by libreadline-dev + + -- Bas Zoetekouw Fri, 16 Oct 2009 15:40:19 +0200 + +freesci (0.6.4-4) unstable; urgency=low + + * Replace dependency on tk8.3 by one on unversioned tk + + -- Bas Zoetekouw Fri, 09 Oct 2009 16:39:11 +0200 + +freesci (0.6.4-3) unstable; urgency=low + + * Switch order of automake and aclocal (sigh..) + + -- Bas Zoetekouw Fri, 10 Jul 2009 19:02:41 +0200 + +freesci (0.6.4-2) unstable; urgency=low + + * Fix order of automake/autoconf/aclocal calls, and call automake with + --add-missing to fix builds on hppa and ia64 + + -- Bas Zoetekouw Fri, 10 Jul 2009 15:00:48 +0200 + +freesci (0.6.4-1) unstable; urgency=low + + * New upstream release: + - (Closes: #502158) + - final release, FreeSCI is now being merged into ScummVM + - Docs are nwo included as tex, so change build-deps to reflect that + - PQ2 now works + (Closes: #329294) + * Boost standards-version to 3.8.2 (no changes) + * Replace build-dep on x-dev to x11proto-core-dev + (Closes: #515520) + * Fix reference to versionless GPL common-licenses file + * Move documentation to Games/Tools + * Fixed watch file + + -- Bas Zoetekouw Thu, 09 Jul 2009 19:49:27 +0200 + +freesci (0.3.5-8) unstable; urgency=low + + * Don't build SDL and GGI backends, as those are not particularly useful, + and remove the appropriate build-deps + * Fixed a few typos + * Updated watch file to version 3 format + * Fix dependency on debhelper to >=5.0.51~ because we're using dh_icons + + -- Bas Zoetekouw Fri, 29 Feb 2008 10:53:55 +0100 + +freesci (0.3.5-7) unstable; urgency=low + + * Added call to dh_icons to debian/rules + (closes: #457954) + * Added Homepage Field to debian/control + * Fixed linking: the SCI tools no longer link against the entire X/SDL/ggi + chain, and freesci doesn't link anymore against ncurses and such. + [01_linking_gii.patch] + [02_linking_fontconfig.patch] + [03_linking_tools.patch] + * Remove test for libxi-dev. Thanks to Lucas Nussbaum for running his + "dirty buildd" checks. + [04_linking_libXi.patch] + + -- Bas Zoetekouw Sat, 26 Jan 2008 14:20:05 +0100 + +freesci (0.3.5-6) unstable; urgency=low + + * Rebuild against new libdirectfb (adjusted build-deps) + (closes: #456446) + * Bumped Standard-Version to 3.7.3 (no changes required) + + -- Bas Zoetekouw Sun, 16 Dec 2007 00:16:22 +0100 + +freesci (0.3.5-5) unstable; urgency=low + + * Removed dependency on unversioned autoconf + (closes: #398502) + + -- Bas Zoetekouw Sun, 15 Apr 2007 19:42:27 +0200 + +freesci (0.3.5-4) unstable; urgency=medium + + * Changed build-dep on libggi2-dev to >=1:2.2.1-4 in order to rebuild + against libgii1 (closes: #381238) + * Remove bashisms and dependency on bash from debian/rules. + + -- Bas Zoetekouw Thu, 3 Aug 2006 11:55:25 +0200 + +freesci (0.3.5-3) unstable; urgency=medium + + * Use SHELL=/bin/bash in debian/rules to fix bashism-related FTBFS + (closes: #379715) + * Bumped policy version to 3.7.2 (no changes necessary) + * Removed trailing spaces in freesci-doc's doc-base file in order + to avaoid triggering a lintian bug. + + -- Bas Zoetekouw Tue, 25 Jul 2006 11:24:23 +0200 + +freesci (0.3.5-2) unstable; urgency=low + + * DirectFB ABI transition: build-depend on libdirectfb (>=0.9.24-2) + + -- Bas Zoetekouw Fri, 14 Apr 2006 14:44:54 +0200 + +freesci (0.3.5-1) unstable; urgency=low + + * New upstream release + * Removed libggi-target-* from Depends, as libggi2 already depends on (at + least one) ggi target + * Move to debhelper 5 + * Clean up debian/rules: + - remove old workarounds around m68k and arm ICEs + - build with -O2 instead of -O3 + * Added build-dep on libfluidsynth-dev + + -- Bas Zoetekouw Mon, 13 Feb 2006 15:32:41 +0100 + +freesci (0.3.4c-5) unstable; urgency=low + + * Xorg 6.9 transition: build-depend on libx11-dev, libxext-dev, x-dev + (closes: #346749) + + -- Bas Zoetekouw Mon, 9 Jan 2006 10:29:30 +0100 + +freesci (0.3.4c-4) unstable; urgency=low + + * Evade ICE on m68k bij building -O2 on that arch. + * Decreased the version of debian/watch to 2, as dehs apparently can't + handle version 3 yet. + + -- Bas Zoetekouw Wed, 24 Aug 2005 08:42:36 +0200 + +freesci (0.3.4c-3) unstable; urgency=low + + * Added a watch file + + -- Bas Zoetekouw Tue, 12 Jul 2005 16:53:13 +0200 + +freesci (0.3.4c-2) unstable; urgency=low + + * Built against new libdirectfb 0.9.22 (and added a build-dep accordingly) + - added 02_directfb_api_change.patch to fix building against directfb + * Built against libreadline5 instead of libreadline4 (and changed build-dep) + * Added 03_gcc4_fix.patch to fix building with gcc 4 (thanks to Andreas + Jochens for the patch) (closes: #286099) + * Linked the man page for sciv to freesci (6) + * Added a scipack to the freesci-tools (6) man page and made a symlink + * Added a man pahe for freesci-setup (6). + * Boosted Standards-version to 3.6.2 (no changes needed) + + -- Bas Zoetekouw Wed, 22 Jun 2005 08:22:27 +0000 + +freesci (0.3.4c-1) unstable; urgency=medium + + * New upstream release: + - Reverted fmopl to Tatsuyuki Satoh's version (closes: #242542) + - Dependency on libxft for xlib graphics driver removed (removed build-dep + on libxft2-dev) + * Fixed error in man page, adlibemu is a midi device, not an midi output + device (closes: #192645) + * Bumped Standards-Version to 3.6.1 (no changes necessary) + * Readded directfb support, as libdirectfb seems to be ok now. + + -- Bas Zoetekouw Mon, 12 Apr 2004 19:39:11 +0200 + +freesci (0.3.4a-7) unstable; urgency=medium + + * Fixed Xft/autoconf trouble; now using pkg-config to get the correct flags + + -- Bas Zoetekouw Sun, 11 May 2003 21:54:52 +0200 + +freesci (0.3.4a-6) unstable; urgency=medium + + * Don't use -O2 on arm to workaround a bug in gcc-3.2 and -3.3 + (see #192634) + + -- Bas Zoetekouw Sun, 11 May 2003 13:38:45 +0200 + +freesci (0.3.4a-5) unstable; urgency=low + + * Don't link against libdirectfb for now, until the API is + stabilized (closes: #180883) + + -- Bas Zoetekouw Thu, 13 Feb 2003 22:30:13 +0100 + +freesci (0.3.4a-4) unstable; urgency=medium + + * Fixed debian/rules *again* (yeah, I suck). Now, binary-arch actually calls + install-arch. + + -- Bas Zoetekouw Wed, 29 Jan 2003 21:12:14 +0100 + +freesci (0.3.4a-3) unstable; urgency=medium + + * Fixed the building of arch-independent stuff (which now no longer + happens in the build rule). + + -- Bas Zoetekouw Tue, 28 Jan 2003 20:13:41 +0100 + +freesci (0.3.4a-2) unstable; urgency=medium + + * Fixed build target & dh_testroot trouble (closes: #178631) + * Fixed freesci-doc section + + -- Bas Zoetekouw Mon, 27 Jan 2003 21:43:07 +0100 + +freesci (0.3.4a-1) unstable; urgency=medium + + * New upstream release + * Rewritten debian/rules + * Fixed freesci-setup script (closes: #177649) + + -- Bas Zoetekouw Mon, 27 Jan 2003 17:08:00 +0100 + +freesci (0.3.4-1) unstable; urgency=low + + * New upstream release + + -- Bas Zoetekouw Fri, 24 Jan 2003 17:12:58 +0100 + +freesci (0.3.3-1) unstable; urgency=low + + * New upstream release + + -- Bas Zoetekouw Sat, 5 Jan 2002 14:25:24 +0100 + +freesci (0.3.2a.devel-2) unstable; urgency=low + + * Changed build-dep from sgmltools-2 to sgmltools-lite + + -- Bas Zoetekouw Mon, 31 Dec 2001 12:06:02 +0100 + +freesci (0.3.2a.devel-1) unstable; urgency=medium + + * New upstream release (release candidate) + + -- Bas Zoetekouw Sun, 30 Dec 2001 09:59:40 +0100 + +freesci (0.3.2a-5) unstable; urgency=low + + * Changed build-dependency on w3m (which is preventing hppa builds + to be done) to lynx. + * sgmltools now uses lynx target to build txt docs. + * Rebuilt against woody libs. + * Set DH_COMPAT to 3 + + -- Bas Zoetekouw Wed, 5 Dec 2001 10:25:52 +0100 + +freesci (0.3.2a-4) unstable; urgency=low + + * Added a correct build-depends on libsdl1.2-dev (>= 1.2.2-3.1) + + -- Bas Zoetekouw Tue, 23 Oct 2001 14:53:41 +0200 + +freesci (0.3.2a-3) unstable; urgency=low + + * Now compiled against libsdl1.2debian (closes: #116521) + + -- Bas Zoetekouw Tue, 23 Oct 2001 09:32:07 +0200 + +freesci (0.3.2a-2) unstable; urgency=low + + * We are in upstream CVS now + * Added libsdl1.2-dev as a build dependency + * Changed architecture to any, since libsdl is available on all + platforms. + * Added all appropriate libggi targets as dependencies. + * Removed dependencies on zlib1g. + * Added a patch to make freesci build with gcc 3.0 (closes: #99039) + * Added a build-dependency on w3m (need to build the txt docs). + + -- Bas Zoetekouw Wed, 16 May 2001 10:34:59 +0200 + +freesci (0.3.2a-1) unstable; urgency=low + + * New upstream release + + -- Bas Zoetekouw Fri, 11 May 2001 12:08:56 +0200 + +freesci (0.3.2-1) unstable; urgency=low + + * New upstream release + + -- Bas Zoetekouw Mon, 7 May 2001 10:44:43 +0200 + +freesci (0.3.1.pre0.3.2-2) unstable; urgency=low + + * Brought the package up-to-date with Policy version 3.5.2. + * Cleaned up debian/rules. + + -- Bas Zoetekouw Wed, 4 Apr 2001 19:52:34 +0200 + +freesci (0.3.1.pre0.3.2-1) unstable; urgency=low + + * New upstream release. + * Added flex as a build-dependency. + + -- Bas Zoetekouw Sun, 25 Mar 2001 18:04:07 +0200 + +freesci (0.3.1-3) unstable; urgency=low + + * OK, I forgot to sign 0.3.1-2. Let's try again. + + -- Bas Zoetekouw Thu, 8 Feb 2001 16:19:02 +0100 + +freesci (0.3.1-2) unstable; urgency=low + + * Built against newer libraries. + + -- Bas Zoetekouw Wed, 7 Feb 2001 13:00:05 +0000 + +freesci (0.3.1-1) unstable; urgency=low + + * New upstream release (closes: #81420, #82570) + + -- Bas Zoetekouw Fri, 2 Feb 2001 10:37:28 +0100 + +freesci (0.3.0.cvs20001212-1) unstable; urgency=low + + * New upstream release + + -- Bas Zoetekouw Tue, 12 Dec 2000 15:47:20 +0100 + +freesci (0.3.0.cvs20000914-2) unstable; urgency=low + + * Put my right email address in the control file (closes: #75650) + * FreeSCI won't work om m68k architectures, because libggi is not + available on this platform. I changed the Architecture-line in the + control file accordingly. Thanks to Roman Hodek for pointing this + out to me. (closes: #72403) + + -- Bas Zoetekouw Thu, 26 Oct 2000 21:20:58 +0200 + +freesci (0.3.0.cvs20000914-1) unstable; urgency=low + + * New upstream release + * Wrote manpages for sciv and the freesci tools (closes: #69742) + + -- Bas Zoetekouw Fri, 15 Sep 2000 14:56:41 +0200 + +freesci (0.3.0-1) unstable; urgency=low + + * New upstream release + * Corrected some minor syntax errors in doc/sci.sgml + * Put the SCI documentation in a seperate package: freesci-doc + + -- Bas Zoetekouw Sat, 29 Jul 2000 14:34:00 +0200 + +freesci (0.2.5-1) unstable; urgency=low + + * Initial Release. + + -- Bas Zoetekouw Thu, 1 Jun 2000 20:21:35 +0200 + +Local variables: +mode: debian-changelog +End: --- freesci-0.6.4.orig/debian/compat +++ freesci-0.6.4/debian/compat @@ -0,0 +1 @@ +5 --- freesci-0.6.4.orig/debian/control +++ freesci-0.6.4/debian/control @@ -0,0 +1,43 @@ +Source: freesci +Priority: extra +Section: games +Maintainer: Bas Zoetekouw +Standards-Version: 3.8.4 +Build-Depends: debhelper (>= 5.0.51~), libx11-dev, libxext-dev, x11proto-core-dev, libmotif-dev, libncurses5-dev, libpng-dev, libreadline-dev, zlib1g-dev, flex, libasound2-dev, autoconf, automake, bison, libdirectfb-dev (>=1), bzip2, libfluidsynth-dev, libxrender-dev, libfontconfig1-dev, libice-dev, libxft-dev, autotools-dev, dpkg-dev (>= 1.16.1~) +Build-Depends-Indep: texlive-latex-base, texlive-latex-recommended, texlive-latex-extra, texlive-fonts-recommended +Homepage: http://freesci.linuxgames.com/ + +Package: freesci +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: tk +Suggests: freesci-doc +Description: a portable interpreter for SCI games like Space Quest 3 + FreeSCI is a portable interpreter for SCI games, such as the Space Quest + series (starting with SQ3) or Leisure Suit Larry (2 and sequels). + . + FreeSCI is still incomplete. You should be able to finish some SCI games with + it, though. + This release has the following limitations (plus some bugs): + - Only SCI0 games are supported (later versions are being worked on separately + in the experimental "glutton" branch) + - The SCI debug functions aren't fully supported (and probably never will be, + since we're using our own debug functions) + . + It has the following improvements over Sierra SCI: + - Support for various filters and extended drawing operations for graphics + - saving and restoring the game state is possible from more places than the + Sierra SCI engine allowed (using the debugger functions) + - Better debugger + - More portable + - It's Free software :-) + +Package: freesci-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Description: Documentation for FreeSCI + This is the documentation for FreeSCI, a portable interpreter for SCI + games, such as the Space Quest series. It also contains a book + describing the SCI (versions 0, 1 and 2) to the extent known to the + general public. --- freesci-0.6.4.orig/debian/copyright +++ freesci-0.6.4/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Bas Zoetekouw on +Thu, 1 Jun 2000 20:21:35 +0200. + +It was downloaded from http://freesci.linuxgames.com/ + +Upstream Maintainer: Christoph Reichenbach (CJR) + +This software is copyright (C) 1999-2006 by: + - Carl Muckenhoupt + - Christoph Reichenbach + - Dmitry Jemerov + - Lars Skovlund + - Magnus Reftel + - Rickard Lind + - Rink Springer + - Sergey Lapin + - Petr Vyhnak + - Solomon Peachy + - Matt Hargett + - Rune Orsval + - Vyacheslav Dikonov + - Alexander R. Angas + - Walter van Niftrik + - Ruediger Hanke + +See also AUTHORS and THANKS. + +You are free to distribute this software under the terms of the GNU +General Public License, version 2.0. +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. --- freesci-0.6.4.orig/debian/dirs +++ freesci-0.6.4/debian/dirs @@ -0,0 +1,3 @@ +usr/games +usr/share/freesci +usr/share/man/man6 --- freesci-0.6.4.orig/debian/freesci-doc.README.Debian +++ freesci-0.6.4/debian/freesci-doc.README.Debian @@ -0,0 +1,9 @@ +FreeSCI: Documentation + +The 'sci' subdirectory contains the SCI specifications in html format, as +far as they are known to man. The same document is included as text +file, too. + +The 'misc' subdirectory contains various bits and pieces from all over the +net, some insightful, others useless. + --- freesci-0.6.4.orig/debian/freesci-doc.doc-base +++ freesci-0.6.4/debian/freesci-doc.doc-base @@ -0,0 +1,12 @@ +Document: freesci-doc +Title: SCI Manual +Author: Christoph Reichenbach +Abstract: This book describes the Sierra Creative Interpreter, + versions 0.xxx, 1.xxx, 2.xxx and SCI32/SCIWin to the extent known to + the general public, as well as the FreeSCI interpreter for those games. + Please contact the author if you find that anything is being described + incorrectly or missing. +Section: Games/Tools + +Format: PDF +Files: /usr/share/doc/freesci-doc/sci.pdf --- freesci-0.6.4.orig/debian/freesci-setup.6 +++ freesci-0.6.4/debian/freesci-setup.6 @@ -0,0 +1,41 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH FREESCI-SETUP 6 "June 22, 2005" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +freesci-setup \- graphical program to set up you freesci configuration +.SH SYNOPSIS +.B freesci-setup +[ \fBgeneral tk and X options\fP ] +.RI "[ " file " ]" +.SH DESCRIPTION +.P +FreeSCI is a portable interpreter for SCI games, such as the Space +Quest series (starting with SQ3) or Leisure Suit Larry (2 and sequels); +see below for a complete listing. +.P +\fBfreesci-setup\fP is a utility to help you write a configuration file for +use with FreeSCI. It displays the available options and lets you easily +select them. + +.SH SEE ALSO +.BR freesci (6), +.BR freesci-tools (6). +.SH AUTHOR +Freesci-setup was written by Rune Orsval, with changes by Vyacheslav Dikonov. +.br +This manual page was prepared by Bas Zoetekouw . + --- freesci-0.6.4.orig/debian/rules +++ freesci-0.6.4/debian/rules @@ -0,0 +1,209 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 +export DH_OPTIONS + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) + + +config_flags := --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --libdir=\$${prefix}/lib/freesci \ + --bindir=\$${prefix}/games \ + --without-ggi \ + --without-sdl + + +# what package/version are we? +PKG:=freesci +VERSION_UP:=$(shell dpkg-parsechangelog | perl -ne '/^Version: (.*)-(.*?)$$/ and print "$$1\n" and last;') +VERSION_DEB:=$(shell dpkg-parsechangelog | perl -ne '/^Version: (.*)-(.*?)$$/ and print "$$2\n" and last;') +ME=$(PKG)-$(VERSION_UP) + +DPKG_EXPORT_BUILDFLAGS = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -Wall +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +include /usr/share/dpkg/buildflags.mk + +TOPDIR:=$(CURDIR)/ +BUILDDIR:=$(CURDIR)/build/ +SRCDIR:=$(BUILDDIR)/$(ME)/ +STAMPDIR:=$(CURDIR)/stamp/ + +clean: + dh_testdir + dh_testroot + rm -rf $(BUILDDIR) $(STAMPDIR) + dh_clean + +unpack: $(STAMPDIR)/unpack +$(STAMPDIR)/unpack: + dh_testdir + + ######################################################## + ## ARCH=$(ARCH) + ## CFLAGS=$(CFLAGS) + ######################################################## + + # create builddir and stampdir + mkdir -p $(BUILDDIR) + mkdir -p $(STAMPDIR) + + # unpack + cd $(BUILDDIR) && \ + tar xjf $(TOPDIR)/$(ME).tar.bz2 + + # patch + cd $(SRCDIR) && \ + for PATCH in $(wildcard $(TOPDIR)/patches/*.patch); do \ + echo \# `basename $$PATCH`; \ + patch -p1 < $$PATCH; \ + done + + dh_autotools-dev_updateconfig + + touch $(STAMPDIR)/unpack + +build: build-arch + +build-arch: $(STAMPDIR)/build-arch +$(STAMPDIR)/build-arch: $(STAMPDIR)/unpack + dh_testdir + + # autoconf + cd $(SRCDIR) && test -e reconf && /reconf 2> /dev/null || true + cd $(SRCDIR) && \ + aclocal && \ + automake --add-missing && \ + autoconf + + # build the binaries + cd $(SRCDIR) && \ + ./configure $(config_flags) && \ + $(MAKE) + + touch $(STAMPDIR)/build-arch + +build-indep: $(STAMPDIR)/build-indep +$(STAMPDIR)/build-indep: $(STAMPDIR)/unpack + mkdir -p $(BUILDDIR)/doc + + # build the docs + cp $(TOPDIR)/debian/scidoc.cls $(SRCDIR)/doc/ + cd $(SRCDIR)/doc && \ + pdflatex $(SRCDIR)/doc/sci.tex && \ + pdflatex $(SRCDIR)/doc/sci.tex && \ + pdflatex $(SRCDIR)/doc/sci.tex + + touch $(STAMPDIR)/build-indep + + +install-arch: $(STAMPDIR)/build-arch + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # install binary into debian/freesci + cd $(SRCDIR) && \ + $(MAKE) install prefix=$(TOPDIR)/debian/freesci/usr + + # fix stuff + sed 's,/usr/local/share/games/freesci,/usr/share/freesci,' \ + < $(SRCDIR)/conf/freesci-setup \ + > $(TOPDIR)/debian/freesci/usr/games/freesci-setup + mkdir -p -m 0755 $(TOPDIR)/debian/freesci/usr/share/freesci/ + mv $(TOPDIR)/debian/freesci/usr/share/games/freesci/* \ + $(TOPDIR)/debian/freesci/usr/share/freesci/ + rm -rf $(TOPDIR)/debian/freesci/usr/share/games/ + + mkdir -p -m0755 $(TOPDIR)/debian/freesci/usr/share/doc/freesci + for f in AUTHORS NEWS README THANKS TODO; do \ + install -m0644 $(SRCDIR)/$$f \ + $(TOPDIR)/debian/freesci/usr/share/doc/freesci; \ + done + + mkdir -p -m 0755 $(TOPDIR)/debian/freesci/usr/share/man/man6/ + install -m 0644 $(TOPDIR)/debian/freesci-setup.6 \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/ + gzip -9 $(TOPDIR)/debian/freesci/usr/share/man/man6/freesci-setup.6 + ln -s freesci-tools.6.gz \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/sciunpack.6.gz + ln -s freesci-tools.6.gz \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/scipack.6.gz + ln -s freesci-tools.6.gz \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/sciconsole.6.gz + ln -s freesci-tools.6.gz \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/scidisasm.6.gz + ln -s freesci.6.gz \ + $(TOPDIR)/debian/freesci/usr/share/man/man6/sciv.6.gz + + # remove non-essential binaries + rm -f $(TOPDIR)/debian/freesci/usr/games/bdftofont + rm -f $(TOPDIR)/debian/freesci/usr/games/fonttoc + rm -f $(TOPDIR)/debian/freesci/usr/games/scimusicplayer + rm -f $(TOPDIR)/debian/freesci/usr/games/test-iterator + + +install-indep: $(STAMPDIR)/build-indep + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p -m 0755 $(TOPDIR)/debian/freesci-doc/usr/share/doc/freesci-doc + for F in misc/ sci.pdf; do \ + export FILE=$(SRCDIR)/doc/$$F; \ + echo installing $$F; \ + [ -e $$FILE ] && \ + cp -a $$FILE $(TOPDIR)/debian/freesci-doc/usr/share/doc/freesci-doc/; \ + done + + find $(TOPDIR)/debian/freesci-doc/ -name Makefile.\* | xargs rm -f + +# Build architecture-independent files here. +binary-indep: DH_OPTIONS=-i +binary-indep: $(STAMPDIR)/build-indep install-indep + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs $(SRCDIR)/ChangeLog + dh_link + dh_icons + dh_compress -X.pdf + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: DH_OPTIONS=-a +binary-arch: $(STAMPDIR)/build-arch install-arch + dh_testdir + dh_testroot + dh_installdocs + dh_installmenu + dh_installchangelogs $(SRCDIR)/ChangeLog + dh_strip + dh_link + dh_icons + 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 build-indep build-arch install-indep unpack --- freesci-0.6.4.orig/debian/scidoc.cls +++ freesci-0.6.4/debian/scidoc.cls @@ -0,0 +1,38 @@ +\ProvidesClass{scidoc} +\LoadClass{report} +\RequirePackage{xspace} +\RequirePackage{verbatim} +\newcommand{\method}[1]{\textbf{(\theclass #1)}\par} +\newcommand{\callsynt}[1]{\medskip\noindent\textbf{(\theclass #1)}\nopagebreak\par\medskip} +\newcommand{\methname}[1]{\textbf{#1}} +\newcommand{\parameter}[1]{\emph{#1}} +\newcommand{\classname}[1]{\mbox{\underline{#1}}} +\newcommand\sectclass{\@startsection{subsubsection}{3}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\normalsize\bfseries\itshape}} +\newcommand{\superclass}[1]{\makebox[2in][l]{\textbf{Superclass:}}\textbf{#1}\par} +\let\theclass=\relax +\newenvironment{class}[1]{\def\theclass{#1\xspace}\clearpage\subsection{#1 class}% +}{} +\newcommand{\returns}[1]{\par Returns:\qquad#1} +\newenvironment{class*}[1]{\def\theclass{#1\xspace}\subsection{#1 class}% +}{} +\newenvironment{methods}{\ifx\theclass{\relax}% +\errmessage{methods environment used outside of class}% +\else\sectclass*{Methods of the \theclass class:}\par% +\fi}{\par} +\newenvironment{properties}{\ifx\theclass{\relax}% +\errmessage{properties environment used outside of class}% +\else\sectclass*{Properties of the \theclass class:}\par% +\fi}{\par} +\newcommand{\subfxname}[1]{\textbf{#1}} +\newcommand{\kcallname}[1]{\textbf{#1}} +\newenvironment{kernelcall}[1]{\def\theclass{#1\xspace}\clearpage\subsection{#1 syscall}% +}{} +\newenvironment{kernelcall*}[1]{\def\theclass{#1\xspace}\subsection{#1 syscall}% +}{} +\newenvironment{subfx}{\ifx\theclass{\relax}% +\errmessage{subfx environment used outside of kernelcall}% +\else\sectclass*{Subfunctions of the \theclass syscall:}\par% +\fi}{\par} --- freesci-0.6.4.orig/debian/watch +++ freesci-0.6.4/debian/watch @@ -0,0 +1,4 @@ +version=3 +http://freesci.linuxgames.com/?page=download \ + .*/freesci-([\d.]+).tar.gz \ + debian --- freesci-0.6.4.orig/patches/01_glibc_getline_conflict.patch +++ freesci-0.6.4/patches/01_glibc_getline_conflict.patch @@ -0,0 +1,48 @@ +# getline() is defined in POSIX2008 and eglibc >=2.10, so rename private +# function of that name to get_line. +# +# Bas Zoetekouw, 2009-10-29 +# +diff -Naur freesci-0.6.4.eerst/src/tools/bdfgname.c freesci-0.6.4/src/tools/bdfgname.c +--- freesci-0.6.4.eerst/src/tools/bdfgname.c 2007-08-19 02:59:31.000000000 +0200 ++++ freesci-0.6.4/src/tools/bdfgname.c 2009-10-29 09:14:00.000000000 +0100 +@@ -47,9 +47,9 @@ + + static int + #ifdef __STDC__ +-getline(FILE *in, char *buf, int limit) ++get_line(FILE *in, char *buf, int limit) + #else +-getline(in, buf, limit) ++get_line(in, buf, limit) + FILE *in; + char *buf; + int limit; +@@ -99,11 +99,11 @@ + + while (!feof(in)) { + pos = ftell(in); +- (void) getline(in, buf, 256); ++ (void) get_line(in, buf, 256); + while (!feof(in) && (buf[0] == 0 || buf[0] == '#')) { + buf[0] = 0; + pos = ftell(in); +- (void) getline(in, buf, 256); ++ (void) get_line(in, buf, 256); + } + + if (buf[0] == 0) +@@ -170,11 +170,11 @@ + + while (!feof(in)) { + pos = ftell(in); +- (void) getline(in, buf, 256); ++ (void) get_line(in, buf, 256); + while (!feof(in) && (buf[0] == 0 || buf[0] == '#')) { + buf[0] = 0; + pos = ftell(in); +- (void) getline(in, buf, 256); ++ (void) get_line(in, buf, 256); + } + + c = _bdf_atol(buf, 0, 16); --- freesci-0.6.4.orig/patches/02_docs_ifpdf.patch +++ freesci-0.6.4/patches/02_docs_ifpdf.patch @@ -0,0 +1,42 @@ +--- freesci-0.6.4/doc/sci.tex 2010-02-08 16:16:18.120366913 +0100 ++++ freesci-0.6.4/doc/sci.tex 2010-02-08 16:16:52.864366665 +0100 +@@ -10,17 +10,17 @@ + % -------------------------------------------- + % Check for PDFLaTeX/LaTeX + % -------------------------------------------- +-\newif\ifpdf ++\newif\ifmakepdf + \ifx\pdfoutput\undefined +-\pdffalse % we are not running PDFLaTeX ++\makepdffalse % we are not running PDFLaTeX + \else + \pdfoutput=1 % we are running PDFLaTeX +-\pdftrue ++\makepdftrue + \fi + % -------------------------------------------- + % Load graphicx package with pdf if needed + % -------------------------------------------- +-\ifpdf ++\ifmakepdf + \usepackage[pdftex]{graphicx} + \pdfcompresslevel=9 + \else +@@ -148,7 +148,7 @@ + % -------------------------------------------- + % Load hyperref package with pdf if needed + % -------------------------------------------- +-\ifpdf ++\ifmakepdf + \usepackage[pdftex,bookmarksnumbered,colorlinks,backref,bookmarks,breaklinks,linktocpage,plainpages=false,pdfstartview=FitH]{hyperref} + \else + \usepackage[bookmarksnumbered,colorlinks,backref,bookmarks,breaklinks,linktocpage,plainpages=false,]{hyperref} +@@ -222,7 +222,7 @@ + \floatstyle{boxed} + \newfloat{algorithm}{ht}{loa}[section] + \floatname{algorithm}{Algorithm} +-\ifpdf ++\ifmakepdf + \DeclareGraphicsExtensions{.pdf,.png,.jpg} + \else + \DeclareGraphicsExtensions{.eps} --- freesci-0.6.4.orig/patches/03_fix_segfault_with_no_x.patch +++ freesci-0.6.4/patches/03_fix_segfault_with_no_x.patch @@ -0,0 +1,23 @@ +Description: fix segfault with no X + Running freesci with no X or with an empty environment + 'env -i /usr/games/freesci' results in a segfault. + This patch avoids calling XGetVisualInfo() if display is NULL. +Bug-Debian: http://bugs.debian.org/715917 +Author: Graham Inggs +Forwarded: No +Last-Update: 2013-11-08 +--- freesci-0.6.4/src/gfx/drivers/xlib_driver.c ++++ freesci-0.6.4/src/gfx/drivers/xlib_driver.c +@@ -668,6 +668,12 @@ + "PseudoColor", "TrueColor", "DirectColor"}; + + printf("Visuals provided by X11 server:\n"); ++ ++ if (!display) { ++ printf(" None!\n"); ++ return; ++ } ++ + visuals = XGetVisualInfo(display, VisualNoMask, &foo, &visuals_nr); + + if (!visuals_nr) { --- freesci-0.6.4.orig/patches/04_fix_format_security.patch +++ freesci-0.6.4/patches/04_fix_format_security.patch @@ -0,0 +1,75 @@ +Description: fix format security + This patch fixes unsafe uses of fprintf and printf. +Bug-Debian: http://bugs.debian.org/664513 +Author: Graham Inggs +Forwarded: No +Last-Update: 2013-11-08 +--- freesci-0.6.4/src/engine/kfile.c ++++ freesci-0.6.4/src/engine/kfile.c +@@ -919,7 +919,7 @@ + + if ((idfile = sci_fopen(game_id_file_name, "w"))) { + +- fprintf(idfile, game_description); ++ fprintf(idfile, "%s", game_description); + fclose(idfile); + + } else { +--- freesci-0.6.4/src/tools/sciunpack.c ++++ freesci-0.6.4/src/tools/sciunpack.c +@@ -223,7 +223,7 @@ + #endif /* DRAW_GRAPHICS */ + ; + +- printf(gcc_3_0_can_kiss_my_ass); ++ printf("%s", gcc_3_0_can_kiss_my_ass); + exit(0); + } + +--- freesci-0.6.4/src/tools/bdf.c ++++ freesci-0.6.4/src/tools/bdf.c +@@ -3042,14 +3042,14 @@ + bpr = ((c->bbx.width * font->bpp) + 7) >> 3; + for (j = 0; bpr != 0 && j < c->bytes; j++) { + if (j && j % bpr == 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "%02X", c->bitmap[j]); + } + /* + * Handle empty bitmaps like this. + */ + if (c->bbx.height > 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "ENDCHAR%s", eol); + + /* +@@ -3116,14 +3116,14 @@ + bpr = ((c->bbx.width * font->bpp) + 7) >> 3; + for (j = 0; bpr != 0 && j < c->bytes; j++) { + if (j && j % bpr == 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "%02X", c->bitmap[j]); + } + /* + * Handle empty bitmaps like this. + */ + if (c->bbx.height > 0) +- fprintf(out, eol); ++ fprintf(out, "%s", eol); + fprintf(out, "ENDCHAR%s", eol); + + /* +--- freesci-0.6.4/src/main.c ++++ freesci-0.6.4/src/main.c +@@ -301,7 +301,7 @@ + if (i != 0) + printf(", "); + +- printf(gfx_get_driver_name(i)); ++ printf("%s", gfx_get_driver_name(i)); + + i++; + }