Some header and library files couldn't be found on a freshly installed
FreeBSD 9.0 Release. Here's a fix.
--
Ulrich Wilkens
Email: m...@uwilkens.de
>From 36c05d98806ccfe511e39e6e905cf8a7d8e68b53 Mon Sep 17 00:00:00 2001
From: Ulrich Wilkens <m...@uwilkens.de>
Date: Sun, 19 Aug 2012 02:32:18 +0200
Subject: [PATCH] Find correct system includes and libs on FreeBSD.
---
cde/programs/Imakefile | 2 +-
cde/programs/dtcm/dtcm/Imakefile | 2 +-
cde/programs/dtlogin/Imakefile | 9 ++++++---
cde/programs/dtmail/libDtMail/Common/Imakefile | 2 +-
cde/programs/dtmail/libDtMail/RFC/Imakefile | 2 +-
cde/programs/dtpdmd/Imakefile | 2 +-
6 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/cde/programs/Imakefile b/cde/programs/Imakefile
index f6b1835..b3a5914 100644
--- a/cde/programs/Imakefile
+++ b/cde/programs/Imakefile
@@ -6,7 +6,7 @@ XCOMM $XConsortium: Imakefile /main/17 1996/10/06 17:13:20 rws $
NSGMLSDIR = nsgmls
#endif
EXTRADIRS = types localized tttypes $(NSGMLSDIR)
-#if !defined(OpenBSDArchitecture)
+#if !defined(OpenBSDArchitecture) && !defined(FreeBSDArchitecture)
EXTRADIRS += util
#endif
diff --git a/cde/programs/dtcm/dtcm/Imakefile b/cde/programs/dtcm/dtcm/Imakefile
index b6fe1bc..9d508a5 100644
--- a/cde/programs/dtcm/dtcm/Imakefile
+++ b/cde/programs/dtcm/dtcm/Imakefile
@@ -16,7 +16,7 @@ LOCAL_LIBRARIES = ../libDtCmP/libDtCmP.a $(CSALIB)
DtClientLibs
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)" \
$(ICONV_INBUF_DEFINE)
-#if defined(RsArchitecture) || defined(USLArchitecture) ||
defined(UXPArchitecture) || defined(LinuxArchitecture) ||
defined(OpenBSDArchitecture)
+#if defined(RsArchitecture) || defined(USLArchitecture) ||
defined(UXPArchitecture) || defined(LinuxArchitecture) ||
defined(OpenBSDArchitecture) || defined(FreeBSDArchitecture)
TTY_LIBRARIES = $(LOCAL_LIBRARIES)
#elif defined(AlphaArchitecture)
TTY_LIBRARIES = $(DTCMPLIB) $(CSALIB) $(DTSVCLIB) $(XTOOLLIB) $(XLIB)
diff --git a/cde/programs/dtlogin/Imakefile b/cde/programs/dtlogin/Imakefile
index 47936d9..6bcab17 100644
--- a/cde/programs/dtlogin/Imakefile
+++ b/cde/programs/dtlogin/Imakefile
@@ -120,16 +120,19 @@ SYS_LIBRARIES = -ls
SYS_LIBRARIES = -lm -lXdmcp
#endif
-#ifdef LinuxArchitecture
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
SYS_LIBRARIES = -lm -lcrypt
-/* On Linux, just use the system provided Xau and Xdmcp*/
+/* just use the system provided Xau and Xdmcp*/
DEPXAUTHLIB =
DEPXDMCPLIB =
+#endif
+
/* Add in freetype header locations, required for modern Motif libs */
+#ifdef LinuxArchitecture
INCLUDES = -I/usr/include/freetype2
#endif
-#ifdef OpenBSDArchitecture
+#if defined(OpenBSDArchitecture) || defined(FreeBSDArchitecture)
INCLUDES = -I$(XPROJECTROOT)/include/freetype2
#endif
diff --git a/cde/programs/dtmail/libDtMail/Common/Imakefile
b/cde/programs/dtmail/libDtMail/Common/Imakefile
index f5b3083..266df2c 100644
--- a/cde/programs/dtmail/libDtMail/Common/Imakefile
+++ b/cde/programs/dtmail/libDtMail/Common/Imakefile
@@ -12,7 +12,7 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
#include <Threads.tmpl>
-INCLUDES = -I. -I../../include -I../../include/utils -I$(CDELIBSRC)
+INCLUDES = -I. -I../../include -I../../include/utils -I$(CDELIBSRC)
$(STD_INCLUDES)
#if HasVFork
VFORK_DEFINES = -DHAS_VFORK
diff --git a/cde/programs/dtmail/libDtMail/RFC/Imakefile
b/cde/programs/dtmail/libDtMail/RFC/Imakefile
index 2b0ca19..dda7502 100644
--- a/cde/programs/dtmail/libDtMail/RFC/Imakefile
+++ b/cde/programs/dtmail/libDtMail/RFC/Imakefile
@@ -12,7 +12,7 @@ DEPEND_DEFINES = $(CXXDEPENDINCLUDES)
#include <Threads.tmpl>
-INCLUDES = -I. -I../Common -I../../include -I../../include/utils -I$(CDELIBSRC)
+INCLUDES = -I. -I../Common -I../../include -I../../include/utils
-I$(CDELIBSRC) $(STD_INCLUDES)
#if HasVFork
VFORK_DEFINES = -DHAS_VFORK
diff --git a/cde/programs/dtpdmd/Imakefile b/cde/programs/dtpdmd/Imakefile
index 6f346ad..1eaa2e1 100644
--- a/cde/programs/dtpdmd/Imakefile
+++ b/cde/programs/dtpdmd/Imakefile
@@ -36,7 +36,7 @@ OBJS = dispatch.o dtpdmd.o mailbox.o \
manager.o records.o setup.o \
util.o nlmsg.o
-#ifdef LinuxArchitecture
+#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
/* On Linux, just use the system provided Xau */
DEPXAUTHLIB =
#endif
--
1.7.8
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel