aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/open-motif
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2003-07-13 15:43:35 +0000
committerAlexander Langer <alex@FreeBSD.org>2003-07-13 15:43:35 +0000
commit06fa52af7ca88efed4de24df52beed9de95b9579 (patch)
treeef19827b7eec3919bedc0a88e07ef65fc832e1af /x11-toolkits/open-motif
parent30a75c1dd410935d83ece9d63fc66ffdba41f21a (diff)
downloadports-06fa52af7ca88efed4de24df52beed9de95b9579.tar.gz
ports-06fa52af7ca88efed4de24df52beed9de95b9579.zip
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
Diffstat (limited to 'x11-toolkits/open-motif')
-rw-r--r--x11-toolkits/open-motif/files/patch-lib::Xm::ColorS.c22
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 },