summaryrefslogtreecommitdiff
path: root/audio/xcdplayer/patches/patch-aj
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-08-23 06:49:29 +0000
committergarbled <garbled@pkgsrc.org>1998-08-23 06:49:29 +0000
commit042c5632348bd3e5ecbdc483c9ca8c75a395e255 (patch)
tree7f0f14a56d0a7e1788489194c267cfa8eb3de2d6 /audio/xcdplayer/patches/patch-aj
parent8886740bfeaea007e181daee92e344911de98552 (diff)
downloadpkgsrc-042c5632348bd3e5ecbdc483c9ca8c75a395e255.tar.gz
Added and fixed patches to allow build on alpha. Closes PR 5815
(Tim Rightnour)
Diffstat (limited to 'audio/xcdplayer/patches/patch-aj')
-rw-r--r--audio/xcdplayer/patches/patch-aj70
1 files changed, 70 insertions, 0 deletions
diff --git a/audio/xcdplayer/patches/patch-aj b/audio/xcdplayer/patches/patch-aj
new file mode 100644
index 00000000000..76bd3124b8d
--- /dev/null
+++ b/audio/xcdplayer/patches/patch-aj
@@ -0,0 +1,70 @@
+$NetBSD: patch-aj,v 1.1 1998/08/23 06:49:29 garbled Exp $
+--- logo_setup.c.orig Tue Jan 12 11:59:46 1993
++++ logo_setup.c Thu Jul 23 00:08:28 1998
+@@ -30,2 +30,5 @@
+ # include "cdrom_globs.h"
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++# include "cdrom_freebsd.h"
++#endif
+ #ifdef sun
+@@ -45,2 +48,4 @@
+
++extern AppData app_data;
++
+ static Widget track_button_widget;
+@@ -57,2 +62,10 @@
+ static int vol;
++extern void leds_label_setup();
++static void cb_track_button();
++static void cb_timer_button();
++static void volume_jump_proc();
++static void volume_scroll_proc();
++static void popup_title_dialog();
++static void popdown_title_dialog();
++
+
+@@ -62,10 +75,2 @@
+ {
+- extern void leds_label_setup();
+- extern void cb_track_button();
+- extern void cb_timer_button();
+- extern void volume_jump_proc();
+- extern void volume_scroll_proc();
+- extern void popup_title_dialog();
+- extern void popdown_title_dialog();
+-
+ Widget version_label_widget;
+@@ -128,3 +133,3 @@
+
+- if (display_timer == True)
++ if (app_data.display_timer == True) {
+ timer_button_widget = XtCreateManagedWidget("timerButton",
+@@ -134,5 +139,6 @@
+
+- XtAddCallback(timer_button_widget, XtNcallback, cb_timer_button, 0);
+-
+- timer_button_update();
++ XtAddCallback(timer_button_widget, XtNcallback,
++ cb_timer_button, 0);
++ timer_button_update();
++ }
+ thumb_pixmap = XCreateBitmapFromData(XtDisplay(logo_form_widget),
+@@ -173,6 +179,6 @@
+ if ((vol = cdrom_get_volume()) == 0) {
+- vol = (int) ((MAXVOL - volbase) * 0.75) + volbase;
++ vol = (int) ((MAXVOL - app_data.volbase) * 0.75) + app_data.volbase;
+ }
+ #else
+- vol = (int) ((MAXVOL - volbase) * 0.75) + volbase;
++ vol = (int) ((MAXVOL - app_data.volbase) * 0.75) + app_data.volbase;
+ #endif
+@@ -358,3 +364,3 @@
+
+- if (display_timer == False)
++ if (app_data.display_timer == False)
+ return;
+@@ -415,3 +421,3 @@
+ vol = (*(float *) percent) * MAXVOL;
+- vol = (vol * volpcent) + volbase;
++ vol = (vol * app_data.volpcent) + app_data.volbase;
+ #endif