Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/sound
In directory usw-pr-cvs1:/tmp/cvs-serv2992

Added Files:
        xmms-1.2.7-3.info xmms-1.2.7-3.patch 
Log Message:
populating 10.2

--- 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__
        /*



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