--- libsidplay-1.36.59.orig/acinclude.m4 +++ libsidplay-1.36.59/acinclude.m4 @@ -75,8 +75,10 @@ [ AC_TRY_COMPILE( [ -#include -#include +#include +#include + +using namespace std; ], [ ifstream myTest("test",ios::in|ios::binary); --- libsidplay-1.36.59.orig/configure +++ libsidplay-1.36.59/configure @@ -2869,13 +2869,15 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -#include +#include +#include int main () { +using namespace std; + ifstream myTest("test",ios::in|ios::binary); ; --- libsidplay-1.36.59.orig/debian/libsidplay1-dev.files +++ libsidplay-1.36.59/debian/libsidplay1-dev.files @@ -0,0 +1,4 @@ +usr/include/sidplay +usr/lib/lib*.la +usr/lib/lib*.a +usr/lib/lib*.so --- libsidplay-1.36.59.orig/debian/libsidplay1.shlibs +++ libsidplay-1.36.59/debian/libsidplay1.shlibs @@ -0,0 +1 @@ +libsidplay 1 libsidplay1 --- libsidplay-1.36.59.orig/debian/libsidplay1-dev.docs +++ libsidplay-1.36.59/debian/libsidplay1-dev.docs @@ -0,0 +1,3 @@ +AUTHORS +DEVELOPER +src/*.txt --- libsidplay-1.36.59.orig/debian/copyright +++ libsidplay-1.36.59/debian/copyright @@ -0,0 +1,57 @@ +This package was debianised, prepackaged and is currently maintained +by me, Ulf Jaenicke-Roessler , from the sources that +I obtained from the SidPlay HomePage at + http://www.geocities.com/SiliconValley/Lakes/5147/ + +Packaging was taken over by Ivo Timmermans on Wed, 29 Aug +2001 21:53:58 +0200; and later it was changed to Laszlo Boszormenyi + on Sat, 14 Aug 2004 13:42:14 +0000. + +For information about necessary (small) changes, including remarks about +adding support for the Debian package maintenance scheme (ie. about creating +various debian/* files and additional considerations) see README.Debian. + + +Copyright: + +Modifications for Debian Copyright (C) 1997-2001 Ulf Jaenicke-Roessler. + +sidplay is released under terms of the GNU General Public License +(see /usr/share/common-licenses/GPL for details) with the following +additional notes and disclaimers by the author: + +SIDPLAY, a C64 music player and SID chip emulator +Copyright (c) 1994-1997 Michael Schwendt + +This version of the freely available SIDPLAY emulator engine source code +contains the following contributed or derived work, in no particular order: + + Noise generation algorithm is used courtesy of Asger Alstrup Nielsen. + His original publication can be found on the SID home page. + + Noise table optimization proposed by Phillip Wooller. + + MOS-8580 R5 read-out combined waveforms by Dennis Lindroos. + + MOS-6581 read-out combined waveforms by Dag Lem. + + Peter Kunath provided an examplary source code to examine an Amiga + icon file. + + Vincent Penné contributed a fixed-point class. + +----------------------------------------------------------------------------- + + This program 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 of the License, or + (at your option) any later version. + + This program 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 + along with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. --- libsidplay-1.36.59.orig/debian/compat +++ libsidplay-1.36.59/debian/compat @@ -0,0 +1 @@ +4 --- libsidplay-1.36.59.orig/debian/ToDo +++ libsidplay-1.36.59/debian/ToDo @@ -0,0 +1,14 @@ +ToDo list for Debian + +* apply patches architecture dependent (especially optimization patches), + eg. libsidplay-1.36.36-optimize.patch or libsidplay-ix86-optimize.patch + -> this was introduced in version 1.36.38 and needs to be tested +* solving general packaging or compilation problems, if any + (there was once ;-) one not reproducable bug reported with package + building on PowerPC which I closed because the submitter did not + reply to a couple of pleas for more details) + + +Ulf Jaenicke-Roessler , Tue, 13 Feb 2001 21:01:36 +0100 + + vim:tw=79 --- libsidplay-1.36.59.orig/debian/libsidplay1.files +++ libsidplay-1.36.59/debian/libsidplay1.files @@ -0,0 +1 @@ +usr/lib/*.so.* --- libsidplay-1.36.59.orig/debian/libsidplay1.dirs +++ libsidplay-1.36.59/debian/libsidplay1.dirs @@ -0,0 +1 @@ +usr/lib --- libsidplay-1.36.59.orig/debian/changelog +++ libsidplay-1.36.59/debian/changelog @@ -0,0 +1,427 @@ +libsidplay (1.36.59-5ubuntu1) saucy; urgency=low + + * Use dh_autotools-dev to update config.sub/guess for arm64. + + -- William Grant Wed, 16 Oct 2013 13:37:47 +1100 + +libsidplay (1.36.59-5) unstable; urgency=low + + * Fix SID_CHECK_IOS_BIN in acinclude.m4 and configure (closes: #454870). + * Fix minor packaging issues and update to Standards-Version 3.7.3 . + + -- Laszlo Boszormenyi (GCS) Thu, 17 Jan 2008 20:55:18 +0200 + +libsidplay (1.36.59-4) unstable; urgency=low + + * Fix override disparity (closes: #325191). + + -- Laszlo Boszormenyi (GCS) Fri, 30 Sep 2005 17:51:21 +0200 + +libsidplay (1.36.59-3) unstable; urgency=low + + * Drop c102 suffix from the package names due to C++ ABI transition. + + -- Laszlo Boszormenyi (GCS) Sun, 17 Jul 2005 06:57:44 +0200 + +libsidplay (1.36.59-2) unstable; urgency=low + + * Remove bogus AM_MAINTAINER_MODE from configure.in ; fails if only + autoconf is installed. + + -- Laszlo Boszormenyi (GCS) Thu, 2 Dec 2004 16:02:07 +0100 + +libsidplay (1.36.59-1) unstable; urgency=low + + * New upstream release. + * Changed email address. + + -- Laszlo Boszormenyi (GCS) Thu, 25 Nov 2004 20:04:30 +0100 + +libsidplay (1.36.58-1) unstable; urgency=medium + + * Fix FTBFS with gcc 3.4, thanks to Andreas Jochens ; + so urgency set to medium (closes: #259444). + * Bump up Standards-Version to 3.6.1, no changes needed. + * Versioned debhelper dependency and clean up rules a bit. + * New upstream release. + * New maintainer; document maintainer changes in copyright. + + -- László Böszörményi (GCS) Sat, 14 Aug 2004 13:42:14 +0000 + +libsidplay (1.36.57-3) unstable; urgency=low + + * debian/control: Use Suggests instead of Recommends to point to + sidplay-base. (Closes: #183677) + + -- Ivo Timmermans Tue, 11 Mar 2003 17:07:43 +0100 + +libsidplay (1.36.57-2) unstable; urgency=low + + * Rename libsidplay1 to libsidplay1-c102 for the C++-transition. + + -- Ivo Timmermans Thu, 9 Jan 2003 12:38:08 +0100 + +libsidplay (1.36.57-1) unstable; urgency=low + + * New upstream release + * debian/control: + - Change Priority to optional. + - Update Standards-Version. + * Applied patch to fix signed/unsigned char differences. (Closes: #159966) + + -- Ivo Timmermans Tue, 12 Nov 2002 00:01:52 +0100 + +libsidplay (1.36.56-1) unstable; urgency=low + + * New upstream release. + * debian/libsidplay1-dev.shlibs: Renamed to libsidplay1.shlibs. + (Closes: #159918) + + -- Ivo Timmermans Sat, 7 Sep 2002 13:39:27 +0200 + +libsidplay (1.36.55-2) unstable; urgency=low + + * configure.in: Add AM_MAINTAINER_MODE. (Closes: #156845) + + -- Ivo Timmermans Thu, 15 Aug 2002 23:50:15 +0200 + +libsidplay (1.36.55-1) unstable; urgency=low + + * New upstream release. + * NMU ack (Closes: #104896) + * src/sidtune.cpp: Don't open files with ios::ate, which would _create_ + the file. Obviously unwanted behavior, and a seek is called afterward + anyway. (Closes: #156375) + * debian/*: Cleaned up, use newer debhelper infrastructure. + * scripts/config.{guess,sub}: Updated. + * scripts/ltmain.sh: Ran libtoolize --force --copy + * aclocal.m4: Ran aclocal. + * configure: Ran autoconf. + + -- Ivo Timmermans Thu, 15 Aug 2002 22:28:09 +0200 + +libsidplay (1.36.47-2.2) unstable; urgency=low + + * NMU + * Oops, this needs to build on other archs too... use ios::openmode + instead of ios_base::openmode, as I should have done the + first time. + + -- Randolph Chung Wed, 6 Feb 2002 23:45:10 -0800 + +libsidplay (1.36.47-2.1) unstable; urgency=low + + * NMU + * libtoolize --force to update libtool and autoconf setup + * g++3/libstdc++3 fixes (Closes: #104896) + + -- Randolph Chung Sun, 3 Feb 2002 23:34:31 -0800 + +libsidplay (1.36.47-2) unstable; urgency=low + + * New maintainer. + * Updated standards version to mach current policy. + + -- Ivo Timmermans Wed, 29 Aug 2001 21:53:58 +0200 + +libsidplay (1.36.47-1) unstable; urgency=low + + * New upstream version. + + -- Ulf Jaenicke-Roessler Tue, 13 Feb 2001 20:47:12 +0100 + +libsidplay (1.36.46-1) unstable; urgency=low + + * New upstream version. + + -- Ulf Jaenicke-Roessler Sat, 2 Dec 2000 21:30:58 +0100 + +libsidplay (1.36.45-2) unstable; urgency=low + + * Rebuilt for newer libstdc++ in order to prevent + problems with xsidplay. + + -- Ulf Jaenicke-Roessler Mon, 16 Oct 2000 12:23:43 +0200 + +libsidplay (1.36.45-1) unstable; urgency=low + + * New upstream version. Should be the last of a series of stability + fixes. More work will be done on sidplay2. + + -- Ulf Jaenicke-Roessler Sat, 26 Aug 2000 19:15:48 +0200 + +libsidplay (1.36.40-1) unstable; urgency=low + + * New upstream version. + + -- Ulf Jaenicke-Roessler Thu, 6 Jul 2000 21:09:52 +0200 + +libsidplay (1.36.39-1) unstable; urgency=low + + * New upstream version. + * Added Build-Depends: debhelper (Closes: #65872). + * Removed Build-Depends: libtool, all necessary files are in the package. + + -- Ulf Jaenicke-Roessler Sun, 25 Jun 2000 12:12:34 +0200 + +libsidplay (1.36.38-1) unstable; urgency=low + + * New upstream version. + * Apply an Intel specific patch during package building, only if + building on Intel, of course. + + -- Ulf Jaenicke-Roessler Sun, 28 May 2000 22:10:54 +0200 + +libsidplay (1.36.36-1) unstable; urgency=low + + * Upstream author had split the old package into libsidplay and + sidplay-base (the latter with a lower version number - no need + for an epoch, though, because of the name change). + * Upstream build procedure uses libtool now. + * Soname changed by upstream author to 1 (instead of 1.36), so + I had to change the package name... + * Policy conformance to 3.1.1.1 checked and number raised in + debian/control. Had to add Build-Depends for libtool. + * Left out some old docs, which should be outdated as they mainly + contained information regarding patches for older versions. + + -- Ulf Jaenicke-Roessler Fri, 12 May 2000 16:45:47 +0200 + +sidplay (1.36.35-2) unstable; urgency=low + + * Adapted to policy 3.0.1 (which essentially needed the FHS compliant + move from /usr/doc to /usr/share/doc). Standard version changed. + * Link to GPL adjusted for new position. + + -- Ulf Jaenicke-Roessler Tue, 12 Oct 1999 23:15:23 +0200 + +sidplay (1.36.35-1) unstable; urgency=low + + * New upstream version. + * HVSC homepage URL in package description updated. + * Shortened rules file by removing several outdated comments. + * Standards version changed from 2.5.0.0 to 2.5.0. + + -- Ulf Jaenicke-Roessler Sat, 19 Jun 1999 12:38:38 +0200 + +sidplay (1.36.34-oss-1) unstable; urgency=low + + * Upstream patch adds new OSS driver interface. Now 16-bit samples + work fine on SPARC/Linux with little-endian sound hardware. + * Include all doc files in debian/docs, not debian/rules. + + -- Ulf Jaenicke-Roessler Sat, 17 Apr 1999 17:52:28 +0200 + +sidplay (1.36.34-4) unstable; urgency=low + + * Do not create 'package'/DEBIAN directory - let debhelper do it. + + -- Ulf Jaenicke-Roessler Fri, 2 Apr 1999 19:30:02 +0200 + +sidplay (1.36.34-3) unstable; urgency=low + + * Fixed libsidplay1.36 dependencies to prevent usage of + shared libraries compiled against glibc 2.0 which will + not work in glibc 2.1 environment. + * Removed bashisms in rules file - should build fine with + /bin/sh linked to /bin/ash. + + -- Ulf Jaenicke-Roessler Fri, 2 Apr 1999 18:58:10 +0200 + +sidplay (1.36.34-2) unstable; urgency=low + + * Recompiled for glibc 2.1. + + -- Ulf Jaenicke-Roessler Mon, 29 Mar 1999 09:40:17 +0200 + +sidplay (1.36.34-1) unstable; urgency=low + + * New upstream patches. + * Reversing an essentially i386 specific patch, which may cause + problems on other architectures. ToDo: apply patch architecture + dependent. + + -- Ulf Jaenicke-Roessler Mon, 15 Mar 1999 21:03:41 +0100 + +sidplay (1.36.33-990220-2) unstable; urgency=low + + * Updated documentation from upstream sources. + * Reversed a small patch in order to avoid the bus error on sparc + systems. + * Tweaked description a little bit: there are now more than 10.000 + files in the High Voltage SID Collection (3.0)! + * HVSC homepage URL updated. + + -- Ulf Jaenicke-Roessler Tue, 9 Mar 1999 23:18:35 +0100 + +sidplay (1.36.33-990220-1) unstable; urgency=low + + * Upstream patches applied for new version. + * Read /usr/doc/libsidplay1.36/1.36.33.txt for information + about this particular release. + * Changes in the demo player (better ^C handling for current kernels, + added '--help'). + * doc-base registration now handled by dh_installdocs - at least + debhelper 1.2.26 needed (doc-base was broken before). + + -- Ulf Jaenicke-Roessler Sat, 20 Feb 1999 20:37:54 +0100 + +sidplay (1.36.31-2) unstable; urgency=low + + * Recompiled with fixed libc. + * Registers with doc-base (removed menu file for dwww). + + -- Ulf Jaenicke-Roessler Sat, 19 Dec 1998 14:48:24 +0100 + +sidplay (1.36.31-1) unstable; urgency=low + + * Upstream patches applied for new version. + * Policy conformance checked and 'Standards-Version' updated to 2.5.0.0 - + hopefully I didn't miss something. + + -- Ulf Jaenicke-Roessler Sat, 5 Dec 1998 20:58:57 +0100 + +sidplay (1.36.29-1) unstable; urgency=low + + * New version. + * Major, important ;-) changes to 'Readme.Debian' and 'copyright'. + + -- Ulf Jaenicke-Roessler Wed, 18 Nov 1998 19:15:38 +0100 + +sidplay (1.36.28-2) unstable; urgency=low + + * Added target 'distclean' to Makefile.in, use it in + 'debian/rules clean' (Fixes:#27596). + + -- Ulf Jaenicke-Roessler Wed, 14 Oct 1998 22:32:06 +0200 + +sidplay (1.36.28-1) unstable; urgency=low + + * New version. + + -- Ulf Jaenicke-Roessler Mon, 5 Oct 1998 21:42:41 +0200 + +sidplay (1.36.26-1) unstable; urgency=low + + * New version. + + -- Ulf Jaenicke-Roessler Wed, 30 Sep 1998 20:23:07 +0200 + +sidplay (1.36.25-2) unstable; urgency=low + + * Compiled and linked with libstdc++2.9. + + -- Ulf Jaenicke-Roessler Mon, 14 Sep 1998 23:48:29 +0200 + +sidplay (1.36.25-1) unstable; urgency=low + + * New upstream version. + * Calls ./configure in debian/rules, because it doesn't take long to + execute and it may help building the package for other architectures + and other compiler environments (eg. gcc instead of egcc) (Fixes:#23931). + + -- Ulf Jaenicke-Roessler Sun, 2 Aug 1998 12:58:16 +0200 + +sidplay (1.36.24-1) unstable; urgency=low + + * New upstream version (small bugfix). + + -- Ulf Jaenicke-Roessler Thu, 4 Jun 1998 21:56:36 +0200 + +sidplay (1.36.23-1) unstable; urgency=low + + * New upstream version. + * Reworked debian/rules to make use of autoconf support. + + -- Ulf Jaenicke-Roessler Mon, 1 Jun 1998 13:16:14 +0200 + +sidplay (1.36.18-1) unstable; urgency=low + + * New upstream version. + * Moved menu entry for dwww based offline documentation from xsidplay to + libsidplay, because this package actually contains the documentation. + * Changed major version of the library from 1 to 1.36 in order to + synchronize with the upstream sources again. + + -- Ulf Jaenicke-Roessler Mon, 27 Apr 1998 22:29:59 +0200 + +sidplay (1.36.15-2) frozen unstable; urgency=low + + * Incorporated diff's by Christian Meder + from his alpha only release (replaced dependence on libg++-dev by + dependence on libstdc++-dev; removed 'CC=egcc' from debian/rules). + + -- Ulf Jaenicke-Roessler Mon, 20 Apr 1998 18:11:37 +0200 + +sidplay (1.36.15-1.1) frozen unstable; urgency=low + + * Non maintainer alpha only release + * now depends on libstdc++-dev requested by + Ray jdassen@wi.leidenuniv.nl + * removed CC=egcc from debian/rules as g++ is now from the + egcs suite + * patch forwarded to bug system + + -- Christian Meder Wed, 15 Apr 1998 13:02:01 +0200 + +sidplay (1.36.15-1) frozen unstable; urgency=low + + * New upstream version (pristine 1.36.13, with patches). + * Compiled with egcs (pre 1.0.2), which solved several problems that + gcc had (-O2 and -g, -fPIC and certain tunes). + * Explicitly linked with -lc. + * The package called ldconfig in postrm only if not upgrading, + but I removed this anyway to satisfy lintian. + * Includes now the documentation from the SidPlay homepage for + offline reading. + + -- Ulf Jaenicke-Roessler Mon, 30 Mar 1998 20:27:22 +0200 + +sidplay (1.36.11-1) unstable; urgency=low + + * New upstream version. + * Don't use control file "du" anymore. + * Made /usr/doc/sidplay a symlink to /usr/doc/libsidplay1 (Fixes:#18648). + * Rewrote the detailed descriptions in debian/control in order to reflect + the changed "main" package. + * Lintian (0.2.4) approved. + + -- Ulf Jaenicke-Roessler Sat, 7 Mar 1998 23:30:00 +0100 + +sidplay (1.36.10-2) unstable; urgency=low + + * Failing to play certain SID tunes was caused by '-O2' AND '-fPIC', + however using '-O1' together with '-fPIC' seems to work fine. + + -- Ulf Jaenicke-Roessler Sat, 31 Jan 1998 19:55:27 +0100 + +sidplay (1.36.10-1) unstable; urgency=low + + * New upstream version. + * debian/rules rewritten, use debhelper instead of several + 'install's and 'cp's. + * Changed "main" package from sidplay (kind of sample application) + to libsidplay1, yielding simpler dh_* calls. + * "Downgraded" policy conformance to 2.3.0.0 :(, in order to match debhelper. + * Suggests xsidplay now. + + -- Ulf Jaenicke-Roessler Thu, 29 Jan 1998 21:22:29 +0100 + +sidplay (1.36.9-1) unstable; urgency=low + + * New upstream version. + * Added maintainer scripts (postinst, postrm), that merely call + ldconfig. This wouldn't be necessary according to the current + policy, but was recommended on the debian-mentors mailing list. + * Moved *.so link from the shared library package to the dev package. + + -- Ulf Jaenicke-Roessler Wed, 7 Jan 1998 22:29:28 +0100 + +sidplay (1.36.3-1) unstable; urgency=low + + * Initial Release. + + -- Ulf Jaenicke-Roessler Sun, 7 Dec 1997 12:35:35 +0100 + + + --- libsidplay-1.36.59.orig/debian/README.Debian +++ libsidplay-1.36.59/debian/README.Debian @@ -0,0 +1,67 @@ +libsidplay for DEBIAN/Linux +**************************** + +This package was debianised, packaged and is currently maintained by me, +Ulf Jaenicke-Roessler , from the sources that I obtained +from the SidPlay HomePage at + http://www.geocities.com/SiliconValley/Lakes/5147/ +Packaging was taken over by Laszlo Boszormenyi (GCS) +The author can be reached by mailing him to sidplay@geocities.com. + +Generally I'm using pristine sources (since version 1.36.11). +First, there were .tgz's provided by the author. Later on he +moved to src.rpm's. These were unpacked by + rpm -i sidplay-{version}.src.rpm +and + rpm -bp sidplay-{version}.spec (or just rpm -bp sidplay.spec) +So far, both libsidplay and sidplay were distributed in one package. +However, recently the upstream archives are split into libsidplay +and sidplay-base. We will use this layout too. +Sometimes the author supplies patches for new upstream versions before +he uploads a complete new version to the location above. These patches +are also used if appropriate. + +Version 1.36.20 (and newer) use GNU autoconf. ./configure is automatically +run as part of rpm -bp, which agrees perfectly to our policy and +packaging manual. Unfortunately, it doesn't simplify the package build +in debian/rules very much, because we need to compile static and shared +libraries with different compiler flags. +Besides, the cache file remains in the archive and doesn't get rebuild on +other architecture (simply because it exists). First, I added a 'distclean' +target to Makefile.in myself, now it is already included in the upstream +sources. This means, we can call it in "debian/rules clean" and (re)run +./configure afterwards during "debian/rules build" to recreate the +information on every other supported architecture. + +In 1.36.18 I changed the major version of the library (and therefore its +soname as well) from 1 to 1.36 in order to synchronize with the upstream +sources again (the upstream author made this change already in 1.36.11). + +Starting in version 1.36.36 (maybe that was the reason for the splitting), +libtool is used. Unfortunately, somehow this changed the sonames to 1.0.0, +which is not any longer consistent with the library version and could in +fact violate policy somehow. I must admit, I have not yet completely understood +the libtool usage, so I have still to investigate this. But hey, that's +what unstable is for... + +The only really remarkable point while adding support for the Debian package +maintenance scheme was the execution of the upstream Makefiles with CXXFLAGS +including -fPIC and -D_REENTRANT (according to the policy manual). + +Don't use gcc/g++ 2.7.2 with optimisation to build this package! It will +produce bad code. Fortunately, gcc/g++ > 2.95 is now the default C/C++ +compiler in Debian. The egcs successor seems to create stable programs with +all necessary commandline options, even -fPIC, -g and optimizations (what gcc +didn't). + +The package contains now the updated html-info files from the SidPlay-Homepage, +which don't actually belong to the upstream source, but fit very well (IMHO). +This is an invaluable piece of information for SidPlay interna and background. +These files replace the outdated sidplay-info files, which were included in +previous versions. +The files are small enough to justify the addition, and to prevent splitting +them into something like a libsidplay-doc package. + +Ulf Jaenicke-Roessler , Fri, 12 May 2000 15:32:48 +0200 + + vim:tw=79 --- libsidplay-1.36.59.orig/debian/libsidplay1-dev.dirs +++ libsidplay-1.36.59/debian/libsidplay1-dev.dirs @@ -0,0 +1,2 @@ +usr/include/sidplay +usr/lib --- libsidplay-1.36.59.orig/debian/control +++ libsidplay-1.36.59/debian/control @@ -0,0 +1,36 @@ +Source: libsidplay +Section: sound +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Laszlo Boszormenyi (GCS) +Standards-Version: 3.7.3 +Build-Depends: debhelper (>> 4.0.0), patch, autotools-dev + +Package: libsidplay1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: libsidplay1.36, sidplay (<=1.36.36), libsidplay1-c102 (<=1.36.59-2) +Replaces: libsidplay1.36, libsidplay1-c102 (<=1.36.59-2) +Suggests: sidplay-base, xsidplay +Description: SID (MOS 6581) emulation library + This is a (shared) library that implements the emulation of the C64's + SID chip (MOS 6581) and CPU (6510). It is used by several "player" + applications, e.g. sidplay, which make it possible to listen to *really* + a lot (13.600+) of tunes, known from old and new C64 programs (as well + as Amiga compositions). + Find most of the available musics from your favourite games or demos + and more in the High Voltage SID Collection (HVSC). For downloads and + information about the volunteers, who maintain the collection, look at + the HVSC homepage http://www.hvsc.c64.org. + +Package: libsidplay1-dev +Section: libdevel +Architecture: any +Depends: libsidplay1 (>=1.36.59-3), libc6-dev, libstdc++-dev +Conflicts: libsidplay1.36-dev +Replaces: libsidplay1.36-dev +Description: SID (MOS 6581) emulation library (development files) + Here are the header files and a static library that are necessary to compile + applications which use libsidplay. + --- libsidplay-1.36.59.orig/debian/rules +++ libsidplay-1.36.59/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f +# debian/rules for sidplay and associated packages, (C) 1998-2001 by ujr. +# Made using the sample rules from debhelper [GNU copyrighted by Joey Hess]. + +## Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +## Uncomment this to see what should happen. +#export DH_NO_ACT=1 + +build: build-stamp +build-stamp: + dh_testdir debian/rules src + dh_autotools-dev_updateconfig +# well, ./configure isn't interactive here and doesn't take long, so it's +# carried out in order to assist building the package for people with other +# architectures and compiler environments + ./configure --prefix=/usr +# Intel specific optimization patch! + if test `dpkg --print-architecture` = i386; then \ + if test ! -f src/libcfg.h.in.org; then cp -a src/libcfg.h.in src/libcfg.h.in.org; fi; \ + set +e; \ + patch -p1 -N < libsidplay-ix86-optimize.patch; \ + set -e; \ + fi +# Make the library - since 1.36.36 it seems no longer necessary to build +# shared and static libraries separately, because of libtool usage... +# We should use egcs or g++>2.95 in order to prevent problems occuring +# with '-O2 -fPIC' or '-g'. +# Chopped down the CXXFLAGS, just use -D_REENTRANT as required by Policy +# Old: +# $(MAKE) CXXFLAGS="-pipe -funroll-loops -O3 -g -Wall -D_REENTRANT" \ +# LDFLAGS="-lc" + $(MAKE) CXXFLAGS="-O3 -g -Wall -D_REENTRANT" LDFLAGS="-lstdc++" + touch build-stamp + +clean: + dh_testroot + dh_testdir debian/rules src + -rm -f build-stamp + -cp -a src/libcfg.h.in.org src/libcfg.h.in + -rm src/libcfg.h.in.org + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.log + rm -f conftest* + dh_autotools-dev_restoreconfig + dh_clean + +# Build architecture-independent files here. +binary-indep: build +# Nothing to do here. + +# Build architecture-dependent files here. +binary-arch: build + dh_testroot + dh_testdir debian/rules src + dh_clean -k + dh_installdirs -A + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp/ install + dh_movefiles + dh_installdocs + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary + +# vim:tw=0 + --- libsidplay-1.36.59.orig/src/sidtune.cpp +++ libsidplay-1.36.59/src/sidtune.cpp @@ -35,6 +35,8 @@ #include "myendian.h" #include "pp.h" +using namespace std; + const char text_songNumberExceed[] = "WARNING: Selected song number was too high"; const char text_emptyFile[] = "ERROR: File is empty"; @@ -307,9 +309,9 @@ } // Open binary input file stream at end of file. #if defined(SID_HAVE_IOS_BIN) - ifstream myIn( fileName, ios::in|ios::bin|ios::ate ); + ifstream myIn( fileName, ios::in|ios::bin ); #else - ifstream myIn( fileName, ios::in|ios::binary|ios::ate ); + ifstream myIn( fileName, ios::in|ios::binary ); #endif // As a replacement for !is_open(), bad() and the NOT-operator // don't seem to work on all systems. --- libsidplay-1.36.59.orig/src/smart.h +++ libsidplay-1.36.59/src/smart.h @@ -17,16 +17,16 @@ doFree = bufOwner; if ( bufferLen >= 1 ) { - pBufCurrent = ( bufBegin = buffer ); - bufEnd = bufBegin + bufferLen; - bufLen = bufferLen; - status = true; + this->pBufCurrent = ( this->bufBegin = buffer ); + this->bufEnd = this->bufBegin + bufferLen; + this->bufLen = bufferLen; + this->status = true; } else { - pBufCurrent = ( bufBegin = ( bufEnd = 0 )); - bufLen = 0; - status = false; + this->pBufCurrent = ( this->bufBegin = ( this->bufEnd = 0 )); + this->bufLen = 0; + this->status = false; } } --- libsidplay-1.36.59.orig/src/pp_.cpp +++ libsidplay-1.36.59/src/pp_.cpp @@ -40,6 +40,8 @@ static bool isCompressed; static bool globalError; +using namespace std; + // Move four bytes to Motorola big-endian double-word. static inline void bytesTOudword()