summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2011-01-22 18:25:47 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2011-01-22 18:25:47 +0000
commita6d4c11e5dda040411946b7cc5aad74b58ad5aba (patch)
tree96053936a8046a19d179f06605069b1e69bdfed9 /cad
parenta881b3076ad1030c1d85fec62de174d88972d65c (diff)
downloadpkgsrc-a6d4c11e5dda040411946b7cc5aad74b58ad5aba.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/Makefile9
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