summaryrefslogtreecommitdiff
path: root/x11/xorg-imake/patches
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-05-23 19:14:14 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-05-23 19:14:14 +0000
commit11da37d42c516f01a6b07792bef6a6dad8cc2a91 (patch)
treec0f4eaadde5b9fd992de2937ef22d2129c2f7470 /x11/xorg-imake/patches
parentf0f53fd27d8eb8976487ef5bbbae89098f6b8857 (diff)
downloadpkgsrc-11da37d42c516f01a6b07792bef6a6dad8cc2a91.tar.gz
Apply patches from Joerg Sonnenberger for DragonFlyBSD and GCC
3.x.x, while I'm here remove redundant DragonFly.cf from xorg-imake/files, we'll use the same file from xorg-libs.
Diffstat (limited to 'x11/xorg-imake/patches')
-rw-r--r--x11/xorg-imake/patches/patch-ak39
-rw-r--r--x11/xorg-imake/patches/patch-al59
2 files changed, 98 insertions, 0 deletions
diff --git a/x11/xorg-imake/patches/patch-ak b/x11/xorg-imake/patches/patch-ak
new file mode 100644
index 00000000000..c0e83fd1bfb
--- /dev/null
+++ b/x11/xorg-imake/patches/patch-ak
@@ -0,0 +1,39 @@
+$NetBSD: patch-ak,v 1.1 2005/05/23 19:14:14 xtraeme Exp $
+
+--- config/imake/imake.c.orig 2004-03-04 18:45:52.000000000 +0100
++++ config/imake/imake.c 2004-08-10 17:20:20.000000000 +0200
+@@ -145,7 +145,7 @@
+ * #include INCLUDE_IMAKEFILE
+ * <add any global targets like 'clean' and long dependencies>
+ */
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ /* This needs to be before _POSIX_SOURCE gets defined */
+ # include <sys/param.h>
+ # include <sys/types.h>
+@@ -1020,7 +1020,7 @@
+ }
+ #endif
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__DragonFly__)
+ static void
+ get_stackprotector(FILE *inFile)
+ {
+@@ -1285,6 +1285,7 @@
+ defined(__NetBSD__) || \
+ defined(__OpenBSD__) || \
+ defined(__FreeBSD__) || \
++ defined(__DragonFly__) || \
+ defined(__APPLE__) || \
+ defined(__GNU__)
+ "/usr/bin/cc", /* for Linux PostIncDir */
+@@ -1603,7 +1604,7 @@
+ fprintf(inFile, "#define DefaultOSTeenyVersion 0\n");
+ }
+ #endif /* EMX */
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__DragonFly__)
+ get_stackprotector(inFile);
+ #endif
+ return FALSE;
diff --git a/x11/xorg-imake/patches/patch-al b/x11/xorg-imake/patches/patch-al
new file mode 100644
index 00000000000..c6b9284ac06
--- /dev/null
+++ b/x11/xorg-imake/patches/patch-al
@@ -0,0 +1,59 @@
+$NetBSD: patch-al,v 1.1 2005/05/23 19:14:14 xtraeme Exp $
+
+--- config/imake/imakemdep.h.orig 2004-08-09 09:54:09.000000000 +0000
++++ config/imake/imakemdep.h 2004-08-09 09:55:07.000000000 +0000
+@@ -285,7 +285,7 @@
+ #if defined(__386BSD__)
+ #define DEFAULT_CPP "/usr/libexec/cpp"
+ #endif
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ #define USE_CC_E
+ #endif
+ #if defined(__sgi) && defined(__ANSI_CPP__)
+@@ -348,7 +348,7 @@
+ #endif
+ #endif
+ #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
+- defined(__FreeBSD__) || defined(MACH) || defined(linux) || \
++ defined(__FreeBSD__) || defined(__DragonFly__) || defined(MACH) || defined(linux) || \
+ defined(__GNU__) || defined(__bsdi__) || defined(__GNUC__)
+ # ifdef __i386__
+ "-D__i386__",
+@@ -807,14 +807,14 @@
+ # define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
+ # define DEFAULT_OS_TEENY_REV "v %[0-9]"
+ /* # define DEFAULT_OS_NAME "srm %[^\n]" */ /* Not useful on ISC */
+-# elif defined(__FreeBSD__) || defined(__OpenBSD__)
++# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+ /* BSD/OS too? */
+ /* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
+ # define DEFAULT_OS_MAJOR_REV "r %[0-9]"
+ # define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
+ # define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
+ # define DEFAULT_OS_NAME "srm %[^\n]"
+-# if defined(__FreeBSD__)
++# if defined(__FreeBSD__) || defined(__DragonFly__)
+ /* Use an alternate way to find the teeny version for -STABLE, -SNAP versions */
+ # ifndef CROSSCOMPILE_CPP
+ # define DEFAULT_OS_TEENY_REV_FROB(buf, size) \
+@@ -1228,7 +1228,9 @@
+ #ifdef _MIPS_SZPTR
+ {"_MIPS_SZPTR", DEF_STRINGIFY(_MIPS_SZPTR)},
+ #endif
+-#ifdef __FreeBSD__
++#ifdef __DragonFly__
++ {"__DragonFly__", "1"},
++#elif defined(__FreeBSD__)
+ {"__FreeBSD__", "1"},
+ #endif
+ #ifdef __OpenBSD__
+@@ -1395,7 +1397,7 @@
+
+ # ifdef linux
+ System sys = LinuX;
+-# elif defined __FreeBSD__
++# elif defined __FreeBSD__ || defined(__DragonFly__)
+ System sys = freebsd;
+ # elif defined __NetBSD__
+ System sys = netBSD;