Browse Source
subrepo: subdir: "libsidplay" merged: "cf98056" upstream: origin: "gitea@gitea.artixlinux.org:packagesL/libsidplay.git" branch: "master" commit: "cf98056" git-subrepo: version: "0.4.0" origin: "???" commit: "???"master
11 changed files with 259 additions and 0 deletions
@ -0,0 +1,33 @@
|
||||
# ---> ArchLinuxPackages |
||||
*.tar |
||||
*.tar.* |
||||
*.jar |
||||
*.exe |
||||
*.msi |
||||
*.zip |
||||
*.tgz |
||||
*.log |
||||
*.log.* |
||||
*.sig |
||||
|
||||
pkg/ |
||||
src/ |
||||
|
||||
|
||||
# ---> Archives |
||||
*.7z |
||||
*.rar |
||||
*.gz |
||||
*.bzip |
||||
*.bz2 |
||||
*.xz |
||||
*.lzma |
||||
*.cab |
||||
|
||||
# ---> systemd |
||||
*.service |
||||
*.socket |
||||
*.timer |
||||
|
||||
# ---> snap |
||||
*.snap |
@ -0,0 +1,12 @@
|
||||
; DO NOT EDIT (unless you know what you are doing) |
||||
; |
||||
; This subdirectory is a git "subrepo", and this file is maintained by the |
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme |
||||
; |
||||
[subrepo] |
||||
remote = gitea@gitea.artixlinux.org:packagesL/libsidplay.git |
||||
branch = master |
||||
commit = cf9805620de6a597496e09858121ae8e2dd6c2db |
||||
parent = 74f12129ea26dfae98518edcfa848e69ea438be8 |
||||
method = merge |
||||
cmdver = 0.4.0 |
@ -0,0 +1,3 @@
|
||||
@Library('artix-ci') import org.artixlinux.RepoPackage |
||||
|
||||
PackagePipeline(new RepoPackage(this)) |
@ -0,0 +1,34 @@
|
||||
# Maintainer: Jan de Groot <jgc@archlinux.org> |
||||
# Contributor: Kritoke <kritoke@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 |
||||
} |
@ -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@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
|
@ -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;
|
@ -0,0 +1,34 @@
|
||||
# Maintainer: Jan de Groot <jgc@archlinux.org> |
||||
# Contributor: Kritoke <kritoke@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 |
||||
} |
@ -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@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
|
@ -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;
|
Loading…
Reference in new issue