Update of /cvsroot/fink/packages/dists/stable/main/finkinfo/sound
In directory usw-pr-cvs1:/tmp/cvs-serv17381/main/finkinfo/sound

Added Files:
        libogg-1.0.0-1.info libogg-1.0.0-1.patch libvorbis0-1.0-1.info 
        libvorbis0-1.0-1.patch xmms-1.2.7-3.info xmms-1.2.7-3.patch 
        xmms-applet-1.2.7-2.info xmms-applet-1.2.7-2.patch 
Log Message:
Moving from unstable based on feedback from users.

--- NEW FILE: libogg-1.0.0-1.info ---
Package: libogg
Version: 1.0.0
Revision: 1
Source: mirror:custom:%n-1.0.tar.gz
CustomMirror: <<
A: http://www.vorbis.com/files/1.0/unix
B: http://xiph.stratius.com/vorbis/unix
C: http://www.casterclub.com/vorbis/unix
D: http://www.math.utoledo.edu/~chaese/Vorbis/unix
E: ftp://ftp.linuxpowered.com/pub/Vorbis/unix
F: ftp://ftp.wiles.org/pub/mirrors/Vorbis/unix
<<
Depends: %N-shlibs (= %v-%r)
BuildDepends: fink (>= 0.9.9)
Replaces: libogg (<< 1.0rc3-2)
Patch: %f.patch
InstallScript: make install DESTDIR=%d
BuildDependsOnly: True
SplitOff: <<
  Package: %N-shlibs
  Replaces: libogg (<< 1.0rc3-2)
  Files: lib/libogg.*.dylib
  DocFiles: AUTHORS CHANGES COPYING README
<<
DocFiles: AUTHORS CHANGES COPYING README
Description: Ogg Bitstream Library
DescDetail: <<
Libogg is a library for manipulating ogg bitstreams.  It handles
both making ogg bitstreams and getting packets from ogg bitstreams.
<<
DescPort: Uses patch to change document location.
License: BSD
Maintainer: Masanori Sekino <[EMAIL PROTECTED]>
Homepage: http://www.vorbis.com

--- NEW FILE: libogg-1.0.0-1.patch ---
diff -Naur libogg-1.0.old/doc/Makefile.in libogg-1.0.new/doc/Makefile.in
--- libogg-1.0.old/doc/Makefile.in      Fri Jul 19 23:13:21 2002
+++ libogg-1.0.new/doc/Makefile.in      Sat Jul 20 23:15:29 2002
@@ -91,7 +91,7 @@
 
 SUBDIRS = ogg
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
+docdir = $(datadir)/doc/$(PACKAGE)
 
 doc_DATA = index.html framing.html oggstream.html white-xifish.png stream.png 
white-ogg.png
 
diff -Naur libogg-1.0.old/doc/ogg/Makefile.in libogg-1.0.new/doc/ogg/Makefile.in
--- libogg-1.0.old/doc/ogg/Makefile.in  Fri Jul 19 23:13:22 2002
+++ libogg-1.0.new/doc/ogg/Makefile.in  Sat Jul 20 23:15:29 2002
@@ -89,7 +89,7 @@
 
 AUTOMAKE_OPTIONS = foreign
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg
+docdir = $(datadir)/doc/$(PACKAGE)/ogg
 
 doc_DATA = bitpacking.html datastructures.html decoding.html encoding.html     
general.html index.html ogg_packet.html ogg_page.html   ogg_page_bos.html 
ogg_page_continued.html ogg_page_eos.html     ogg_page_granulepos.html 
ogg_page_pageno.html ogg_page_serialno.html    ogg_page_version.html 
ogg_stream_clear.html ogg_stream_destroy.html     ogg_page_packets.html 
ogg_stream_eos.html ogg_stream_flush.html         ogg_stream_init.html 
ogg_stream_packetin.html ogg_stream_packetout.html         ogg_stream_pagein.html 
ogg_stream_pageout.html ogg_stream_reset.html    ogg_stream_state.html 
ogg_sync_buffer.html ogg_sync_clear.html  ogg_sync_destroy.html ogg_sync_init.html 
ogg_sync_pageout.html  ogg_sync_pageseek.html ogg_sync_reset.html ogg_sync_state.html  
ogg_sync_wrote.html oggpack_adv.html oggpack_adv1.html  oggpack_bits.html 
oggpack_buffer.html   oggpack_bytes.html oggpack_get_buffer.html oggpack_look.html    
oggpack_look1.html oggpack_read.html    oggpack_read1.html oggpack_readinit.html 
oggpack_reset.html     oggpack_write.html oggpack_writeclear.html 
oggpack_writeinit.html       overview.html reference.html style.css 
vorbis_comment.html      vorbis_info.html ogg_packet_clear.html 
ogg_page_checksum_set.html
 

--- NEW FILE: libvorbis0-1.0-1.info ---
Package: libvorbis0
Version: 1.0
Revision: 1
Depends: %N-shlibs (= %v-%r)
BuildDepends: libogg (>= 1.0.0), fink (>= 0.9.9)
Replaces: libvorbis (<< 1.0rc3-2)
Source: mirror:custom:libvorbis-%v.tar.gz
CustomMirror: <<
A: http://www.vorbis.com/files/1.0/unix
B: http://xiph.stratius.com/vorbis/unix
C: http://www.casterclub.com/vorbis/unix
D: http://www.math.utoledo.edu/~chaese/Vorbis/unix
E: ftp://ftp.linuxpowered.com/pub/Vorbis/unix
F: ftp://ftp.wiles.org/pub/mirrors/Vorbis/unix
<<
Patch: %f.patch
InstallScript: make install DESTDIR=%d
BuildDependsOnly: True
SplitOff: <<
  Package: %N-shlibs
  Depends: libogg-shlibs (>= 1.0.0)
  Provides: libvorbis-shlibs
  Conflicts: libvorbis-shlibs
  Replaces: libvorbis-shlibs, libvorbis (<< 1.0rc3-2)
  Files: lib/libvorbis.*.dylib lib/libvorbisenc.*.dylib lib/libvorbisfile.*.dylib
  DocFiles: AUTHORS COPYING README
<<
DocFiles: AUTHORS COPYING README
Description: The Vorbis General Audio Compression Codec
DescDetail: <<
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for audio and music at fixed
and variable bitrates from 16 to 128 kbps/channel.
<<
DescPort: <<
- Uses patch to change document location.
- In libvorbis-1.0, binary compatibility breaks with libvorbisfile. So
I rename it to libvorbis0. To allow users to upgrade from libvorbis-
shlibs to libvorbis0-shlibs, libvorbit0-shlibs has Provides, Conflicts
and Replaces fields following to Debian Library Packaging guide:
http://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html
<<
License: BSD
Maintainer: Masanori Sekino <[EMAIL PROTECTED]>
Homepage: http://www.vorbis.com

--- NEW FILE: libvorbis0-1.0-1.patch ---
diff -Naur libvorbis-1.0.old/doc/Makefile.in libvorbis-1.0.new/doc/Makefile.in
--- libvorbis-1.0.old/doc/Makefile.in   Fri Jul 19 23:12:33 2002
+++ libvorbis-1.0.new/doc/Makefile.in   Sat Jul 20 23:22:06 2002
@@ -94,7 +94,7 @@
 
 SUBDIRS = vorbisfile vorbisenc
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
+docdir = $(datadir)/doc/$(PACKAGE)
 
 doc_DATA = components.png      draft-moffitt-vorbis-rtp-00.txt         eightphase.png 
 evenlsp.png     floor1-1.png    floor1-2.png    floor1-3.png    floor1-4.png    
floor1_inverse_dB_table.html    floorval.png    fourphase.png   framing.html    
helper.html     hufftree-under.png      hufftree.png    index.html      lspmap.png     
 oddlsp.png      oggstream.html  programming.html        residue-pack.png        
residue2.png    squarepolar.png         stereo.html     stream.png      v-comment.html 
 vorbis-clip.txt         vorbis-errors.txt       vorbis-fidelity.html    
vorbis-ogg.html         vorbis-spec-bitpack.html        vorbis-spec-codebook.html      
 vorbis-spec-floor0.html         vorbis-spec-floor1.html         
vorbis-spec-intro.html  vorbis-spec-ref.html    vorbis-spec-res.html    vorbis.html    
 vorbisword2.png         wait.png        white-ogg.png   white-xifish.png        
window1.png     window2.png
 
diff -Naur libvorbis-1.0.old/doc/vorbisenc/Makefile.in 
libvorbis-1.0.new/doc/vorbisenc/Makefile.in
--- libvorbis-1.0.old/doc/vorbisenc/Makefile.in Fri Jul 19 23:12:35 2002
+++ libvorbis-1.0.new/doc/vorbisenc/Makefile.in Sat Jul 20 23:22:06 2002
@@ -92,7 +92,7 @@
 
 AUTOMAKE_OPTIONS = foreign
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/vorbisenc
+docdir = $(datadir)/doc/$(PACKAGE)/vorbisenc
 
 doc_DATA = index.html overview.html reference.html style.css    
vorbis_encode_ctl.html vorbis_encode_init.html vorbis_info.html        
vorbis_encode_init_vbr.html
 
diff -Naur libvorbis-1.0.old/doc/vorbisfile/Makefile.in 
libvorbis-1.0.new/doc/vorbisfile/Makefile.in
--- libvorbis-1.0.old/doc/vorbisfile/Makefile.in        Fri Jul 19 23:12:34 2002
+++ libvorbis-1.0.new/doc/vorbisfile/Makefile.in        Sat Jul 20 23:22:06 2002
@@ -92,7 +92,7 @@
 
 AUTOMAKE_OPTIONS = foreign
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/vorbisfile
+docdir = $(datadir)/doc/$(PACKAGE)/vorbisfile
 
 doc_DATA = OggVorbis_File.html chaining_example_c.html chainingexample.html    
datastructures.html decoding.html example.html exampleindex.html        fileinfo.html 
index.html initialization.html ov_bitrate.html    ov_bitrate_instant.html 
ov_callbacks.html ov_clear.html         ov_comment.html ov_info.html ov_open.html 
ov_open_callbacks.html        ov_pcm_seek.html ov_pcm_tell.html ov_pcm_total.html 
ov_raw_seek.html    ov_raw_tell.html ov_raw_total.html ov_read.html ov_seekable.html   
     ov_serialnumber.html ov_streams.html ov_time_seek.html  ov_time_tell.html 
ov_time_total.html overview.html reference.html       seekexample.html seeking.html 
seeking_test_c.html seekingexample.html   style.css vorbis_comment.html 
vorbis_info.html  vorbisfile_example_c.html ov_read_float.html ov_test.html       
ov_test_open.html ov_test_callbacks.html
 

--- NEW FILE: xmms-1.2.7-3.info ---
Package: xmms
Version: 1.2.7
Revision: 3
Depends: %N-bin
BuildDepends: esound, libogg, libvorbis0, libmikmod, glib, gtk+, libxml, fink (>= 
0.9.9)
Replaces: %N (<< 1.2.7)
Source: http://www.xmms.org/files/1.2.x/%n-%v.tar.bz2
Source-MD5: 9bec488842920df359516b7d062d15dc
Patch: %f.patch
UpdatePoMakefile: true
SetCPPFLAGS: -no-cpp-precomp
ConfigureParams: --mandir=%p/share/man --without-gnome
CompileScript: <<
  ./configure %c
  make IR_SYSCONF_DIR=%p/etc
<<
InstallScript: make install DESTDIR=%d
BuildDependsOnly: True
SplitOff: <<
  Package: %N-shlibs
  Depends: esound-bin, libvorbis0-shlibs, libmikmod-shlibs, libxml-shlibs
  Replaces: %N (<< 1.2.7)
  Files: lib/libxmms.*.dylib
<<
SplitOff2: <<
  Package: %N-bin
  Depends: %N-shlibs, gtk+-shlibs, libgl
  Replaces: %N (<< 1.2.7)
  Files: bin/*xmms lib/xmms/ share/locale/ share/man/ share/xmms/
<<
DocFiles: AUTHORS COPYING ChangeLog FAQ NEWS README TODO
Description: Multimedia player for the X Window System
DescDetail: <<
X MultiMedia System is a sound player written from scratch. Since it
uses the WinAmp GUI, it can use WinAmp skins. It can play mp3s, mods, s3ms,
and other formats. It now has support for input, output, general, and
visualization plugins.
<<
License: GPL
Maintainer: Masanori Sekino <[EMAIL PROTECTED]>
Homepage: http://www.xmms.org/

--- NEW FILE: xmms-1.2.7-3.patch ---
diff -Naur xmms-1.2.7.old/Input/cdaudio/cdaudio.c 
xmms-1.2.7.new/Input/cdaudio/cdaudio.c
--- xmms-1.2.7.old/Input/cdaudio/cdaudio.c      Tue Feb  5 23:39:11 2002
+++ xmms-1.2.7.new/Input/cdaudio/cdaudio.c      Thu Jun 13 02:35:01 2002
@@ -558,7 +558,11 @@
        subchnl.data = &subinfo;
        ioctl(cdda_fd, CDIOCREADSUBCHANNEL, &subchnl);
 
+#ifdef XMMS_CDROM_BSD_DARWIN
+       return(LBA_DARWIN(subchnl.data->what.position.absaddr));
+#else
        return(LBA(subchnl.data->what.position.absaddr.msf));
+#endif
 }
 
 static void drive_get_volume(int *l, int *r)
diff -Naur xmms-1.2.7.old/Input/cdaudio/cdaudio.h 
xmms-1.2.7.new/Input/cdaudio/cdaudio.h
--- xmms-1.2.7.old/Input/cdaudio/cdaudio.h      Tue Feb  5 23:39:11 2002
+++ xmms-1.2.7.new/Input/cdaudio/cdaudio.h      Thu Jun 13 02:35:01 2002
@@ -98,11 +98,8 @@
        } flags;
 };
 
-#ifdef XMMS_CDROM_BSD_DARWIN
-# define LBA(msf) ((msf[1] * 60 + msf[2]) * 75 + msf[3])
-#else
-# define LBA(msf) ((msf.minute * 60 + msf.second) * 75 + msf.frame)
-#endif
+#define LBA(msf) ((msf.minute * 60 + msf.second) * 75 + msf.frame)
+#define LBA_DARWIN(msf) ((msf[1] * 60 + msf[2]) * 75 + msf[3])
        
 typedef struct
 {
diff -Naur xmms-1.2.7.old/configure xmms-1.2.7.new/configure
--- xmms-1.2.7.old/configure    Tue Mar  5 06:57:01 2002
+++ xmms-1.2.7.new/configure    Thu Jun 13 02:35:40 2002
@@ -3867,7 +3867,7 @@
     # FIXME: Relying on posixy $() will cause problems for
     #        cross-compilation, but unfortunately the echo tests do not
     #        yet detect zsh echo's removal of \ escapes.
-    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo 
-dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags 
-install_name $rpath/$soname $verstring'
+    archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) 
+$allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags $(test .$module != .yes 
+&& echo -install_name $rpath/$soname $verstring)'
     # We need to add '_' to the symbols in $export_symbols first
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     hardcode_direct=yes
diff -Naur xmms-1.2.7.old/gnomexmms/gnomexmms.desktop 
xmms-1.2.7.new/gnomexmms/gnomexmms.desktop
--- xmms-1.2.7.old/gnomexmms/gnomexmms.desktop  Tue Nov 28 07:20:58 2000
+++ xmms-1.2.7.new/gnomexmms/gnomexmms.desktop  Thu Jun 13 02:35:01 2002
@@ -9,6 +9,6 @@
 Name[sv]=XMMS-panelprogram
 Name[pt_BR]=Applet do XMMS
 Exec=gnomexmms --activate-goad-server=gnomexmms
-Icon=
+Icon=gnomexmms.xpm
 Terminal=0
 Type=Application
diff -Naur xmms-1.2.7.old/libxmms/util.c xmms-1.2.7.new/libxmms/util.c
--- xmms-1.2.7.old/libxmms/util.c       Fri Jun  1 22:07:49 2001
+++ xmms-1.2.7.new/libxmms/util.c       Thu Jun 13 02:35:01 2002
@@ -14,6 +14,13 @@
 #include <sys/sysctl.h>
 #endif
 
+#if defined (__APPLE__)
+#include <mach/mach.h>
+#include <mach/thread_policy.h>
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#endif
+
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>
@@ -72,6 +79,28 @@
 
 gboolean xmms_check_realtime_priority(void)
 {
+#if defined (__APPLE__)
+       struct thread_time_constraint_policy ttcpolicy;
+       int bus_speed, mib [2] = { CTL_HW, HW_BUS_FREQ };
+       size_t len;
+
+       len = sizeof (bus_speed);
+       sysctl (mib, 2, &bus_speed, &len, NULL, 0);
+
+       /* Is it enough? */
+       ttcpolicy.period = bus_speed / 120;
+       ttcpolicy.computation = bus_speed / 1000;
+       ttcpolicy.constraint = bus_speed / 500;
+       ttcpolicy.preemptible = 1;
+
+       thread_policy_set (mach_thread_self (),
+                          THREAD_TIME_CONSTRAINT_POLICY,
+                          (int*)&ttcpolicy,
+                          THREAD_TIME_CONSTRAINT_POLICY_COUNT);
+
+       return TRUE;
+#endif
+
 #ifdef HAVE_SCHED_SETSCHEDULER
 #ifdef __FreeBSD__
        /*

--- NEW FILE: xmms-applet-1.2.7-2.info ---
Package: xmms-applet
Version: 1.2.7
Revision: 2
Depends: xmms-bin (>= 1.2.7-2)
Replaces: xmms (<< 1.2.7), xmms-bin (<< 1.2.7-2)
BuildDepends: esound, libogg, libvorbis0, libmikmod, glib, gtk+, libxml, gnome-libs, 
orbit, gnome-core-dev (>= 1.4.0.8-3), xmms, fink (>= 0.9.9)
Source: http://www.xmms.org/files/1.2.x/xmms-%v.tar.bz2
Source-MD5: 9bec488842920df359516b7d062d15dc
Patch: %f.patch
UpdatePoMakefile: true
SetCPPFLAGS: -no-cpp-precomp
ConfigureParams: --mandir=%p/share/man --with-gnome
CompileScript: <<
  ./configure %c
  cp %p/lib/libxmms.la libxmms/
  make -C gnomexmms
<<
InstallScript: <<
  make -C gnomexmms install DESTDIR=%d
  install -d -m 755 %i/share/pixmaps %i/share/gnome/apps/Multimedia
  install -c -m 644 xmms/*.xpm %i/share/pixmaps
  install -c -m 644 gnomexmms/*.xpm %i/share/pixmaps
  install -c -m 644 xmms/xmms.desktop %i/share/gnome/apps/Multimedia
<<
ConfFiles: %p/etc/CORBA/servers/gnomexmms.gnorba
DocFiles: AUTHORS COPYING ChangeLog FAQ NEWS README TODO
Description: XMMS applet for GNOME
DescDetail: <<
Control XMMS from gnome panel. Works only with GNOME1.
<<
License: GPL
Maintainer: Masanori Sekino <[EMAIL PROTECTED]>
Homepage: http://www.xmms.org/

--- NEW FILE: xmms-applet-1.2.7-2.patch ---
diff -Naur xmms-1.2.7.old/Input/cdaudio/cdaudio.c 
xmms-1.2.7.new/Input/cdaudio/cdaudio.c
--- xmms-1.2.7.old/Input/cdaudio/cdaudio.c      Tue Feb  5 23:39:11 2002
+++ xmms-1.2.7.new/Input/cdaudio/cdaudio.c      Thu Jun 13 02:35:01 2002
@@ -558,7 +558,11 @@
        subchnl.data = &subinfo;
        ioctl(cdda_fd, CDIOCREADSUBCHANNEL, &subchnl);
 
+#ifdef XMMS_CDROM_BSD_DARWIN
+       return(LBA_DARWIN(subchnl.data->what.position.absaddr));
+#else
        return(LBA(subchnl.data->what.position.absaddr.msf));
+#endif
 }
 
 static void drive_get_volume(int *l, int *r)
diff -Naur xmms-1.2.7.old/Input/cdaudio/cdaudio.h 
xmms-1.2.7.new/Input/cdaudio/cdaudio.h
--- xmms-1.2.7.old/Input/cdaudio/cdaudio.h      Tue Feb  5 23:39:11 2002
+++ xmms-1.2.7.new/Input/cdaudio/cdaudio.h      Thu Jun 13 02:35:01 2002
@@ -98,11 +98,8 @@
        } flags;
 };
 
-#ifdef XMMS_CDROM_BSD_DARWIN
-# define LBA(msf) ((msf[1] * 60 + msf[2]) * 75 + msf[3])
-#else
-# define LBA(msf) ((msf.minute * 60 + msf.second) * 75 + msf.frame)
-#endif
+#define LBA(msf) ((msf.minute * 60 + msf.second) * 75 + msf.frame)
+#define LBA_DARWIN(msf) ((msf[1] * 60 + msf[2]) * 75 + msf[3])
        
 typedef struct
 {
diff -Naur xmms-1.2.7.old/configure xmms-1.2.7.new/configure
--- xmms-1.2.7.old/configure    Tue Mar  5 06:57:01 2002
+++ xmms-1.2.7.new/configure    Thu Jun 13 02:35:40 2002
@@ -3867,7 +3867,7 @@
     # FIXME: Relying on posixy $() will cause problems for
     #        cross-compilation, but unfortunately the echo tests do not
     #        yet detect zsh echo's removal of \ escapes.
-    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo 
-dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags 
-install_name $rpath/$soname $verstring'
+    archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) 
+$allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags $(test .$module != .yes 
+&& echo -install_name $rpath/$soname $verstring)'
     # We need to add '_' to the symbols in $export_symbols first
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     hardcode_direct=yes
diff -Naur xmms-1.2.7.old/gnomexmms/gnomexmms.desktop 
xmms-1.2.7.new/gnomexmms/gnomexmms.desktop
--- xmms-1.2.7.old/gnomexmms/gnomexmms.desktop  Tue Nov 28 07:20:58 2000
+++ xmms-1.2.7.new/gnomexmms/gnomexmms.desktop  Thu Jun 13 02:35:01 2002
@@ -9,6 +9,6 @@
 Name[sv]=XMMS-panelprogram
 Name[pt_BR]=Applet do XMMS
 Exec=gnomexmms --activate-goad-server=gnomexmms
-Icon=
+Icon=gnomexmms.xpm
 Terminal=0
 Type=Application
diff -Naur xmms-1.2.7.old/libxmms/util.c xmms-1.2.7.new/libxmms/util.c
--- xmms-1.2.7.old/libxmms/util.c       Fri Jun  1 22:07:49 2001
+++ xmms-1.2.7.new/libxmms/util.c       Thu Jun 13 02:35:01 2002
@@ -14,6 +14,13 @@
 #include <sys/sysctl.h>
 #endif
 
+#if defined (__APPLE__)
+#include <mach/mach.h>
+#include <mach/thread_policy.h>
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#endif
+
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>
@@ -72,6 +79,28 @@
 
 gboolean xmms_check_realtime_priority(void)
 {
+#if defined (__APPLE__)
+       struct thread_time_constraint_policy ttcpolicy;
+       int bus_speed, mib [2] = { CTL_HW, HW_BUS_FREQ };
+       size_t len;
+
+       len = sizeof (bus_speed);
+       sysctl (mib, 2, &bus_speed, &len, NULL, 0);
+
+       /* Is it enough? */
+       ttcpolicy.period = bus_speed / 120;
+       ttcpolicy.computation = bus_speed / 1000;
+       ttcpolicy.constraint = bus_speed / 500;
+       ttcpolicy.preemptible = 1;
+
+       thread_policy_set (mach_thread_self (),
+                          THREAD_TIME_CONSTRAINT_POLICY,
+                          (int*)&ttcpolicy,
+                          THREAD_TIME_CONSTRAINT_POLICY_COUNT);
+
+       return TRUE;
+#endif
+
 #ifdef HAVE_SCHED_SETSCHEDULER
 #ifdef __FreeBSD__
        /*



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to