[20111] trunk/dports/math

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 19 14:44:17 PDT 2006


Revision: 20111
          http://trac.macosforge.org/projects/macports/changeset/20111
Author:   pmq at macports.org
Date:     2006-10-19 14:44:16 -0700 (Thu, 19 Oct 2006)

Log Message:
-----------
Closes #10901. New port math/optpp.
Submitted by: moll at isi.edu

Added Paths:
-----------
    trunk/dports/math/optpp/
    trunk/dports/math/optpp/Portfile
    trunk/dports/math/optpp/files/
    trunk/dports/math/optpp/files/patch-acx_blas.m4

Added: trunk/dports/math/optpp/Portfile
===================================================================
--- trunk/dports/math/optpp/Portfile	                        (rev 0)
+++ trunk/dports/math/optpp/Portfile	2006-10-19 21:44:16 UTC (rev 20111)
@@ -0,0 +1,32 @@
+# $Id$
+
+PortSystem 1.0
+
+name		optpp
+version		2.3
+categories	math
+maintainers	moll at isi.edu
+
+description	C++ library for non-linear optimization
+long_description	\
+	OPT++ is a C++ library for non-linear optimization. 
+
+homepage	http://csmr.ca.sandia.gov/projects/opt++/
+distname	optpp-${version}
+master_sites	${homepage}
+extract.suffix .tar.gz
+checksums	md5 dd82937f2901bdcd972bfd5260849a36
+
+patchfiles patch-acx_blas.m4
+use_autoconf yes
+configure.env LDFLAGS="-framework vecLib"
+configure.args --includedir=${prefix}/include/OPT++ --with-blas
+
+variant mpi {
+	configure.args-append --enable-mpi
+	configure.env-append MPICC=/opt/local/lib/openmpi/bin/mpicc \
+		  		 MPICXX=/opt/local/lib/openmpi/bin/mpic++ \
+				 MPILIBS='-L/opt/local/lib'
+	build.env MPILIBS='-L/opt/local/lib'
+	depends_lib port:openmpi
+}


Property changes on: trunk/dports/math/optpp/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id

Added: trunk/dports/math/optpp/files/patch-acx_blas.m4
===================================================================
--- trunk/dports/math/optpp/files/patch-acx_blas.m4	                        (rev 0)
+++ trunk/dports/math/optpp/files/patch-acx_blas.m4	2006-10-19 21:44:16 UTC (rev 20111)
@@ -0,0 +1,40 @@
+*** config/acx_blas.m4.orig	Fri Jul  7 11:28:45 2006
+--- config/acx_blas.m4	Thu Oct  5 10:06:27 2006
+***************
+*** 36,43 ****
+  
+  AC_DEFUN([ACX_BLAS], [
+  AC_PREREQ(2.50)
+! AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])
+! acx_blas_ok=no
+  
+  AC_ARG_WITH(blas,
+  	[AC_HELP_STRING([--with-blas=<lib>], [use BLAS library <lib>])])
+--- 36,43 ----
+  
+  AC_DEFUN([ACX_BLAS], [
+  AC_PREREQ(2.50)
+! #AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])
+! acx_blas_ok=yes
+  
+  AC_ARG_WITH(blas,
+  	[AC_HELP_STRING([--with-blas=<lib>], [use BLAS library <lib>])])
+***************
+*** 49,56 ****
+  esac
+  
+  # Get fortran linker names of BLAS functions to check for.
+! AC_F77_FUNC(sgemm)
+! AC_F77_FUNC(dgemm)
+  
+  acx_blas_save_LIBS="$LIBS"
+  LIBS="$LIBS $FLIBS"
+--- 49,56 ----
+  esac
+  
+  # Get fortran linker names of BLAS functions to check for.
+! #AC_F77_FUNC(sgemm)
+! #AC_F77_FUNC(dgemm)
+  
+  acx_blas_save_LIBS="$LIBS"
+  LIBS="$LIBS $FLIBS"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061019/e135acb1/attachment.html


More information about the macports-changes mailing list