OpenBSD 6+: use installed X11 and Motif
authorJon Trulson <jon@radscan.com>
Thu, 14 Jun 2018 18:59:21 +0000 (12:59 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 14 Jun 2018 20:20:02 +0000 (14:20 -0600)
This commit removes the need to setup X11 and motif import symlinks
before building CDE.  With OpenBSD v6+, the installed versions of X11 and
Motif will be used.

This may work with earlier versions of OpenBSD as well, but I don't
have access to those older versions.  If you try it, and it works,
send a patch to the CDE mailing list.

This was tested on OpenBSD 6.2

cde/config/cf/OpenBSD.cf
cde/config/imake/Makefile.ini

index d2b171893ff1056dd17af7d1014920ed6156c18e..6f1310d7fa732a9f74d36e53538602d996ccc127 100644 (file)
@@ -148,6 +148,11 @@ XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
 # endif
 #endif
 
+/* Use installed versions of Xm and X11 */
+#if OSMajorVersion >= 6
+# define UseInstalledX11        YES
+#endif
+
 /*
  * Compiler Features
  */
index 30e311c0800ca515df04a42578d19e08ed0e5fb2..f05a17de31017637704c1be795ff8f58bc6c9f27 100644 (file)
@@ -11,7 +11,7 @@
 BOOTSTRAPCFLAGS = 
 CC = cc
 CDEBUGFLAGS = -O
-INCLUDES = -I../../include -I/usr/local/include/X11 -I/usr/include/X11 -I../../imports/x11/include/X11
+INCLUDES = -I../../include -I/usr/local/include/X11 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I../../imports/x11/include/X11
 CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES)
 SHELL = /bin/sh
 RM = rm -f