From 396eff69f7c7dd406788228f69ed02b45b101283 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Thu, 14 Jun 2018 00:59:38 +0000 Subject: [PATCH] FreeBSD 11: Don't use imported x11/motif, use installed versions for build With this patch, the import symlinks for x11 and motif do not need to be created. The build will use the installed headers in /usr/local/include/{X11, Xm}. This will work for FreeBSD 11 only ATM as I don't have older systems to test with. It may work for FreeBSD 10 or earlier versions as well. If so, edit config/cf/FreeBSD.cf and change the OSMajorVersion check for UseInstalledX11 appropriately. And send a patch to the CDE mailing list :) --- cde/config/cf/FreeBSD.cf | 6 ++++++ cde/config/imake/Makefile.ini | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cde/config/cf/FreeBSD.cf b/cde/config/cf/FreeBSD.cf index b25e9a60..1b56256b 100644 --- a/cde/config/cf/FreeBSD.cf +++ b/cde/config/cf/FreeBSD.cf @@ -73,6 +73,12 @@ USE_GCC = UseGcc # define HasGcc2 YES #endif +/* Use installed X11 includes/libs on FreeBSD 11+ */ +#if (OSMajorVersion >= 11) +#define UseInstalledX11 YES +#endif + + /* For DtHelp TIFF processing routines. */ #ifdef AMD64Architecture #define LSBBitOrder YES diff --git a/cde/config/imake/Makefile.ini b/cde/config/imake/Makefile.ini index 6c93094f..30e311c0 100644 --- a/cde/config/imake/Makefile.ini +++ b/cde/config/imake/Makefile.ini @@ -11,7 +11,7 @@ BOOTSTRAPCFLAGS = CC = cc CDEBUGFLAGS = -O -INCLUDES = -I../../include -I/usr/include/X11 -I../../imports/x11/include/X11 +INCLUDES = -I../../include -I/usr/local/include/X11 -I/usr/include/X11 -I../../imports/x11/include/X11 CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES) SHELL = /bin/sh RM = rm -f -- 2.25.1