pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/fluidsynth Interix has neither mlock(2) nor sock...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ffda7ea0c1d
branches:  trunk
changeset: 501911:7ffda7ea0c1d
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Oct 31 15:23:54 2005 +0000

description:
Interix has neither mlock(2) nor socklen_t.

diffstat:

 audio/fluidsynth/distinfo         |   3 ++-
 audio/fluidsynth/hacks.mk         |  10 ++++++++++
 audio/fluidsynth/patches/patch-ad |  13 +++++++++++++
 3 files changed, 25 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 04b4a70cb611 -r 7ffda7ea0c1d audio/fluidsynth/distinfo
--- a/audio/fluidsynth/distinfo Mon Oct 31 15:13:03 2005 +0000
+++ b/audio/fluidsynth/distinfo Mon Oct 31 15:23:54 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2005/07/14 12:49:34 adam Exp $
+$NetBSD: distinfo,v 1.3 2005/10/31 15:23:54 tv Exp $
 
 SHA1 (fluidsynth-1.0.6.tar.gz) = 8ef8c851d3b8ad1c458485a7d9aa13b1a70b7d9c
 RMD160 (fluidsynth-1.0.6.tar.gz) = 7699dae455816844d80c204c99cf11efd8fb6d64
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 0cd5f42d4df763ef358f1d8a05826e0626882bf2
 SHA1 (patch-ab) = 8b9f615cf81bab81e0e6fc8f3e1c1a589b29cd90
 SHA1 (patch-ac) = b8c2b2aa180beeb5aa0292f2cce31f68a903a39d
+SHA1 (patch-ad) = 36e62eb4efc1c380f9cb8cfc5777493c0162f719
diff -r 04b4a70cb611 -r 7ffda7ea0c1d audio/fluidsynth/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fluidsynth/hacks.mk Mon Oct 31 15:23:54 2005 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2005/10/31 15:23:54 tv Exp $
+
+###
+### Define socklen_t on platforms without it (there's no easy autoconf
+### CHECK_TYPE check to insert this without depending on autoconf)
+###
+.if ${OPSYS} == "Interix"
+PKG_HACKS+=    socklen-int
+CPPFLAGS+=     -Dsocklen_t=int
+.endif
diff -r 04b4a70cb611 -r 7ffda7ea0c1d audio/fluidsynth/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fluidsynth/patches/patch-ad Mon Oct 31 15:23:54 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2005/10/31 15:23:54 tv Exp $
+
+--- src/fluid_sys.h.orig       2003-03-11 11:57:51.000000000 -0500
++++ src/fluid_sys.h
+@@ -261,7 +261,7 @@ extern fluid_profile_data_t fluid_profil
+     sample data.
+  */
+ 
+-#if HAVE_SYS_MMAN_H
++#if HAVE_SYS_MMAN_H && !defined(__INTERIX)
+ #define fluid_mlock(_p,_n)      mlock(_p, _n)
+ #define fluid_munlock(_p,_n)    munlock(_p,_n)
+ #else



Home | Main Index | Thread Index | Old Index