summaryrefslogtreecommitdiff
path: root/audio/arts
diff options
context:
space:
mode:
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);
+