summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2011-01-22 18:25:47 +0000
committerdmcmahill <dmcmahill>2011-01-22 18:25:47 +0000
commit4313ee5f637b27055c3038be43a008170713f6e3 (patch)
tree96053936a8046a19d179f06605069b1e69bdfed9 /cad
parentcf042f6b61b8f87e36146a9f0ead49512308f773 (diff)
downloadpkgsrc-4313ee5f637b27055c3038be43a008170713f6e3.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