Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=8023caa9b77eed2ffa02e383109954194f7a8913
commit 8023caa9b77eed2ffa02e383109954194f7a8913 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Fri Oct 10 13:29:12 2008 +0200 libsidplay-1.36.59-3-i686 - rebuild with gcc-4.3 diff --git a/source/lib/libsidplay/FrugalBuild b/source/lib/libsidplay/FrugalBuild index bb21ea2..daf2009 100644 --- a/source/lib/libsidplay/FrugalBuild +++ b/source/lib/libsidplay/FrugalBuild @@ -3,14 +3,16 @@ pkgname=libsidplay pkgver=1.36.59 -pkgrel=2 +pkgrel=3 pkgdesc="A library for playing SID music files." url="http://www.geocities.com/SiliconValley/Lakes/5147/sidplay/linux.html" depends=('libstdc++') groups=('lib') archs=('i686' 'x86_64') up2date="Flasttar http://critical.ch/distfiles/" -source=(http://critical.ch/distfiles/$pkgname-$pkgver.tgz) -sha1sums=('66056b55dc96b9ae1aab542f0260d1e6db158e51') +source=(http://critical.ch/distfiles/$pkgname-$pkgver.tgz \ + ios-bin.patch) +sha1sums=('66056b55dc96b9ae1aab542f0260d1e6db158e51' \ + '3b28d4182b62b8c9facd17bb72df4faafcd98fc8') # optimization OK diff --git a/source/lib/libsidplay/ios-bin.patch b/source/lib/libsidplay/ios-bin.patch new file mode 100644 index 0000000..5beef46 --- /dev/null +++ b/source/lib/libsidplay/ios-bin.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; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
