diff options
Diffstat (limited to 'lang/gcc3-f77')
-rw-r--r-- | lang/gcc3-f77/DESCR | 15 | ||||
-rw-r--r-- | lang/gcc3-f77/Makefile | 28 | ||||
-rw-r--r-- | lang/gcc3-f77/buildlink2.mk | 35 | ||||
-rw-r--r-- | lang/gcc3-f77/buildlink3.mk | 25 |
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/+$//} |