diff options
author | jlam <jlam> | 2005-01-12 15:31:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-01-12 15:31:58 +0000 |
commit | 5937043cc1cdd52848b52103904de7cee12ad3be (patch) | |
tree | c0c77d22dc6d7622e4196a9cf79e6fc77ed93ceb /mk/compiler/mipspro.mk | |
parent | d476dee04f2dafe646b6b0b363b0517ce6053be7 (diff) | |
download | pkgsrc-5937043cc1cdd52848b52103904de7cee12ad3be.tar.gz |
Nuke USE_FORTRAN and bring the f2c handling within the mk/compiler
framework. The list of changes include:
* Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES,
so we no longer need to say it in package Makefiles. Packages
should now append to USE_LANGUAGES instead of setting it.
* Create mk/compiler/f2c.mk which implements another pseudo-compiler
"f2c" that may be used with any C compiler backend, e.g.
PKGSRC_COMPILER= f2c ccache gcc
* Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk,
etc., to use f2c if the native Fortran compiler isn't present.
Packages that use Fortran should now simply include the line:
USE_LANGUAGES+= fortran
in the package Makefile.
Diffstat (limited to 'mk/compiler/mipspro.mk')
-rw-r--r-- | mk/compiler/mipspro.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk index 694a66c7544..1a483cc80a5 100644 --- a/mk/compiler/mipspro.mk +++ b/mk/compiler/mipspro.mk @@ -1,4 +1,4 @@ -# $NetBSD: mipspro.mk,v 1.29 2004/11/30 14:50:37 jlam Exp $ +# $NetBSD: mipspro.mk,v 1.30 2005/01/12 15:32:01 jlam Exp $ .if !defined(COMPILER_MIPSPRO_MK) COMPILER_MIPSPRO_MK= defined @@ -95,4 +95,14 @@ CFLAGS+= ${MABIFLAG} LDFLAGS+= ${MABIFLAG} .endif +# Force the use of f2c-f77 for compiling Fortran. +_MIPSPRO_USE_F2C= no +FCPATH= /nonexistent +.if !exists(${FCPATH}) +_MIPSPRO_USE_F2C= yes +.endif +.if !empty(_MIPSPRO_USE_F2C:M[yY][eE][sS]) +. include "../../mk/compiler/f2c.mk" +.endif + .endif # COMPILER_MIPSPRO_MK |