summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjoerg <joerg>2007-08-08 18:32:54 +0000
committerjoerg <joerg>2007-08-08 18:32:54 +0000
commitb9071b897256dc4fd377eabaa22d970c3672c872 (patch)
tree5b4b6a02e2aa36cb5d2375475f8ce35dd29e34c4 /audio
parentc9f17310aeef9c56ce172f81789166e641ebdb72 (diff)
downloadpkgsrc-b9071b897256dc4fd377eabaa22d970c3672c872.tar.gz
Don't use malloc.h.
Diffstat (limited to 'audio')
-rw-r--r--audio/csound4/distinfo4
-rw-r--r--audio/csound4/patches/patch-ak29
-rw-r--r--audio/csound4/patches/patch-al37
3 files changed, 69 insertions, 1 deletions
diff --git a/audio/csound4/distinfo b/audio/csound4/distinfo
index 4b5a3ee605c..cb49c066707 100644
--- a/audio/csound4/distinfo
+++ b/audio/csound4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/05/21 22:29:09 ben Exp $
+$NetBSD: distinfo,v 1.10 2007/08/08 18:32:54 joerg Exp $
SHA1 (csound/csound-4.23f13gbs.0.tar.gz) = 2f86efb6e53f43cd16a6cfb0ff9a0786982f7af9
RMD160 (csound/csound-4.23f13gbs.0.tar.gz) = 46e161975afbf68f5591842e2921ea1822df30b2
@@ -13,3 +13,5 @@ SHA1 (patch-ag) = a3563963001e7b1fe9081e3137fdfc35c8ea953b
SHA1 (patch-ah) = 4bd7cc1935be17c4d4629d1b59e93c9836868a04
SHA1 (patch-ai) = b53a6e8fdb4cb53dd07ab122023f0bf291c350d3
SHA1 (patch-aj) = fa3c05b0c5e24775d5c05838177fcec943809b35
+SHA1 (patch-ak) = c0ae45c78220a871c88dd515e8fc3b04adcdb113
+SHA1 (patch-al) = ee49c6343f0850c00f35441a192d122216a12c3c
diff --git a/audio/csound4/patches/patch-ak b/audio/csound4/patches/patch-ak
new file mode 100644
index 00000000000..76fa07234f9
--- /dev/null
+++ b/audio/csound4/patches/patch-ak
@@ -0,0 +1,29 @@
+$NetBSD: patch-ak,v 1.1 2007/08/08 18:32:55 joerg Exp $
+
+--- csound/dpwelib.h.orig 2007-08-08 17:40:16.000000000 +0000
++++ csound/dpwelib.h
+@@ -73,24 +73,8 @@
+ #define READMODE "rb"
+ #define WRITEMODE "wb+"
+
+-#ifdef NeXT
+ #include <stdlib.h>
+
+-#else /* ultrix, not NeXT */
+-#ifdef clipper
+-#else
+-# if defined(LATTICE) || defined(WIN32) || defined(SGI) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__MACH__)
+-# include <stdlib.h>
+-# else
+-# include <unistd.h>
+-# ifndef mac_classic
+-# include <malloc.h>
+-# endif
+-# endif
+-#endif
+-
+-#endif /* NeXT or ultrix */
+-
+ #ifdef sun
+ #define strchr(A,B) index(A,B)
+ #define strrchr(A,B) rindex(A,B)
diff --git a/audio/csound4/patches/patch-al b/audio/csound4/patches/patch-al
new file mode 100644
index 00000000000..e10392944fc
--- /dev/null
+++ b/audio/csound4/patches/patch-al
@@ -0,0 +1,37 @@
+$NetBSD: patch-al,v 1.1 2007/08/08 18:32:55 joerg Exp $
+
+--- csound/pvoc.c.orig 2007-08-08 17:47:48.000000000 +0000
++++ csound/pvoc.c
+@@ -31,29 +31,9 @@
+ #include "sysdep.h"
+
+ #include <stdio.h>
+-#if defined(mac_classic) || defined(SYMANTEC) || defined(__FreeBSD__) || defined(__NetBSD__)
+-# include <stdlib.h> /* for malloc() */
+-# define READMODE "rb"
+-# define WRITEMODE "wb+"
+-#else
+-# ifdef NeXT
+-# include <stdlib.h>
+-# else
+-# ifdef clipper
+-# define SEEK_SET (0)
+-# else
+-# if !defined(LATTICE) && !defined(__WATCOMC__) && !defined(WIN32) && !defined(__ncc) && !defined(__MACH__)
+-# include <unistd.h>
+-# include <malloc.h>
+-# else
+-# include <stdlib.h>
+-# endif /* LATTICE */
+-# endif /* clipper */
+-# endif /* NeXT */
+-# include <sys/types.h>
+-# define READMODE "r"
+-# define WRITEMODE "w+"
+-#endif /* SYMANTEC */
++#include <stdlib.h> /* for malloc() */
++#define READMODE "rb"
++#define WRITEMODE "wb+"
+
+ #if defined(SYS5) || defined(WIN32)
+ #include <fcntl.h>