aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2003-07-13 23:43:35 +0800
committeralex <alex@FreeBSD.org>2003-07-13 23:43:35 +0800
commit6346bc3dfe06ad01d349fabdb7493467ac893fee (patch)
tree697dd077db56838c1081d06e178a9dfe40e5c818
parent38b3e07afad4588f651b6478aea59f80971b523a (diff)
downloadfreebsd-ports-gnome-6346bc3dfe06ad01d349fabdb7493467ac893fee.tar.gz
freebsd-ports-gnome-6346bc3dfe06ad01d349fabdb7493467ac893fee.tar.zst
freebsd-ports-gnome-6346bc3dfe06ad01d349fabdb7493467ac893fee.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)
-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 },