summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-02-14 04:18:25 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-02-14 04:18:25 +0000
commitf8cd0b629791b3c80d3decadbf3a4825530c721f (patch)
tree9e140806f3c5237331b4e9800928664b4c5299e8
parentNetBIOS Auditing Tool / Security Kit (diff)
Upgrade to 1998-02-05 SNAP. Fixes problems several have had with 1.0.1.
Including linking with the STL vector class.
Notes
Notes: svn path=/head/; revision=9712
-rw-r--r--lang/egcs/Makefile32
-rw-r--r--lang/egcs/distinfo2
-rw-r--r--lang/egcs/files/patch-ad19
-rw-r--r--lang/egcs/files/patch-af21
-rw-r--r--lang/gcc-devel/Makefile32
-rw-r--r--lang/gcc-devel/distinfo2
-rw-r--r--lang/gcc-devel/files/patch-ad19
-rw-r--r--lang/gcc-devel/files/patch-af21
-rw-r--r--lang/gcc-ooo/Makefile32
-rw-r--r--lang/gcc-ooo/distinfo2
-rw-r--r--lang/gcc-ooo/files/patch-ad19
-rw-r--r--lang/gcc-ooo/files/patch-af21
-rw-r--r--lang/gcc/Makefile32
-rw-r--r--lang/gcc/distinfo2
-rw-r--r--lang/gcc/files/patch-ad19
-rw-r--r--lang/gcc/files/patch-af21
-rw-r--r--lang/gcc295/Makefile32
-rw-r--r--lang/gcc295/distinfo2
-rw-r--r--lang/gcc295/files/patch-ad19
-rw-r--r--lang/gcc295/files/patch-af21
-rw-r--r--lang/gcc30/Makefile32
-rw-r--r--lang/gcc30/distinfo2
-rw-r--r--lang/gcc30/files/patch-ad19
-rw-r--r--lang/gcc30/files/patch-af21
-rw-r--r--lang/gcc31/Makefile32
-rw-r--r--lang/gcc31/distinfo2
-rw-r--r--lang/gcc31/files/patch-ad19
-rw-r--r--lang/gcc31/files/patch-af21
-rw-r--r--lang/gcc32/Makefile32
-rw-r--r--lang/gcc32/distinfo2
-rw-r--r--lang/gcc32/files/patch-ad19
-rw-r--r--lang/gcc32/files/patch-af21
-rw-r--r--lang/gcc33/Makefile32
-rw-r--r--lang/gcc33/distinfo2
-rw-r--r--lang/gcc33/files/patch-ad19
-rw-r--r--lang/gcc33/files/patch-af21
-rw-r--r--lang/gcc34/Makefile32
-rw-r--r--lang/gcc34/distinfo2
-rw-r--r--lang/gcc34/files/patch-ad19
-rw-r--r--lang/gcc34/files/patch-af21
-rw-r--r--lang/gcc35/Makefile32
-rw-r--r--lang/gcc35/distinfo2
-rw-r--r--lang/gcc35/files/patch-ad19
-rw-r--r--lang/gcc35/files/patch-af21
-rw-r--r--lang/gcc40/Makefile32
-rw-r--r--lang/gcc40/distinfo2
-rw-r--r--lang/gcc40/files/patch-ad19
-rw-r--r--lang/gcc40/files/patch-af21
-rw-r--r--lang/gcc41/Makefile32
-rw-r--r--lang/gcc41/distinfo2
-rw-r--r--lang/gcc41/files/patch-ad19
-rw-r--r--lang/gcc41/files/patch-af21
-rw-r--r--lang/gcc42/Makefile32
-rw-r--r--lang/gcc42/distinfo2
-rw-r--r--lang/gcc42/files/patch-ad19
-rw-r--r--lang/gcc42/files/patch-af21
-rw-r--r--lang/gcc43/Makefile32
-rw-r--r--lang/gcc43/distinfo2
-rw-r--r--lang/gcc43/files/patch-ad19
-rw-r--r--lang/gcc43/files/patch-af21
-rw-r--r--lang/gcc44/Makefile32
-rw-r--r--lang/gcc44/distinfo2
-rw-r--r--lang/gcc44/files/patch-ad19
-rw-r--r--lang/gcc44/files/patch-af21
-rw-r--r--lang/gcc45/Makefile32
-rw-r--r--lang/gcc45/distinfo2
-rw-r--r--lang/gcc45/files/patch-ad19
-rw-r--r--lang/gcc45/files/patch-af21
-rw-r--r--lang/gcc46/Makefile32
-rw-r--r--lang/gcc46/distinfo2
-rw-r--r--lang/gcc46/files/patch-ad19
-rw-r--r--lang/gcc46/files/patch-af21
-rw-r--r--lang/gcc47/Makefile32
-rw-r--r--lang/gcc47/distinfo2
-rw-r--r--lang/gcc47/files/patch-ad19
-rw-r--r--lang/gcc47/files/patch-af21
-rw-r--r--lang/gcc48/Makefile32
-rw-r--r--lang/gcc48/distinfo2
-rw-r--r--lang/gcc48/files/patch-ad19
-rw-r--r--lang/gcc48/files/patch-af21
80 files changed, 960 insertions, 520 deletions
diff --git a/lang/egcs/Makefile b/lang/egcs/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/egcs/Makefile
+++ b/lang/egcs/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/egcs/distinfo b/lang/egcs/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/egcs/distinfo
+++ b/lang/egcs/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/egcs/files/patch-ad b/lang/egcs/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/egcs/files/patch-ad
+++ b/lang/egcs/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/egcs/files/patch-af b/lang/egcs/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/egcs/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc-devel/Makefile b/lang/gcc-devel/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc-devel/Makefile
+++ b/lang/gcc-devel/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc-devel/distinfo b/lang/gcc-devel/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc-devel/distinfo
+++ b/lang/gcc-devel/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc-devel/files/patch-ad b/lang/gcc-devel/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc-devel/files/patch-ad
+++ b/lang/gcc-devel/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc-devel/files/patch-af b/lang/gcc-devel/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc-devel/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc-ooo/Makefile b/lang/gcc-ooo/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc-ooo/Makefile
+++ b/lang/gcc-ooo/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc-ooo/distinfo b/lang/gcc-ooo/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc-ooo/distinfo
+++ b/lang/gcc-ooo/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc-ooo/files/patch-ad b/lang/gcc-ooo/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc-ooo/files/patch-ad
+++ b/lang/gcc-ooo/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc-ooo/files/patch-af b/lang/gcc-ooo/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc-ooo/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc/distinfo b/lang/gcc/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc/distinfo
+++ b/lang/gcc/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc/files/patch-ad b/lang/gcc/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc/files/patch-ad
+++ b/lang/gcc/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc/files/patch-af b/lang/gcc/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc295/Makefile b/lang/gcc295/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc295/Makefile
+++ b/lang/gcc295/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc295/distinfo b/lang/gcc295/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc295/distinfo
+++ b/lang/gcc295/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc295/files/patch-ad b/lang/gcc295/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc295/files/patch-ad
+++ b/lang/gcc295/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc295/files/patch-af b/lang/gcc295/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc295/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc30/Makefile b/lang/gcc30/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc30/Makefile
+++ b/lang/gcc30/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc30/distinfo b/lang/gcc30/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc30/distinfo
+++ b/lang/gcc30/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc30/files/patch-ad b/lang/gcc30/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc30/files/patch-ad
+++ b/lang/gcc30/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc30/files/patch-af b/lang/gcc30/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc30/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc31/Makefile b/lang/gcc31/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc31/Makefile
+++ b/lang/gcc31/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc31/distinfo b/lang/gcc31/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc31/distinfo
+++ b/lang/gcc31/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc31/files/patch-ad b/lang/gcc31/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc31/files/patch-ad
+++ b/lang/gcc31/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc31/files/patch-af b/lang/gcc31/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc31/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc32/Makefile b/lang/gcc32/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc32/Makefile
+++ b/lang/gcc32/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc32/distinfo b/lang/gcc32/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc32/distinfo
+++ b/lang/gcc32/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc32/files/patch-ad b/lang/gcc32/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc32/files/patch-ad
+++ b/lang/gcc32/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc32/files/patch-af b/lang/gcc32/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc32/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc33/Makefile b/lang/gcc33/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc33/Makefile
+++ b/lang/gcc33/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc33/distinfo b/lang/gcc33/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc33/distinfo
+++ b/lang/gcc33/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc33/files/patch-ad b/lang/gcc33/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc33/files/patch-ad
+++ b/lang/gcc33/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc33/files/patch-af b/lang/gcc33/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc33/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc34/Makefile b/lang/gcc34/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc34/Makefile
+++ b/lang/gcc34/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc34/distinfo b/lang/gcc34/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc34/distinfo
+++ b/lang/gcc34/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc34/files/patch-ad b/lang/gcc34/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc34/files/patch-ad
+++ b/lang/gcc34/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc34/files/patch-af b/lang/gcc34/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc34/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc35/Makefile b/lang/gcc35/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc35/Makefile
+++ b/lang/gcc35/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc35/distinfo b/lang/gcc35/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc35/distinfo
+++ b/lang/gcc35/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc35/files/patch-ad b/lang/gcc35/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc35/files/patch-ad
+++ b/lang/gcc35/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc35/files/patch-af b/lang/gcc35/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc35/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc40/Makefile b/lang/gcc40/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc40/Makefile
+++ b/lang/gcc40/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc40/distinfo b/lang/gcc40/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc40/distinfo
+++ b/lang/gcc40/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc40/files/patch-ad b/lang/gcc40/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc40/files/patch-ad
+++ b/lang/gcc40/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc40/files/patch-af b/lang/gcc40/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc40/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc41/Makefile b/lang/gcc41/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc41/Makefile
+++ b/lang/gcc41/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc41/distinfo b/lang/gcc41/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc41/distinfo
+++ b/lang/gcc41/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc41/files/patch-ad b/lang/gcc41/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc41/files/patch-ad
+++ b/lang/gcc41/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc41/files/patch-af b/lang/gcc41/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc41/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc42/Makefile b/lang/gcc42/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc42/Makefile
+++ b/lang/gcc42/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc42/distinfo b/lang/gcc42/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc42/distinfo
+++ b/lang/gcc42/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc42/files/patch-ad b/lang/gcc42/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc42/files/patch-ad
+++ b/lang/gcc42/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc42/files/patch-af b/lang/gcc42/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc42/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc43/Makefile b/lang/gcc43/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc43/Makefile
+++ b/lang/gcc43/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc43/distinfo b/lang/gcc43/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc43/distinfo
+++ b/lang/gcc43/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc43/files/patch-ad b/lang/gcc43/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc43/files/patch-ad
+++ b/lang/gcc43/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc43/files/patch-af b/lang/gcc43/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc43/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc44/distinfo b/lang/gcc44/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc44/distinfo
+++ b/lang/gcc44/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc44/files/patch-ad b/lang/gcc44/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc44/files/patch-ad
+++ b/lang/gcc44/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc44/files/patch-af b/lang/gcc44/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc44/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc45/Makefile
+++ b/lang/gcc45/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc45/distinfo b/lang/gcc45/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc45/distinfo
+++ b/lang/gcc45/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc45/files/patch-ad b/lang/gcc45/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc45/files/patch-ad
+++ b/lang/gcc45/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc45/files/patch-af b/lang/gcc45/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc45/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc46/Makefile
+++ b/lang/gcc46/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc46/distinfo b/lang/gcc46/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc46/distinfo
+++ b/lang/gcc46/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc46/files/patch-ad b/lang/gcc46/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc46/files/patch-ad
+++ b/lang/gcc46/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc46/files/patch-af b/lang/gcc46/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc46/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc47/files/patch-ad b/lang/gcc47/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc47/files/patch-ad
+++ b/lang/gcc47/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc47/files/patch-af b/lang/gcc47/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc47/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index 45c2a777e549..b8860aa17b12 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -1,16 +1,16 @@
# New ports collection makefile for: egcs
-# Version required: 1.0.1
+# Version required: 1998-02-05
# Date created: 9 Jan 1998
# Whom: John Polstra <jdp@polstra.com>
#
-# $Id: Makefile,v 1.4 1998/01/23 17:49:35 jdp Exp $
+# $Id: Makefile,v 1.5 1998/02/03 07:48:35 asami Exp $
#
-DISTNAME= egcs-1.0.1
+DISTNAME= egcs-980205
CATEGORIES= lang
-MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.0.1/ \
- ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.0.1/
+MASTER_SITES= ftp://ftp.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://cambridge.cygnus.com/pub/egcs/snapshots/1998-02-05/ \
+ ftp://ftp.fu-berlin.de/unix/languages/egcs/snapshots/1998-02-05/
MAINTAINER= jdp@polstra.com
@@ -21,16 +21,22 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd
MAN1= cccp.1 g++.1 g77.1 gcc.1
-FME=${PREFIX}
+post-patch:
+ @(cd ${WRKSRC}/gcc/config/i386/ ; \
+ MAJ=`sysctl -n kern.osreldate | sed -e '/.....$$/s///'` ; \
+ mv freebsd.h freebsd.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
+ mv freebsd-elf.h freebsd-elf.h.in ; \
+ sed -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
post-install:
@(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ ${PREFIX}/bin/c++ \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1obj \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cc1plus \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/cpp \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/f771 \
- ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.90.23/ld ; \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1obj \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cc1plus \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/cpp \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/f771 \
+ ${PREFIX}/lib/gcc-lib/i386-unknown-freebsd/egcs-2.91.07/ld ; \
do strip $$prog ; \
done)
if [ ! -f ${PREFIX}/info/dir ]; then \
diff --git a/lang/gcc48/distinfo b/lang/gcc48/distinfo
index 0546423e3f80..0d54ed3fc425 100644
--- a/lang/gcc48/distinfo
+++ b/lang/gcc48/distinfo
@@ -1 +1 @@
-MD5 (egcs-1.0.1.tar.gz) = 3bdeb3a5835753aa53725002d8939606
+MD5 (egcs-980205.tar.gz) = 2dff4b0ab51a94721828f9e20d101e0b
diff --git a/lang/gcc48/files/patch-ad b/lang/gcc48/files/patch-ad
index aae7be9bfd4c..cb56621ece0e 100644
--- a/lang/gcc48/files/patch-ad
+++ b/lang/gcc48/files/patch-ad
@@ -1,17 +1,12 @@
---- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997
-+++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 1998
-@@ -35,10 +35,13 @@
- #include "i386/perform.h"
-
- #undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
-
+--- gcc/config/i386/freebsd.h.orig Fri Feb 13 10:52:24 1998
++++ gcc/config/i386/freebsd.h Fri Feb 13 11:03:27 1998
+@@ -40,6 +40,9 @@
/* Like the default, except no -lg. */
- #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
-+
+ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
-
++
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
+
diff --git a/lang/gcc48/files/patch-af b/lang/gcc48/files/patch-af
new file mode 100644
index 000000000000..d838cff75b3a
--- /dev/null
+++ b/lang/gcc48/files/patch-af
@@ -0,0 +1,21 @@
+--- gcc/config/i386/freebsd-elf.h.orig Sat Dec 6 09:25:14 1997
++++ gcc/config/i386/freebsd-elf.h Fri Feb 13 11:43:46 1998
+@@ -127,6 +127,9 @@
+ } \
+ }
+
++#undef CC1PLUS_SPEC
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
++
+ #undef SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
+
+@@ -140,7 +143,7 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"