aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2007-07-15 03:51:29 +0800
committerhrs <hrs@FreeBSD.org>2007-07-15 03:51:29 +0800
commit57dbb91d038919ecf8477fe904507b7b5209cefe (patch)
treef4a0ed76437c698be82b027cc1d8bd51b93aeae4
parent62fc4df0d2315007040167598f4a75f4a70593a9 (diff)
downloadfreebsd-ports-gnome-57dbb91d038919ecf8477fe904507b7b5209cefe.tar.gz
freebsd-ports-gnome-57dbb91d038919ecf8477fe904507b7b5209cefe.tar.zst
freebsd-ports-gnome-57dbb91d038919ecf8477fe904507b7b5209cefe.zip
Fix build with GCC 4.2.
Spotted by: pointyhat
-rw-r--r--japanese/dvi2dvi/files/patch-Makefile (renamed from japanese/dvi2dvi/files/patch-aa)7
-rw-r--r--japanese/dvi2dvi/files/patch-defs.h14
2 files changed, 15 insertions, 6 deletions
diff --git a/japanese/dvi2dvi/files/patch-aa b/japanese/dvi2dvi/files/patch-Makefile
index 99a5f77b27c8..2f40255b5fe6 100644
--- a/japanese/dvi2dvi/files/patch-aa
+++ b/japanese/dvi2dvi/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig Fri Sep 3 22:01:59 1999
-+++ Makefile Thu Aug 26 01:24:25 2004
++++ Makefile Sun Jul 15 04:45:41 2007
@@ -2,10 +2,10 @@
# your site:
#
@@ -23,14 +23,15 @@
+KPSELIB = -L${kpathsea_parent}/kpathsea/STATIC -lkpathsea
#
- CC=gcc
+-CC=gcc
++CC?=gcc
#
-CCFLAGS = -g
+#CCFLAGS = -g
#CCFLAGS = -O # SUN etc ...
#CCFLAGS = -O -traditional -DPOSIX # 386bsd (gcc 1.X)
-#CCFLAGS = -O -DPOSIX # Netbsd (gcc 2.X), Linux
-+CCFLAGS += -O -DPOSIX # Netbsd (gcc 2.X), Linux
++CCFLAGS += -O -DPOSIX -DANSI # Netbsd (gcc 2.X), Linux
#CCFLAGS = -O -bsd # NeXT
#CCFLAGS = -O -DMSDOS -DPOSIX # DJGCC (gcc 2.X)
#CCFLAGS = -O -DSYSV # SysV
diff --git a/japanese/dvi2dvi/files/patch-defs.h b/japanese/dvi2dvi/files/patch-defs.h
index 06e23b5dcad0..42b53cbb9cd6 100644
--- a/japanese/dvi2dvi/files/patch-defs.h
+++ b/japanese/dvi2dvi/files/patch-defs.h
@@ -1,6 +1,14 @@
---- defs.h.orig Sat Aug 21 01:06:36 2004
-+++ defs.h Sat Aug 21 01:07:14 2004
-@@ -35,21 +35,11 @@
+--- defs.h.orig Fri Apr 17 04:41:28 1998
++++ defs.h Sun Jul 15 04:47:17 2007
+@@ -27,6 +27,7 @@
+ #define bcopy(s, d, n) memcpy(d, s, n)
+ #define bzero(p, n) memset(p, 0, n)
+ #else
++#include <string.h>
+ #include <strings.h>
+ #endif
+
+@@ -35,21 +36,11 @@
char *realloc();
char *calloc();
int free();