summaryrefslogtreecommitdiff
path: root/lang/gcc3-f77
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3-f77')
-rw-r--r--lang/gcc3-f77/DESCR14
-rw-r--r--lang/gcc3-f77/MESSAGE7
-rw-r--r--lang/gcc3-f77/Makefile90
-rw-r--r--lang/gcc3-f77/PLIST13
-rw-r--r--lang/gcc3-f77/distinfo7
-rw-r--r--lang/gcc3-f77/files/gcc3.mk7
-rw-r--r--lang/gcc3-f77/patches/patch-aa34
-rw-r--r--lang/gcc3-f77/patches/patch-ab37
-rw-r--r--lang/gcc3-f77/patches/patch-ac30
9 files changed, 239 insertions, 0 deletions
diff --git a/lang/gcc3-f77/DESCR b/lang/gcc3-f77/DESCR
new file mode 100644
index 00000000000..bef410282ba
--- /dev/null
+++ b/lang/gcc3-f77/DESCR
@@ -0,0 +1,14 @@
+This directory contains the GNU Compiler Collection (GCC) version 3.3.
+It includes all of the support for compiling C, C++, Objective C, Fortran,
+Java, and Chill.
+
+The GNU Compiler Collection is free software. See the file COPYING for copying
+permission.
+
+See the file gcc.texi (together with other files that it includes) for
+installation and porting information. The file INSTALL contains a
+copy of the installation information, as plain ASCII.
+
+See the Bugs chapter of the GCC Manual for how to report bugs
+usefully. An online readable version of the manual is in the files
+gcc.info*.
diff --git a/lang/gcc3-f77/MESSAGE b/lang/gcc3-f77/MESSAGE
new file mode 100644
index 00000000000..4344bdc2377
--- /dev/null
+++ b/lang/gcc3-f77/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2003/07/06 12:15:10 drochner Exp $
+
+To use ${PKGNAME} include "${PREFIX}/share/examples/gcc/mk.conf" in your
+BSD style makefile.
+
+===========================================================================
diff --git a/lang/gcc3-f77/Makefile b/lang/gcc3-f77/Makefile
new file mode 100644
index 00000000000..466e891be23
--- /dev/null
+++ b/lang/gcc3-f77/Makefile
@@ -0,0 +1,90 @@
+# $NetBSD: Makefile,v 1.1 2003/07/06 12:15:10 drochner Exp $
+#
+
+DISTNAME= gcc-3.3
+PKGNAME= gcc3-f77-3.3
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.3/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= tech-pkg@netbsd.org
+HOMEPAGE= http://www.gnu.org/software/gcc/gcc.html
+COMMENT= GNU Compiler Collection
+
+NOT_FOR_PLATFORM= Darwin-*-*
+
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+USE_GMAKE= YES
+
+HAS_CONFIGURE= YES
+
+CONFIGURE_ARGS+= --infodir=${PREFIX}/info
+CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
+CONFIGURE_ARGS+= --enable-languages="f77"
+
+# as this is named gcc3, use DISTNAME instead.
+FILES_SUBST+= PKGNAME_NOREV=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
+MESSAGE_SUBST+= PKGNAME_NOREV=${DISTNAME}
+
+TEXINFO_REQD= 4.2
+INFO_FILES= g77.info
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h)
+GCC_PLATFORM= ${MACHINE_GNU_ARCH}--netbsdelf2.0
+PTHREAD_OPTS+= require native
+.include "../../mk/pthread.buildlink2.mk"
+CPPFLAGS+= -I${BUILDLINK_DIR}/include
+CFLAGS+= -I${BUILDLINK_DIR}/include
+.else
+GCC_PLATFORM= ${MACHINE_GNU_PLATFORM}
+.endif
+CONFIGURE_ARGS+= --host=${GCC_PLATFORM}
+PLIST_SUBST+= GCC_PLATFORM=${GCC_PLATFORM}
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
+CONFIGURE_ARGS+= --enable-shared
+.else
+. if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --enable-shared
+. else
+CONFIGURE_ARGS+= --disable-shared
+. endif
+. if ${CC:M*gcc*} == ""
+ALL_TARGET= bootstrap
+. endif
+.endif
+
+# as this is named gcc3, use DISTNAME instead.
+GCC_PREFIX= ${PREFIX}/gcc3
+GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${PKGVERSION}
+
+pre-configure:
+ ${MKDIR} ${BUILD_DIRS}
+ cd ${WRKSRC} && contrib/gcc_update --touch
+
+do-build:
+ ${LN} -sf ${GCC_PREFIX}/bin/gcc ${WRKSRC}/gcc/xgcc
+ (cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} f77)
+ (cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} g77)
+ (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} all-target-libf2c)
+
+post-build:
+ @${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc3.mk > ${WRKDIR}/gcc3.mk
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gcc/f771 ${GCC_ARCHDIR}
+ (cd ${WRKSRC}/gcc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ f77.install-common f77.install-info f77.install-man)
+ (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
+ install-target-libf2c)
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/gcc3.mk \
+ ${PREFIX}/share/examples/gcc/mk-g77.conf
+# ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77
+
+.include "../../lang/gcc3-c/buildlink2.mk"
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/gcc3-f77/PLIST b/lang/gcc3-f77/PLIST
new file mode 100644
index 00000000000..f20dea31ae0
--- /dev/null
+++ b/lang/gcc3-f77/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2003/07/06 12:15:10 drochner Exp $
+gcc3/bin/g77
+gcc3/lib/gcc-lib/${GCC_PLATFORM}/${PKGVERSION}/f771
+gcc3/lib/gcc-lib/${GCC_PLATFORM}/${PKGVERSION}/include/g2c.h
+gcc3/lib/libfrtbegin.a
+gcc3/lib/libg2c.a
+gcc3/lib/libg2c.la
+gcc3/lib/libg2c.so
+gcc3/lib/libg2c.so.0
+gcc3/lib/libg2c.so.0.0
+gcc3/man/man1/g77.1
+info/g77.info
+share/examples/gcc/mk-g77.conf
diff --git a/lang/gcc3-f77/distinfo b/lang/gcc3-f77/distinfo
new file mode 100644
index 00000000000..c2795d973e5
--- /dev/null
+++ b/lang/gcc3-f77/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2003/07/06 12:15:10 drochner Exp $
+
+SHA1 (gcc-3.3.tar.bz2) = 18e23822c6dc9cb462e0ff88bc1b8a20c53da60a
+Size (gcc-3.3.tar.bz2) = 23447616 bytes
+SHA1 (patch-aa) = d52683aa45749ac357549d356abe42537288f352
+SHA1 (patch-ab) = d2f4bf95eaf58e1b388771f1bc2d2083c9dcf514
+SHA1 (patch-ac) = 1bd470366c793bfb12895e365ac4e9f3e5fda101
diff --git a/lang/gcc3-f77/files/gcc3.mk b/lang/gcc3-f77/files/gcc3.mk
new file mode 100644
index 00000000000..9f473369efb
--- /dev/null
+++ b/lang/gcc3-f77/files/gcc3.mk
@@ -0,0 +1,7 @@
+# $NetBSD: gcc3.mk,v 1.1 2003/07/06 12:15:10 drochner Exp $
+#
+# make configuration file for @PKGNAME_NOREV@
+
+USE_GCC3= # defined
+F77= @GCC_PREFIX@/bin/g77
+PKG_FC= @GCC_PREFIX@/bin/g77
diff --git a/lang/gcc3-f77/patches/patch-aa b/lang/gcc3-f77/patches/patch-aa
new file mode 100644
index 00000000000..3cf1ed3d249
--- /dev/null
+++ b/lang/gcc3-f77/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1 2003/07/06 12:15:11 drochner Exp $
+
+--- Makefile.in.orig 2003-05-14 02:18:14.000000000 +0200
++++ Makefile.in 2003-07-03 18:02:24.000000000 +0200
+@@ -153,11 +153,11 @@
+
+ # For an installed makeinfo, we require it to be from texinfo 4.2 or
+ # higher, else we use the "missing" dummy.
+-MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
+- then echo $$r/texinfo/makeinfo/makeinfo ; \
+- else if (makeinfo --version \
+- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
+- then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
++#MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
++# then echo $$r/texinfo/makeinfo/makeinfo ; \
++# else if (makeinfo --version \
++# | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
++# then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
+
+ # This just becomes part of the MAKEINFO definition passed down to
+ # sub-makes. It lets flags be given on the command line while still
+@@ -1642,9 +1642,9 @@
+
+ install-dosrel-fake:
+
+-ALL_GCC = all-gcc
+-ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
+-ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
++#ALL_GCC = all-gcc
++#ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
++#ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
+
+ # This is a list of inter-dependencies among modules.
+ all-ash:
diff --git a/lang/gcc3-f77/patches/patch-ab b/lang/gcc3-f77/patches/patch-ab
new file mode 100644
index 00000000000..4b206dfb665
--- /dev/null
+++ b/lang/gcc3-f77/patches/patch-ab
@@ -0,0 +1,37 @@
+$NetBSD: patch-ab,v 1.1 2003/07/06 12:15:11 drochner Exp $
+
+--- gcc/Makefile.in.orig 2003-04-22 17:50:48.000000000 +0200
++++ gcc/Makefile.in 2003-07-03 17:21:34.000000000 +0200
+@@ -617,8 +617,8 @@
+
+ # Build and host support libraries. FORBUILD is either
+ # .. or ../$(build_alias) depending on whether host != build.
+-LIBIBERTY = ../libiberty/libiberty.a
+-BUILD_LIBIBERTY = @FORBUILD@/libiberty/libiberty.a
++LIBIBERTY = ${prefix}/lib/libiberty.a
++BUILD_LIBIBERTY = ${prefix}/lib/libiberty.a
+
+ # Dependencies on the intl and portability libraries.
+ LIBDEPS= $(INTLDEPS) $(LIBIBERTY)
+@@ -1273,6 +1273,7 @@
+ # Language-independent files.
+
+ DRIVER_DEFINES = \
++ -DLINK_LIBGCC_SPEC="\"%D $(RPATH_FLAG)$(GCC_PREFIX)/lib\"" \
+ -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
+ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
+ -DDEFAULT_TARGET_VERSION=\"$(version)\" \
+@@ -2874,11 +2875,11 @@
+ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
+ done; \
+ else true; fi
+- -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
++ -if $(SHELL) -c '${INSTALL_INFO} --version' >/dev/null 2>&1; then \
+ if [ -f $(DESTDIR)$(infodir)/dir ] ; then \
+ for f in cpp.info gcc.info gccint.info cppinternals.info; do \
+ if [ -f $(DESTDIR)$(infodir)/$$f ]; then \
+- install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/$$f; \
++ ${INSTALL_INFO} --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/$$f; \
+ else true; fi; \
+ done; \
+ else true; fi; \
diff --git a/lang/gcc3-f77/patches/patch-ac b/lang/gcc3-f77/patches/patch-ac
new file mode 100644
index 00000000000..5e603afdf17
--- /dev/null
+++ b/lang/gcc3-f77/patches/patch-ac
@@ -0,0 +1,30 @@
+$NetBSD: patch-ac,v 1.1 2003/07/06 12:15:11 drochner Exp $
+
+--- gcc/f/Make-lang.in.orig Sat May 24 12:59:15 2003
++++ gcc/f/Make-lang.in Sat May 24 13:00:08 2003
+@@ -277,9 +277,9 @@
+ chmod a-x $(DESTDIR)$(infodir)/g77.info*; \
+ else true; fi
+ @if [ -f $(srcdir)/f/g77.info ] ; then \
+- if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+- echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
+- install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
++ if $(SHELL) -c '${INSTALL_INFO} --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
++ echo " ${INSTALL_INFO} --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
++ ${INSTALL_INFO} --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
+ else : ; fi; \
+ else : ; fi
+
+@@ -297,9 +297,9 @@
+ else true; fi
+
+ f77.uninstall: installdirs
+- if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
+- echo " install-info --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
+- install-info --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
++ if $(SHELL) -c '${INSTALL_INFO} --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
++ echo " ${INSTALL_INFO} --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
++ ${INSTALL_INFO} --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
+ else : ; fi
+ rm -rf $(DESTDIR)$(bindir)/$(G77_INSTALL_NAME)$(exeext); \
+ rm -rf $(DESTDIR)$(bindir)/$(G77_CROSS_NAME)$(exeext); \