diff options
author | Alexander Langer <alex@FreeBSD.org> | 2003-07-13 15:43:35 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2003-07-13 15:43:35 +0000 |
commit | 06fa52af7ca88efed4de24df52beed9de95b9579 (patch) | |
tree | ef19827b7eec3919bedc0a88e07ef65fc832e1af | |
parent | Remove unneeded RUN_DEPENDS. (diff) |
From the PR:
'colordemo' from open-motif can be used to select colors by either RGB values
or from the file rgb.txt. However, the underlying library doesn't honour XBASE
and looks for the file in the wrong place.
PR: 50239
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Approved by: maintainer timeout (and the fact that Volker won't let
me pass my upcoming Haskell classes next terms if I
don't commit this)
Notes
Notes:
svn path=/head/; revision=84809
-rw-r--r-- | x11-toolkits/open-motif/files/patch-lib::Xm::ColorS.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/open-motif/files/patch-lib::Xm::ColorS.c b/x11-toolkits/open-motif/files/patch-lib::Xm::ColorS.c new file mode 100644 index 000000000000..600458fa2262 --- /dev/null +++ b/x11-toolkits/open-motif/files/patch-lib::Xm::ColorS.c @@ -0,0 +1,22 @@ +--- lib/Xm/ColorS.c.orig Mon Mar 24 09:01:49 2003 ++++ lib/Xm/ColorS.c Mon Mar 24 09:02:44 2003 +@@ -107,6 +107,10 @@ + + #define offset(field) XmPartOffset(XmColorSelector, field) + ++#ifndef LIBDIR ++#define LIBDIR "/usr/lib/X11" ++#endif ++ + static XmPartResource resources[] = { + { XmNcolorMode, XmCColorMode, XmRXmColorMode, sizeof(XmColorMode), + offset(color_mode), XmRImmediate, (XtPointer) XmScaleMode }, +@@ -117,7 +121,7 @@ + offset(rgb_file), XmRString, (XtPointer) "sys$manager:decw$rgb.dat" }, + #else + { XmNrgbFile, XmCString, XmRString, sizeof(String), +- offset(rgb_file), XmRString, (XtPointer) "/usr/lib/X11/rgb.txt" }, ++ offset(rgb_file), XmRString, (XtPointer) LIBDIR"/rgb.txt" }, + #endif + { XmNmarginWidth, XmCMargin, XmRHorizontalDimension,sizeof(Dimension), + offset(margin_width), XmRImmediate, (XtPointer) 2 }, |