[arch-commits] Commit in libsidplay/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 21:21:38 UTC 2018


    Date: Friday, November 9, 2018 @ 21:21:38
  Author: foutrelis
Revision: 338562

archrelease: copy trunk to staging-x86_64

Added:
  libsidplay/repos/staging-x86_64/
  libsidplay/repos/staging-x86_64/PKGBUILD
    (from rev 338561, libsidplay/trunk/PKGBUILD)
  libsidplay/repos/staging-x86_64/g++-6_build.patch
    (from rev 338561, libsidplay/trunk/g++-6_build.patch)
  libsidplay/repos/staging-x86_64/libsidplay-1.36.59-gcc43.patch
    (from rev 338561, libsidplay/trunk/libsidplay-1.36.59-gcc43.patch)

--------------------------------+
 PKGBUILD                       |   34 +++++++++++++++++++++++++++++++++
 g++-6_build.patch              |   28 +++++++++++++++++++++++++++
 libsidplay-1.36.59-gcc43.patch |   40 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+)

Copied: libsidplay/repos/staging-x86_64/PKGBUILD (from rev 338561, libsidplay/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-11-09 21:21:38 UTC (rev 338562)
@@ -0,0 +1,34 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Kritoke <kritoke at gamebox.net>
+
+pkgname=libsidplay
+pkgver=1.36.59
+pkgrel=9
+pkgdesc="A library for playing SID music files."
+arch=('x86_64')
+url="http://critical.ch/distfiles/"
+license=('GPL')
+depends=('gcc-libs')
+source=(http://critical.ch/distfiles/${pkgname}-${pkgver}.tgz
+        libsidplay-1.36.59-gcc43.patch
+        g++-6_build.patch)
+sha256sums=('3da9b38d4eb5bf9e936b9604ba92da0594ef38047d50cf806a8e11c400008024'
+            '68476bfee9a378b045c81eb0f6d9aee7341610fe6b22047d67ce859a7a3b5053'
+            '6612b8c684bfd80d88431d3aa7f5a3fc911528f25f67ab530f78a7592cc11e23')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i ../libsidplay-1.36.59-gcc43.patch
+  patch -Np1 -i ../g++-6_build.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}

Copied: libsidplay/repos/staging-x86_64/g++-6_build.patch (from rev 338561, libsidplay/trunk/g++-6_build.patch)
===================================================================
--- staging-x86_64/g++-6_build.patch	                        (rev 0)
+++ staging-x86_64/g++-6_build.patch	2018-11-09 21:21:38 UTC (rev 338562)
@@ -0,0 +1,28 @@
+Description: use unsigned char to keep int value
+ Use unsigned char to keep all bits of int values in the array.
+Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
+Bug-Debian: https://bugs.debian.org/811762
+Last-Update: 2016-07-16
+
+---
+
+--- libsidplay-1.36.59.orig/src/samples.cpp
++++ libsidplay-1.36.59/src/samples.cpp
+@@ -75,7 +75,7 @@ struct sampleChannel
+ sampleChannel ch4, ch5;
+ 
+ 
+-const sbyte galwayNoiseTab1[16] =
++const ubyte galwayNoiseTab1[16] =
+ {
+ 	0x80,0x91,0xa2,0xb3,0xc4,0xd5,0xe6,0xf7,
+ 	0x08,0x19,0x2a,0x3b,0x4c,0x5d,0x6e,0x7f
+@@ -84,7 +84,7 @@ const sbyte galwayNoiseTab1[16] =
+ ubyte galwayNoiseVolTab[16];
+ sbyte galwayNoiseSamTab[16];
+ 
+-const sbyte sampleConvertTab[16] =
++const ubyte sampleConvertTab[16] =
+ {
+ //  0x81,0x99,0xaa,0xbb,0xcc,0xdd,0xee,0xff,
+ //  0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x7f

Copied: libsidplay/repos/staging-x86_64/libsidplay-1.36.59-gcc43.patch (from rev 338561, libsidplay/trunk/libsidplay-1.36.59-gcc43.patch)
===================================================================
--- staging-x86_64/libsidplay-1.36.59-gcc43.patch	                        (rev 0)
+++ staging-x86_64/libsidplay-1.36.59-gcc43.patch	2018-11-09 21:21:38 UTC (rev 338562)
@@ -0,0 +1,40 @@
+diff --git a/src/sidtune.cpp b/src/sidtune.cpp
+index 4d1d33b..6fbae80 100644
+--- a/src/sidtune.cpp
++++ b/src/sidtune.cpp
+@@ -306,11 +306,7 @@ udword sidTune::loadFile(const char* fileName, ubyte** bufferRef)
+         return 0;
+     }
+     // Open binary input file stream at end of file.
+-#if defined(SID_HAVE_IOS_BIN)
+-	ifstream myIn( fileName, ios::in|ios::bin|ios::ate );
+-#else
+ 	ifstream myIn( fileName, ios::in|ios::binary|ios::ate );
+-#endif
+ 	// As a replacement for !is_open(), bad() and the NOT-operator
+     // don't seem to work on all systems.
+ #if defined(SID_DONT_HAVE_IS_OPEN)
+@@ -972,11 +968,7 @@ bool sidTune::saveC64dataFile( const char* fileName, bool overWriteFlag )
+         }
+ 		// Open binary output file stream.
+         else
+-#if defined(SID_HAVE_IOS_BIN)
+-            fMyOut.open( fileName, ios::out|ios::bin|ios::trunc );
+-#else
+             fMyOut.open( fileName, ios::out|ios::binary|ios::trunc );
+-#endif
+ 		if ( !fMyOut )
+ 		{ 
+ 			info.statusString = text_cantCreateFile;
+@@ -1061,11 +1053,7 @@ bool sidTune::savePSIDfile( const char* fileName, bool overWriteFlag )
+         }
+ 		// Open binary output file stream.
+         else
+-#if defined(SID_HAVE_IOS_BIN)
+-            fMyOut.open( fileName, ios::out|ios::bin|ios::trunc );
+-#else
+             fMyOut.open( fileName, ios::out|ios::binary|ios::trunc );
+-#endif
+ 		if ( !fMyOut )
+ 		{
+ 			info.statusString = text_cantCreateFile;



More information about the arch-commits mailing list