summaryrefslogtreecommitdiffstats
path: root/extra/libsidplay
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 20:35:03 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 20:35:03 +0200
commit551e53e03b9833f65db6556832a0ccfd77e99226 (patch)
tree3a0bd9736fbfc4291c4ccbf9f53d595315c1de51 /extra/libsidplay
parent0e4c79de669d04a72dd185c62c23c3ae8c0905bf (diff)
downloadnutyx-pakxe-551e53e03b9833f65db6556832a0ccfd77e99226.tar.gz
nutyx-pakxe-551e53e03b9833f65db6556832a0ccfd77e99226.tar.bz2
nutyx-pakxe-551e53e03b9833f65db6556832a0ccfd77e99226.tar.xz
nutyx-pakxe-551e53e03b9833f65db6556832a0ccfd77e99226.zip
Ajout de libsidplay#1.36.59-1
Diffstat (limited to 'extra/libsidplay')
-rw-r--r--extra/libsidplay/Pkgfile20
-rw-r--r--extra/libsidplay/libsidplay-1.36.59-gcc43.patch41
2 files changed, 61 insertions, 0 deletions
diff --git a/extra/libsidplay/Pkgfile b/extra/libsidplay/Pkgfile
new file mode 100644
index 000000000..c03e72f6b
--- /dev/null
+++ b/extra/libsidplay/Pkgfile
@@ -0,0 +1,20 @@
+# Description: Librairie pour lire des fichiers SID
+# URL: http://critical.ch/distfiles
+# Maintainer: NuTyX core team
+# Packager: fred.galusik at gmail dot com
+# Depends on:
+
+name=libsidplay
+version=1.36.59
+release=1
+source=(http://critical.ch/distfiles/$name-$version.tgz \
+libsidplay-1.36.59-gcc43.patch)
+
+build() {
+cd $name-$version
+ patch -p1 < ../libsidplay-1.36.59-gcc43.patch
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG install
+}
+
diff --git a/extra/libsidplay/libsidplay-1.36.59-gcc43.patch b/extra/libsidplay/libsidplay-1.36.59-gcc43.patch
new file mode 100644
index 000000000..8125e7ef3
--- /dev/null
+++ b/extra/libsidplay/libsidplay-1.36.59-gcc43.patch
@@ -0,0 +1,41 @@
+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;
+