diff options
author | Fabian Groffen <grobian@gentoo.org> | 2005-08-28 14:46:58 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2005-08-28 14:46:58 +0000 |
commit | a3348cefb6e6f94f7e7f7489e62781f7ceff128d (patch) | |
tree | b95fd05da69bcec3b7b65df3aa916cdadb9e5114 /media-sound/esound/files | |
parent | Added ~sh (diff) | |
download | gentoo-2-a3348cefb6e6f94f7e7f7489e62781f7ceff128d.tar.gz gentoo-2-a3348cefb6e6f94f7e7f7489e62781f7ceff128d.tar.bz2 gentoo-2-a3348cefb6e6f94f7e7f7489e62781f7ceff128d.zip |
Adding the right patch for 0.2.36 on ppc-macos
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-sound/esound/files')
-rw-r--r-- | media-sound/esound/files/esound-0.2.36-ppc-macos.patch (renamed from media-sound/esound/files/esound-0.2.35-ppc-macos.patch) | 117 |
1 files changed, 49 insertions, 68 deletions
diff --git a/media-sound/esound/files/esound-0.2.35-ppc-macos.patch b/media-sound/esound/files/esound-0.2.36-ppc-macos.patch index 249aa78fee72..de85af43a16a 100644 --- a/media-sound/esound/files/esound-0.2.35-ppc-macos.patch +++ b/media-sound/esound/files/esound-0.2.36-ppc-macos.patch @@ -1,83 +1,64 @@ -diff -uNr esound-0.2.35/Makefile.in esound-0.2.35-new/Makefile.in ---- esound-0.2.35/Makefile.in Thu Aug 12 09:23:07 2004 -+++ esound-0.2.35-new/Makefile.in Sat Oct 2 16:14:52 2004 -@@ -281,7 +281,7 @@ - - LDADD = libesd.la $(AUDIOFILE_LIBS) - --esd_LDADD = $(WRAP_LIB) $(LDADD) -+esd_LDADD = $(WRAP_LIB) $(LDADD) $(SOUND_LIBS) - - m4datadir = $(datadir)/aclocal - m4data_DATA = esd.m4 -@@ -347,44 +347,44 @@ - esd_LDFLAGS = +diff -ur esound-0.2.36/Makefile.in esound-0.2.36-patched/Makefile.in +--- esound-0.2.36/Makefile.in 2005-06-07 09:04:14.000000000 +0800 ++++ esound-0.2.36-patched/Makefile.in 2005-08-28 14:17:07.000000000 +0800 +@@ -93,37 +93,37 @@ + esd_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) am_esdcat_OBJECTS = esdcat.$(OBJEXT) esdcat_OBJECTS = $(am_esdcat_OBJECTS) -esdcat_LDADD = $(LDADD) +esdcat_LDADD = $(LDADD) $(SOUND_LIBS) - esdcat_DEPENDENCIES = libesd.la - esdcat_LDFLAGS = + esdcat_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am__esdctl_SOURCES_DIST = getopt.c getopt1.c esdctl.c am_esdctl_OBJECTS = $(am__objects_2) esdctl.$(OBJEXT) esdctl_OBJECTS = $(am_esdctl_OBJECTS) -esdctl_LDADD = $(LDADD) +esdctl_LDADD = $(LDADD) $(SOUND_LIBS) - esdctl_DEPENDENCIES = libesd.la - esdctl_LDFLAGS = + esdctl_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am_esdfilt_OBJECTS = esdfilt.$(OBJEXT) esdfilt_OBJECTS = $(am_esdfilt_OBJECTS) -esdfilt_LDADD = $(LDADD) +esdfilt_LDADD = $(LDADD) $(SOUND_LIBS) - esdfilt_DEPENDENCIES = libesd.la - esdfilt_LDFLAGS = + esdfilt_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am_esdloop_OBJECTS = esdloop.$(OBJEXT) esdloop_OBJECTS = $(am_esdloop_OBJECTS) -esdloop_LDADD = $(LDADD) +esdloop_LDADD = $(LDADD) $(SOUND_LIBS) - esdloop_DEPENDENCIES = libesd.la - esdloop_LDFLAGS = + esdloop_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am_esdmon_OBJECTS = esdmon.$(OBJEXT) esdmon_OBJECTS = $(am_esdmon_OBJECTS) -esdmon_LDADD = $(LDADD) +esdmon_LDADD = $(LDADD) $(SOUND_LIBS) - esdmon_DEPENDENCIES = libesd.la - esdmon_LDFLAGS = + esdmon_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am__esdplay_SOURCES_DIST = getopt.c getopt1.c esdplay.c am_esdplay_OBJECTS = $(am__objects_2) esdplay.$(OBJEXT) esdplay_OBJECTS = $(am_esdplay_OBJECTS) -esdplay_LDADD = $(LDADD) +esdplay_LDADD = $(LDADD) $(SOUND_LIBS) - esdplay_DEPENDENCIES = libesd.la - esdplay_LDFLAGS = + esdplay_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am_esdrec_OBJECTS = esdrec.$(OBJEXT) esdrec_OBJECTS = $(am_esdrec_OBJECTS) -esdrec_LDADD = $(LDADD) +esdrec_LDADD = $(LDADD) $(SOUND_LIBS) - esdrec_DEPENDENCIES = libesd.la - esdrec_LDFLAGS = + esdrec_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) am_esdsample_OBJECTS = esdsample.$(OBJEXT) esdsample_OBJECTS = $(am_esdsample_OBJECTS) -esdsample_LDADD = $(LDADD) +esdsample_LDADD = $(LDADD) $(SOUND_LIBS) - esdsample_DEPENDENCIES = libesd.la - esdsample_LDFLAGS = + esdsample_DEPENDENCIES = libesd.la $(am__DEPENDENCIES_1) + binSCRIPT_INSTALL = $(INSTALL_SCRIPT) SCRIPTS = $(bin_SCRIPTS) -diff -uNr esound-0.2.35/configure esound-0.2.35-new/configure ---- esound-0.2.35/configure Thu Aug 12 09:23:05 2004 -+++ esound-0.2.35-new/configure Sat Oct 2 16:14:52 2004 -@@ -5916,7 +5916,7 @@ - allow_undefined_flag='-undefined suppress' - ;; - *) # Darwin 1.3 on -- allow_undefined_flag='-flat_namespace -undefined suppress' -+ test -z "$LD_TWOLEVEL_NAMESPACE" && allow_undefined_flag='-flat_namespace -undefined suppress' - ;; - esac - # FIXME: Relying on posixy $() will cause problems for -diff -uNr esound-0.2.35/esd.c esound-0.2.35-new/esd.c ---- esound-0.2.35/esd.c Thu Aug 12 08:09:34 2004 -+++ esound-0.2.35-new/esd.c Sat Oct 2 16:14:52 2004 +@@ -422,7 +422,7 @@ + esdplay.c + + LDADD = libesd.la $(AUDIOFILE_LIBS) +-esd_LDADD = $(WRAP_LIB) $(LDADD) ++esd_LDADD = $(WRAP_LIB) $(LDADD) $(SOUND_LIBS) + m4datadir = $(datadir)/aclocal + m4data_DATA = esd.m4 + esdconfdir = $(sysconfdir) +diff -ur esound-0.2.36/esd.c esound-0.2.36-patched/esd.c +--- esound-0.2.36/esd.c 2005-05-26 09:02:52.000000000 +0800 ++++ esound-0.2.36-patched/esd.c 2005-08-28 14:24:46.000000000 +0800 @@ -8,6 +8,10 @@ #include <errno.h> #include <signal.h> @@ -89,35 +70,35 @@ diff -uNr esound-0.2.35/esd.c esound-0.2.35-new/esd.c #ifndef HAVE_NANOSLEEP #include <sys/time.h> -@@ -607,6 +611,25 @@ - +@@ -641,6 +645,25 @@ int default_format = ESD_BITS16 | ESD_STEREO; /* end test scaffolding parameters */ -+ + + { -+ 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); -+ -+ ttcpolicy.period = bus_speed / 120; -+ ttcpolicy.computation = bus_speed / 2400; -+ ttcpolicy.constraint = bus_speed /1200; -+ ttcpolicy.preemptible = 1; -+ -+ thread_policy_set (mach_thread_self (), -+ THREAD_TIME_CONSTRAINT_POLICY, -+ (int*)&ttcpolicy, -+ THREAD_TIME_CONSTRAINT_POLICY_COUNT); ++ 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); ++ ++ ttcpolicy.period = bus_speed / 120; ++ ttcpolicy.computation = bus_speed / 2400; ++ ttcpolicy.constraint = bus_speed / 1200; ++ ttcpolicy.preemptible = 1; ++ ++ thread_policy_set (mach_thread_self (), ++ THREAD_TIME_CONSTRAINT_POLICY, ++ (int*)&ttcpolicy, ++ THREAD_TIME_CONSTRAINT_POLICY_COUNT); + } - ++ programname = *argv; -diff -uNr esound-0.2.35/esd_config.c esound-0.2.35-new/esd_config.c ---- esound-0.2.35/esd_config.c Thu Aug 12 04:14:54 2004 -+++ esound-0.2.35-new/esd_config.c Sat Oct 2 16:14:52 2004 + #ifdef DRIVER_ARTS +diff -ur esound-0.2.36/esd_config.c esound-0.2.36-patched/esd_config.c +--- esound-0.2.36/esd_config.c 2005-05-26 07:50:41.000000000 +0800 ++++ esound-0.2.36-patched/esd_config.c 2005-08-28 14:21:43.000000000 +0800 @@ -9,7 +9,7 @@ int esd_no_spawn=1; /* If we can't even find the system config file, things are screwed up - don't try to make things |