pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/arts The files in flow/gsl/gslglib.* are way too...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/282aeb36cd2f
branches:  trunk
changeset: 535648:282aeb36cd2f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 23 22:05:13 2007 +0000

description:
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:

 audio/arts/Makefile        |   5 ++++-
 audio/arts/files/gslglib.c |  23 +++++++++++++++++++++++
 audio/arts/files/gslglib.h |   5 +++++
 3 files changed, 32 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r a7645c9ab0d1 -r 282aeb36cd2f audio/arts/Makefile
--- a/audio/arts/Makefile       Fri Nov 23 21:59:44 2007 +0000
+++ b/audio/arts/Makefile       Fri Nov 23 22:05:13 2007 +0000
@@ -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 @@
 CONFIGURE_ARGS+=       --disable-threading
 .endif
 
+post-patch:
+       cd ${FILESDIR} && cp gslglib.* ${WRKSRC}/flow/gsl/
+
 .include "../../mk/bsd.pkg.mk"
diff -r a7645c9ab0d1 -r 282aeb36cd2f audio/arts/files/gslglib.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/arts/files/gslglib.c        Fri Nov 23 22:05:13 2007 +0000
@@ -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 -r a7645c9ab0d1 -r 282aeb36cd2f audio/arts/files/gslglib.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/arts/files/gslglib.h        Fri Nov 23 22:05:13 2007 +0000
@@ -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);
+



Home | Main Index | Thread Index | Old Index