diff --git a/x11/xcoloredit/Makefile b/x11/xcoloredit/Makefile index 3200ec83ccdf..dc9d123f3d04 100644 --- a/x11/xcoloredit/Makefile +++ b/x11/xcoloredit/Makefile @@ -1,17 +1,17 @@ PORTNAME= xcoloredit PORTVERSION= 1.2 PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= XCONTRIB/../R5contrib DISTNAME= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= cy@FreeBSD.org COMMENT= Find colour values by graphical colour mixing USES= imake tar:Z xorg USE_XORG= ice sm x11 xaw xext xmu xpm xt PLIST_FILES= bin/xcoloredit \ man/man1/xcoloredit.1.gz .include diff --git a/x11/xcoloredit/files/patch-xcoloredit.c b/x11/xcoloredit/files/patch-xcoloredit.c index cbc7f594a24a..588f6d1a89dc 100644 --- a/x11/xcoloredit/files/patch-xcoloredit.c +++ b/x11/xcoloredit/files/patch-xcoloredit.c @@ -1,84 +1,93 @@ ---- xcoloredit.c.orig Wed May 30 22:10:09 2007 -+++ xcoloredit.c Wed May 30 22:10:57 2007 +--- xcoloredit.c.orig 1992-01-25 08:00:21.000000000 -0800 ++++ xcoloredit.c 2023-05-25 01:40:26.543747000 -0700 @@ -38,6 +38,7 @@ */ #include +#include #include #include #include @@ -50,6 +51,7 @@ #include #include #include +#include #include "Xcoloredit.h" #include "color.h" @@ -85,6 +87,7 @@ static void move_scroll(); static void change_text_colour(); +static int WhichButton(String name); #define MEMORY_OFFSET 8 #define NUM_MEMORIES 36 @@ -182,8 +185,8 @@ #undef offset -void main(argc, argv) -unsigned int argc; +int main(argc, argv) +int argc; char **argv; { Status ok; +@@ -350,7 +353,7 @@ + unboxedGC = XtGetGC(mixingForm, GCForeground | GCLineWidth, &values); + + original_background = values.foreground; +- bars_locked = NULL; ++ bars_locked = 0; + + XtAddCallback(redScroll, XtNjumpProc, Thumbed, (XtPointer)RED); + XtAddCallback(greenScroll, XtNjumpProc, Thumbed, (XtPointer)GREEN); @@ -696,7 +699,7 @@ (float)0.025); XawScrollbarSetThumb(valScroll, (float)(1.0 - hsv_values.v), (float)0.025); -#endif SOLID_THUMB +#endif /* SOLID_THUMB */ } @@ -878,7 +881,7 @@ XawScrollbarSetThumb(w, top, (float)(1.0 - top)); #else XawScrollbarSetThumb(w, top, (float)0.025); -#endif SOLID_THUMB +#endif /* SOLID_THUMB */ do_change = FALSE; pass_value = 1.0 - rgb_values.r/65536.0; @@ -941,7 +944,7 @@ XawScrollbarSetThumb(w, top, (float)(1.0 - top)); #else XawScrollbarSetThumb(w, top, (float)0.025); -#endif SOLID_THUMB +#endif /* SOLID_THUMB */ move_lock(); } @@ -960,7 +963,7 @@ (float)(1.0 - locked_top)); #else XawScrollbarSetThumb(lockedScroll, locked_top, (float)0.025); -#endif SOLID_THUMB +#endif /* SOLID_THUMB */ } @@ -986,8 +989,8 @@ unsigned long *length; int *format; { - if (XmuConvertStandardSelection(w, selection, target, type, value, - length, format)) + if (XmuConvertStandardSelection(w, (Time)0, selection, target, type, + (XPointer *)value, length, format)) return TRUE; if (*target == XA_STRING) {