[arch-commits] Commit in libsidplay/repos (6 files)
Allan McRae
allan at archlinux.org
Sat Dec 5 15:39:41 UTC 2015
Date: Saturday, December 5, 2015 @ 16:39:41
Author: allan
Revision: 252441
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
libsidplay/repos/staging-i686/
libsidplay/repos/staging-i686/PKGBUILD
(from rev 252438, libsidplay/trunk/PKGBUILD)
libsidplay/repos/staging-i686/libsidplay-1.36.59-gcc43.patch
(from rev 252438, libsidplay/trunk/libsidplay-1.36.59-gcc43.patch)
libsidplay/repos/staging-x86_64/
libsidplay/repos/staging-x86_64/PKGBUILD
(from rev 252439, libsidplay/trunk/PKGBUILD)
libsidplay/repos/staging-x86_64/libsidplay-1.36.59-gcc43.patch
(from rev 252440, libsidplay/trunk/libsidplay-1.36.59-gcc43.patch)
-----------------------------------------------+
staging-i686/PKGBUILD | 29 +++++++++++++++++
staging-i686/libsidplay-1.36.59-gcc43.patch | 40 ++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 29 +++++++++++++++++
staging-x86_64/libsidplay-1.36.59-gcc43.patch | 40 ++++++++++++++++++++++++
4 files changed, 138 insertions(+)
Copied: libsidplay/repos/staging-i686/PKGBUILD (from rev 252438, libsidplay/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-12-05 15:39:41 UTC (rev 252441)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer:
+# Contributor: Kritoke <kritoke at gamebox.net>
+
+pkgname=libsidplay
+pkgver=1.36.59
+pkgrel=7
+pkgdesc="A library for playing SID music files."
+arch=('i686' 'x86_64')
+url="http://critical.ch/distfiles/"
+license=('GPL')
+source=(http://critical.ch/distfiles/${pkgname}-${pkgver}.tgz libsidplay-1.36.59-gcc43.patch)
+md5sums=('37c51ba4bd57164b1b0bb7b43b9adece' 'c24d7bca2639f4fee03c40c7dcaadfee')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i $srcdir/libsidplay-1.36.59-gcc43.patch
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install || return 1
+}
Copied: libsidplay/repos/staging-i686/libsidplay-1.36.59-gcc43.patch (from rev 252438, libsidplay/trunk/libsidplay-1.36.59-gcc43.patch)
===================================================================
--- staging-i686/libsidplay-1.36.59-gcc43.patch (rev 0)
+++ staging-i686/libsidplay-1.36.59-gcc43.patch 2015-12-05 15:39:41 UTC (rev 252441)
@@ -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;
Copied: libsidplay/repos/staging-x86_64/PKGBUILD (from rev 252439, libsidplay/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-12-05 15:39:41 UTC (rev 252441)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer:
+# Contributor: Kritoke <kritoke at gamebox.net>
+
+pkgname=libsidplay
+pkgver=1.36.59
+pkgrel=7
+pkgdesc="A library for playing SID music files."
+arch=('i686' 'x86_64')
+url="http://critical.ch/distfiles/"
+license=('GPL')
+source=(http://critical.ch/distfiles/${pkgname}-${pkgver}.tgz libsidplay-1.36.59-gcc43.patch)
+md5sums=('37c51ba4bd57164b1b0bb7b43b9adece' 'c24d7bca2639f4fee03c40c7dcaadfee')
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np1 -i $srcdir/libsidplay-1.36.59-gcc43.patch
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install || return 1
+}
Copied: libsidplay/repos/staging-x86_64/libsidplay-1.36.59-gcc43.patch (from rev 252440, 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 2015-12-05 15:39:41 UTC (rev 252441)
@@ -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