summaryrefslogtreecommitdiff
path: root/lang/sather/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-12 00:05:04 +0000
committerjoerg <joerg>2006-01-12 00:05:04 +0000
commit791f254d7e6eb2eebccd5344ba54379390b378f0 (patch)
tree34f320d19c7c79ef74b9e855e5ef8264aee34335 /lang/sather/patches
parent5a868cacd93126e52ac6780fb34c883e3e2aee16 (diff)
downloadpkgsrc-791f254d7e6eb2eebccd5344ba54379390b378f0.tar.gz
Add DragonFly. Be a bit nicer to CPP and add trailing \ to mask the
embedded newlines.
Diffstat (limited to 'lang/sather/patches')
-rw-r--r--lang/sather/patches/patch-ae4
-rw-r--r--lang/sather/patches/patch-az13
-rw-r--r--lang/sather/patches/patch-ba13
-rw-r--r--lang/sather/patches/patch-bb13
4 files changed, 41 insertions, 2 deletions
diff --git a/lang/sather/patches/patch-ae b/lang/sather/patches/patch-ae
index 50ea362de53..0f92f45175e 100644
--- a/lang/sather/patches/patch-ae
+++ b/lang/sather/patches/patch-ae
@@ -1,4 +1,4 @@
-$NetBSD: patch-ae,v 1.1.1.1 2002/05/04 00:45:35 jtb Exp $
+$NetBSD: patch-ae,v 1.2 2006/01/12 00:05:04 joerg Exp $
--- Makefile.orig Thu Nov 4 08:04:28 1999
+++ Makefile Thu May 2 17:09:46 2002
@@ -29,7 +29,7 @@ $NetBSD: patch-ae,v 1.1.1.1 2002/05/04 00:45:35 jtb Exp $
# or the SATHER_PLATFORM environment variable
# Should be edited for a particular system
-DEFAULT_PLATFORM=unix
-+DEFAULT_PLATFORM=netbsd
++DEFAULT_PLATFORM=${LOWER_OPSYS}
# The platform used to compile the boot compiler. Usually just default, but has to
# be one of: freebsd, hpux_at, iris-4, linux, osf_at, solaris, solaris_at, unix,
diff --git a/lang/sather/patches/patch-az b/lang/sather/patches/patch-az
new file mode 100644
index 00000000000..347feda5631
--- /dev/null
+++ b/lang/sather/patches/patch-az
@@ -0,0 +1,13 @@
+$NetBSD: patch-az,v 1.1 2006/01/12 00:05:04 joerg Exp $
+
+--- System/Common/c_header.h.orig 2006-01-11 22:04:22.000000000 +0000
++++ System/Common/c_header.h
+@@ -40,7 +40,7 @@
+ # include <unistd.h>
+ #endif
+
+-#if !defined(__NeXT__) && !defined(__EMX__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__CYGWIN32__)
++#if !defined(__NeXT__) && !defined(__EMX__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) && !defined(__DragonFly__)
+ # include <values.h>
+ #endif
+
diff --git a/lang/sather/patches/patch-ba b/lang/sather/patches/patch-ba
new file mode 100644
index 00000000000..8d322a44d31
--- /dev/null
+++ b/lang/sather/patches/patch-ba
@@ -0,0 +1,13 @@
+$NetBSD: patch-ba,v 1.1 2006/01/12 00:05:04 joerg Exp $
+
+--- System/Common/runtime.h.orig 2006-01-11 22:04:54.000000000 +0000
++++ System/Common/runtime.h
+@@ -179,7 +179,7 @@ void rt_file_close(INT fd);
+ #define isnormal(f) ((int)1) /* these two are hacks esc*/
+ #define issubnormal(f) ((int)0)
+
+-#elif defined(_AIX) || defined(SUNOS5) || defined(__NeXT__) || defined(__sgi) || defined(ALPHA) || defined(__hpux) || defined(__FreeBSD__) || defined(__alpha) || defined(__CYGWIN32__)
++#elif defined(_AIX) || defined(SUNOS5) || defined(__NeXT__) || defined(__sgi) || defined(ALPHA) || defined(__hpux) || defined(__FreeBSD__) || defined(__alpha) || defined(__CYGWIN32__) || defined(__DragonFly__)
+ # define FLTDEXP10(f) pow(10.0,f)
+ #else
+ # define FLTDEXP10(f) exp10(f)
diff --git a/lang/sather/patches/patch-bb b/lang/sather/patches/patch-bb
new file mode 100644
index 00000000000..b8ff1f1f93b
--- /dev/null
+++ b/lang/sather/patches/patch-bb
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.1 2006/01/12 00:05:04 joerg Exp $
+
+--- System/Common/Makefile.orig 1999-10-21 22:26:32.000000000 +0000
++++ System/Common/Makefile
+@@ -33,7 +33,7 @@ CONFIG: Makefile ../../Makefile CONFIG.p
+ @echo "-- in the top level Makefile. Please do not edit it" >> $(TMPFILE)
+ @echo "#define CONFIG_DEFAULT_PLATFORM \"$(DEFAULT_PLATFORM)\"" >> $(TMPFILE)
+ @echo -n "#define CONFIG_PLATFORMS \"" >> $(TMPFILE)
+- @echo -n $(PLATFORMS) | sed "s/ //;s/,/\",\"/" >> $(TMPFILE)
++ @echo $(PLATFORMS) | sed "s/ //;s/,/\",\"/" | sed 's/$$/\\/' >> $(TMPFILE)
+ @echo "\"" >> $(TMPFILE)
+ @echo "#include \"CONFIG.proto\"" >> $(TMPFILE)
+ @$(CPP) -undef $(TMPFILE) > CONFIG