diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2011-01-22 18:25:47 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2011-01-22 18:25:47 +0000 |
commit | d3a7af1f4c75f44d5c040b8340509489e1e2f5bf (patch) | |
tree | 96053936a8046a19d179f06605069b1e69bdfed9 /cad | |
parent | f9876ecf789e439076f6d53a8e6d855cb4988d42 (diff) | |
download | pkgsrc-d3a7af1f4c75f44d5c040b8340509489e1e2f5bf.tar.gz |
Set CPP in configure environment to avoid configure getting a bad
value which in turn caused a build failure on .F files which cpp can
process but gcc -E can't (unless you have a gcc with fortran installed)
Diffstat (limited to 'cad')
-rw-r--r-- | cad/tnt-mmtl/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cad/tnt-mmtl/Makefile b/cad/tnt-mmtl/Makefile index 113223a9e48..64fc3a473b7 100644 --- a/cad/tnt-mmtl/Makefile +++ b/cad/tnt-mmtl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2010/07/30 10:36:23 asau Exp $ +# $NetBSD: Makefile,v 1.16 2011/01/22 18:25:47 dmcmahill Exp $ # DISTNAME= tnt-1.2.2 @@ -22,6 +22,13 @@ USE_LANGUAGES= c c++ fortran77 TEX_DEPMOD= build TEX_ACCEPTED= teTeX3 +# without this, configure ends up using 'gcc -E' for CPP and +# passing that down via an environment variable to f2c-f77 which +# in turn ends up feeding a .F file to gcc -E that fails due to +# fortran not being a configured language. This is what happens on +# a stock NetBSD-5.1 install. +CONFIGURE_ENV+= CPP=${CPP} + post-patch: ${MV} ${WRKSRC}/tnt ${WRKSRC}/tnt-mmtl cd ${WRKSRC}/bem && aclocal |