pkgsrc-wip/swi-prolog-lite/patches/patch-ag
Hubert Feyrer f416f45f03 Fix the pkg to actually work. Needs some cleanup, though:
* gmake is hardcoded in a few places, as configure doesn't properly
   set MAKE=gmake. The pkg doesn't build with BSD make.
 * passing of include and library paths (both -L and -Wl,-R as well as
   via LD_RUN_PATH in at least two places) should be reviewed
 * The Cpp symbol "__unix__" isn't passed on properly into all places,
   even as it's both set via the pkgsrc CPPFLAGS variable and also (via
   a patch) in src/pl-incl.h. Most affected file is unx/process.c as
   it will still compile, but miss a few symbols that are much needed
   for the xpce shared object file. Error shows up at runtime only.
   (The file "shlib.pl" included in the pkg was provided kindly by the
   SWI-Prolog maintainer Jan Wielemaker to give better error messages).

I'd love to move the pkg over to pkgsrc/lang ASAP, please let me know
if you have any major objections or patches.
2004-04-23 20:34:57 +00:00

13 lines
480 B
Text

$NetBSD: patch-ag,v 1.1 2004/04/23 20:34:57 hubertf Exp $
--- src/pl-incl.h.orig 2004-01-05 10:43:45.000000000 +0100
+++ src/pl-incl.h
@@ -206,7 +206,7 @@ gcc.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#ifndef __unix__
-#if defined(_AIX) || defined(__APPLE__) || defined(__unix) || defined(__BEOS__)
+#if defined(_AIX) || defined(__APPLE__) || defined(__unix) || defined(__BEOS__) || defined(__NetBSD__)
#define __unix__ 1
#endif
#endif