summaryrefslogtreecommitdiff
path: root/lang/gcc3-f77
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-01 14:05:46 +0000
committerjlam <jlam@pkgsrc.org>2004-02-01 14:05:46 +0000
commit2f79dc83eeb36556d10029ee636c21b20e3c3efa (patch)
tree52008c433094c4f9359d1abdf86534eb4b05a283 /lang/gcc3-f77
parent2b75a71604317fd862138c60918be111b376db89 (diff)
downloadpkgsrc-2f79dc83eeb36556d10029ee636c21b20e3c3efa.tar.gz
bl3ify the gcc3-* packages. Also provide buildlink[23].mk files for use
by bsd.compiler.mk. Note that in the buildlink3.mk files, the dependency is always added regardless of the BUILDLINK_DEPTH. This is because these buildlink3.mk files may be included by bsd.prefs.mk, which is often included other buildlink3.mk files, and we need to ensure that regardless of the depth, we are using the correct compiler.
Diffstat (limited to 'lang/gcc3-f77')
-rw-r--r--lang/gcc3-f77/DESCR15
-rw-r--r--lang/gcc3-f77/Makefile28
-rw-r--r--lang/gcc3-f77/buildlink2.mk35
-rw-r--r--lang/gcc3-f77/buildlink3.mk25
4 files changed, 75 insertions, 28 deletions
diff --git a/lang/gcc3-f77/DESCR b/lang/gcc3-f77/DESCR
index bef410282ba..d80eb6dd987 100644
--- a/lang/gcc3-f77/DESCR
+++ b/lang/gcc3-f77/DESCR
@@ -1,14 +1,3 @@
-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 (GCC) version 3.x.
-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*.
+This package includes support for compiling the Fortran language.
diff --git a/lang/gcc3-f77/Makefile b/lang/gcc3-f77/Makefile
index d57a16ec647..bcfea74e96b 100644
--- a/lang/gcc3-f77/Makefile
+++ b/lang/gcc3-f77/Makefile
@@ -1,33 +1,31 @@
-# $NetBSD: Makefile,v 1.6 2003/08/11 14:16:04 drochner Exp $
-#
+# $NetBSD: Makefile,v 1.7 2004/02/01 14:05:47 jlam Exp $
-PKGNAME= gcc3${GCC3_PKGMODIF}-f77-${GCC_VERSION}
-COMMENT= GNU Compiler Collection, version 3, f77 compiler
+PKGNAME= gcc3${GCC3_PKGMODIF}-f77-${GCC_VERSION}
+COMMENT= GNU Compiler Collection, v3 - F77 compiler
-INFO_FILES= g77.info
+INFO_FILES= g77.info
-.include "../gcc3-c/buildaddon.mk"
+.include "../gcc3-c/language.mk"
CONFIGURE_ARGS+= --enable-languages="f77"
do-build:
- (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)
+ 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)
+ 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 \
- ${GCC_PREFIX}/mk/f77.mk
+ ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${GCC_PREFIX}/mk/f77.mk
# ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/gcc3-f77/buildlink2.mk b/lang/gcc3-f77/buildlink2.mk
new file mode 100644
index 00000000000..73555caa244
--- /dev/null
+++ b/lang/gcc3-f77/buildlink2.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink2.mk,v 1.1 2004/02/01 14:05:47 jlam Exp $
+
+.if !defined(GCC3F77_BUILDLINK2_MK)
+GCC3F77_BUILDLINK2_MK= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(GCC3_INSTALLTO_SUBPREFIX)
+GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
+.endif
+BUILDLINK_PACKAGES+= gcc3f77
+BUILDLINK_DEPENDS.gcc3f77?= gcc3${GCC3_PKGMODIF}-f77>=${_GCC_REQD}
+BUILDLINK_PKGSRCDIR.gcc3f77?= ../../lang/gcc3-f77
+
+# Packages that link against gcc shared libraries need a full
+# dependency.
+#
+.if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gcc3f77+= full
+.else
+BUILDLINK_DEPMETHOD.gcc3f77?= build
+.endif
+
+BUILDLINK_PREFIX.gcc3f77= ${LOCALBASE}
+BUILDLINK_WRAPPER_ENV+= \
+ COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
+
+BUILDLINK_FILES.gcc3f77= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/g2c.h
+BUILDLINK_FILES.gcc3f77+= ${_GCC_SUBPREFIX}lib/libg2c.*
+
+BUILDLINK_TARGETS+= gcc3f77-buildlink
+
+gcc3f77-buildlink: _BUILDLINK_USE
+
+.endif # GCC3F77_BUILDLINK2_MK
diff --git a/lang/gcc3-f77/buildlink3.mk b/lang/gcc3-f77/buildlink3.mk
new file mode 100644
index 00000000000..cb0fb898fe0
--- /dev/null
+++ b/lang/gcc3-f77/buildlink3.mk
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/02/01 14:05:47 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GCC3F77_BUILDLINK3_MK:= ${GCC3F77_BUILDLINK3_MK}+
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(GCC3F77_BUILDLINK3_MK:M+)
+. if defined(GCC3_INSTALLTO_SUBPREFIX)
+GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
+. endif
+BUILDLINK_PACKAGES+= gcc3f77
+BUILDLINK_DEPENDS+= gcc3f77
+BUILDLINK_DEPENDS.gcc3f77+= gcc3${GCC3_PKGMODIF}-f77>=${_GCC_REQD}
+BUILDLINK_PKGSRCDIR.gcc3f77?= ../../lang/gcc3-f77
+
+# Packages that link against shared libraries need a full dependency.
+. if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gcc3f77+= full
+. else
+BUILDLINK_DEPMETHOD.gcc3f77?= build
+. endif
+.endif # GCC3F77_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}