summaryrefslogtreecommitdiff
path: root/audio/arts
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-23 22:05:13 +0000
committerrillig <rillig@pkgsrc.org>2007-11-23 22:05:13 +0000
commit65415bce8e3d2d463753becd42def221b79d09d8 (patch)
tree92fb7db4f11517ce4a186a9e9fc50ea8f1fa002c /audio/arts
parent81124eaec93f7242ee717ad2a645cd701df2e6f5 (diff)
downloadpkgsrc-65415bce8e3d2d463753becd42def221b79d09d8.tar.gz
The files in flow/gsl/gslglib.* are way too complex, and we have glib2
as a dependency, so only provide the necessary code. This is especially important for Solaris, since the build failed before because of these files. I didn't use patches to save bandwidth and disk space.
Diffstat (limited to 'audio/arts')
-rw-r--r--audio/arts/Makefile5
-rw-r--r--audio/arts/files/gslglib.c23
-rw-r--r--audio/arts/files/gslglib.h5
3 files changed, 32 insertions, 1 deletions
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index 2fc38678a18..9cebefbddbb 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2007/10/20 10:34:15 markd Exp $
+# $NetBSD: Makefile,v 1.64 2007/11/23 22:05:13 rillig Exp $
DISTNAME= arts-1.5.8
CATEGORIES= audio
@@ -31,4 +31,7 @@ _IN_ARTS_BUILD= yes
CONFIGURE_ARGS+= --disable-threading
.endif
+post-patch:
+ cd ${FILESDIR} && cp gslglib.* ${WRKSRC}/flow/gsl/
+
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/arts/files/gslglib.c b/audio/arts/files/gslglib.c
new file mode 100644
index 00000000000..6ea5ed1730a
--- /dev/null
+++ b/audio/arts/files/gslglib.c
@@ -0,0 +1,23 @@
+#include "gslglib.h"
+
+#include <stdio.h>
+
+void
+gsl_g_log (const gchar*msg,const char *format, va_list ap)
+{
+ if (msg) printf ("\n%s",msg);
+ vprintf(format, ap);
+ if (msg) printf ("\n");
+}
+
+void
+gsl_g_print_fd (int fd, const char *format, va_list ap)
+{
+ g_return_if_fail (fd == 1 || fd == 2);
+ if (fd == 1)
+ vprintf (format, ap);
+ else
+ vfprintf (stderr, format, ap);
+}
+
+
diff --git a/audio/arts/files/gslglib.h b/audio/arts/files/gslglib.h
new file mode 100644
index 00000000000..7bfdffff31e
--- /dev/null
+++ b/audio/arts/files/gslglib.h
@@ -0,0 +1,5 @@
+#include <glib.h>
+
+void gsl_g_log (const gchar*msg,const char *format, va_list ap);
+void gsl_g_print_fd (int fd, const char *format, va_list ap);
+