Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesL/libsidplay.git libsidplay

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
artoo 3 years ago
parent
commit
11ea63e383
Signed by: artoo
GPG Key ID: 3292CD0BB0DB310B
  1. 5
      libsidplay/.artixlinux/agent.yaml
  2. 33
      libsidplay/.gitignore
  3. 12
      libsidplay/.gitrepo
  4. 3
      libsidplay/Jenkinsfile
  5. 2
      libsidplay/README.md
  6. 34
      libsidplay/repos/extra-x86_64/PKGBUILD
  7. 28
      libsidplay/repos/extra-x86_64/g++-6_build.patch
  8. 40
      libsidplay/repos/extra-x86_64/libsidplay-1.36.59-gcc43.patch
  9. 34
      libsidplay/trunk/PKGBUILD
  10. 28
      libsidplay/trunk/g++-6_build.patch
  11. 40
      libsidplay/trunk/libsidplay-1.36.59-gcc43.patch

5
libsidplay/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
libsidplay/.gitignore vendored

@ -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

12
libsidplay/.gitrepo

@ -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

3
libsidplay/Jenkinsfile vendored

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
libsidplay/README.md

@ -0,0 +1,2 @@
# libsidplay

34
libsidplay/repos/extra-x86_64/PKGBUILD

@ -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
}

28
libsidplay/repos/extra-x86_64/g++-6_build.patch

@ -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

40
libsidplay/repos/extra-x86_64/libsidplay-1.36.59-gcc43.patch

@ -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;

34
libsidplay/trunk/PKGBUILD

@ -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
}

28
libsidplay/trunk/g++-6_build.patch

@ -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

40
libsidplay/trunk/libsidplay-1.36.59-gcc43.patch

@ -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…
Cancel
Save