[BACK]Return to patch-al CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cad / tnt-mmtl / patches

File: [cvs.NetBSD.org] / pkgsrc / cad / tnt-mmtl / patches / patch-al (download)

Revision 1.1, Tue Mar 18 11:48:25 2008 UTC (13 years, 8 months ago) by dmcmahill
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper, cube-native-xorg-base, cube-native-xorg
Branch point for: pkgsrc-2012Q1

Repair the build when using f2c-f77 as the fortran compiler.

Also, do not install calcCAP or calcRL.  These two tools seem to give
results of questionable accuracy (see the sourceforge bug tracker
for the upstream sources) and also don't build with gcc-4 anyway.

Bump pkgrevision.

$NetBSD: patch-al,v 1.1 2008/03/18 11:48:25 dmcmahill Exp $

The automake manual clearly specifies that if we mix fortran sources
in with c or c++ sources then we need to use the AC_F77_LIBRARY_LDFLAGS
autoconf macro and then add $(FLIBS) to either LDADD for a program or
LIBADD for a library.

--- bem/Makefile.am.orig	2004-04-22 20:07:12.000000000 +0000
+++ bem/Makefile.am	2008-03-16 03:44:18.000000000 +0000
@@ -27,5 +27,5 @@
 #  supply command line switches --add-missing --copy.
 #----------------------------------------------------------------
-AUTOMAKE_OPTIONS = foreign subdir-objects
+AUTOMAKE_OPTIONS = foreign
 
 #---------------------------------------------------------------
@@ -72,7 +72,9 @@
 bem_SOURCES = $(cpp_SOURCES) $(fortran_SOURCES) \
 		src/nmmtl_parse_xsctn.cpp
+bem_LDADD = $(FLIBS)
 
 nmmtl_SOURCES = $(cpp_SOURCES) $(fortran_SOURCES) \
 		src/nmmtl_parse_graphic.cpp
+nmmtl_LDADD = $(FLIBS)