From 455c6fdc3c89cb8c00588cac246fd71dded7fe74 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:46:24 +0100 Subject: [PATCH] rebuilt with debug package and aarch64 build fix [release 1.36.59-4mamba;Mon Dec 21 2020] --- README.md | 7 +------ libsidplay-1.36.59-gcc-10.2.0.patch | 28 ++++++++++++++++++++++++++ libsidplay.spec | 31 +++++++++++++++-------------- 3 files changed, 45 insertions(+), 21 deletions(-) create mode 100644 libsidplay-1.36.59-gcc-10.2.0.patch diff --git a/README.md b/README.md index b1b5fcf..cc68760 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,5 @@ # libsidplay -This library provides the Sound Interface Device (SID) chip emulator -engine that is used by music player programs like SIDPLAY. +This library provides the Sound Interface Device (SID) chip emulator engine that is used by music player programs like SIDPLAY. With it you can play musics from Commodore 64 (or compatible) programs. -Because the original homepage of SIDPlay (http://www.geocities.com/SiliconValley/Lakes/5147/resid) -disappeared from Internet some time ago, -I decided to set up this unofficial page for providing a semi-regularly updated tarballs of libSIDPlay1. -However, I have no intention of adding any new features, at most I will fix compilation and portability related bugs. diff --git a/libsidplay-1.36.59-gcc-10.2.0.patch b/libsidplay-1.36.59-gcc-10.2.0.patch new file mode 100644 index 0000000..91e2064 --- /dev/null +++ b/libsidplay-1.36.59-gcc-10.2.0.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) +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 diff --git a/libsidplay.spec b/libsidplay.spec index f391307..f5d7cc9 100644 --- a/libsidplay.spec +++ b/libsidplay.spec @@ -1,6 +1,6 @@ Name: libsidplay Version: 1.36.59 -Release: 3mamba +Release: 4mamba Summary: A Commodore 64 music player and SID chip emulator library Group: System/Libraries Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.tnsp.org/?p=libsidplay1 Source: http://www.tnsp.org/xs-files/libsidplay-%{version}.tar.gz +Patch0: libsidplay-1.36.59-gcc-10.2.0.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -15,30 +16,27 @@ BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root -# (ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/audio/libsidplay/README.html) + %description -This library provides the Sound Interface Device (SID) chip emulator -engine that is used by music player programs like SIDPLAY. +This library provides the Sound Interface Device (SID) chip emulator engine that is used by music player programs like SIDPLAY. With it you can play musics from Commodore 64 (or compatible) programs. -Because the original homepage of SIDPlay (http://www.geocities.com/SiliconValley/Lakes/5147/resid) -disappeared from Internet some time ago, -I decided to set up this unofficial page for providing a semi-regularly updated tarballs of libSIDPlay1. -However, I have no intention of adding any new features, at most I will fix compilation and portability related bugs. %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{version} %description devel -This library provides the Sound Interface Device (SID) chip emulator -engine that is used by music player programs like SIDPLAY. +This library provides the Sound Interface Device (SID) chip emulator engine that is used by music player programs like SIDPLAY. With it you can play musics from Commodore 64 (or compatible) programs. +This package contains static libraries and header files needed for development. -This package contains static libraries and header files need for development. +%debug_package %prep %setup -q +sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," scripts/config.sub +%patch0 -p1 %build %configure @@ -56,19 +54,22 @@ This package contains static libraries and header files need for development. %files %defattr(-,root,root) -%{_libdir}/*.so.* +%{_libdir}/libsidplay.so.* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %dir %{_includedir}/sidplay %{_includedir}/sidplay/*.h -%{_libdir}/*.a -%{_libdir}/*.la -%{_libdir}/*.so +%{_libdir}/libsidplay.a +%{_libdir}/libsidplay.la +%{_libdir}/libsidplay.so %doc DEVELOPER src/*.txt %changelog +* Mon Dec 21 2020 Silvan Calarco 1.36.59-4mamba +- rebuilt with debug package and aarch64 build fix + * Tue Aug 27 2013 Automatic Build System 1.36.59-3mamba - automatic rebuild by autodist