gnu: Add libofa.

* gnu/packages/audio.scm (libofa): New variable.
* gnu/packages/patches/libofa-ftbfs-1.diff: New file.
* gnu/packages/patches/libofa-curl.diff: New file.
* gnu/packages/patches/libofa-ftbfs-2.diff: New file.
* gnu/local.mk (dist_patch_DATA): Add them.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Raghav Gururajan 2020-07-03 09:16:01 -04:00 committed by Danny Milosavljevic
parent 502114de11
commit 38375ce952
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5
5 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,27 @@
Description: ftbfs with GCC-4.7. (Closes: #667250)
Author: Matthias Klose <doko@debian.org>
Last-Update: 2012-04-17
Index: libofa-0.9.3/examples/uselame.cpp
===================================================================
--- libofa-0.9.3.orig/examples/uselame.cpp
+++ libofa-0.9.3/examples/uselame.cpp
@@ -11,6 +11,7 @@
#include "windows.h"
#else
#include <sys/wait.h>
+#include <unistd.h>
#endif
AudioData *loadWaveFile(char *file);
Index: libofa-0.9.3/examples/wavefile.cpp
===================================================================
--- libofa-0.9.3.orig/examples/wavefile.cpp
+++ libofa-0.9.3/examples/wavefile.cpp
@@ -11,6 +11,7 @@
#include "io.h"
#endif
#include <fcntl.h>
+#include <unistd.h>
static bool readBytes(int fd, unsigned char *buf, int size) {
int ct = 0;