diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-10-04 04:21:13 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-10-04 04:21:13 +0000 |
commit | 6004b8dfd695ad1294f9a8b94bc2a27c23f242e5 (patch) | |
tree | 89e0b799be4ab858a434e659f8d621024a329561 /math/sdpa/files | |
parent | Upgrade to v5.5.2. (diff) |
Add new port math/sdpa.
The SDPA (SemiDefinite Programming Algorithm) is a software package for
solving semidefinite program (SDP). Extremely efficient, almost fastest
around the world!
Notes
Notes:
svn path=/head/; revision=90200
Diffstat (limited to 'math/sdpa/files')
-rw-r--r-- | math/sdpa/files/Makefile | 51 | ||||
-rw-r--r-- | math/sdpa/files/patch-Makefile | 24 | ||||
-rw-r--r-- | math/sdpa/files/patch-rsdpa_include.h | 19 |
3 files changed, 94 insertions, 0 deletions
diff --git a/math/sdpa/files/Makefile b/math/sdpa/files/Makefile new file mode 100644 index 000000000000..3dc028b57c00 --- /dev/null +++ b/math/sdpa/files/Makefile @@ -0,0 +1,51 @@ +# +# Makefile for SDPA example(please use gmake) +# Sample Makefile written by <maho@FreeBSD.org> +# +# $FreeBSD$ + +PREFIX = %%PREFIX%% +LOCALBASE = %%LOCALBASE%% +LAPACK_LIB = %%LAPACK%% %%CBLAS%% +SDPA_LIB = -lsdpa +SDPA_EXAMPLES = example1-1.exe example1-2.exe \ + example2-1.exe example2-2.exe \ + example3.exe example4.exe \ + example5.exe example6.exe + +SOURCES = example1-1.cpp example1-2.cpp \ + example2-1.cpp example2-2.cpp \ + example3.cpp example4.cpp \ + example5.cpp example6.cpp + +all: $(SDPA_EXAMPLES) + +clean: + rm -f *.o *.exe + +example1-1.exe: example1-1.o + $(CXX) $(CXXFLAGS) -o $@ example1-1.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example1-2.exe: example1-2.o + $(CXX) $(CXXFLAGS) -o $@ example1-2.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example2-1.exe: example2-1.o + $(CXX) $(CXXFLAGS) -o $@ example2-1.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example2-2.exe: example2-2.o + $(CXX) $(CXXFLAGS) -o $@ example2-2.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example3.exe: example3.o + $(CXX) $(CXXFLAGS) -o $@ example3.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example4.exe: example4.o + $(CXX) $(CXXFLAGS) -o $@ example4.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example5.exe: example5.o + $(CXX) $(CXXFLAGS) -o $@ example5.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +example6.exe: example6.o + $(CXX) $(CXXFLAGS) -o $@ example6.o -L$(PREFIX)/lib -L$(LOCALBASE)/lib $(LAPACK_LIB) $(SDPA_LIB) -lm + +.cpp.o: + $(CXX) $(CXXFLAGS) -c -I$(PREFIX)/include -I$(LOCALBASE)/include -o $@ $<
\ No newline at end of file diff --git a/math/sdpa/files/patch-Makefile b/math/sdpa/files/patch-Makefile new file mode 100644 index 000000000000..b36fa563eb36 --- /dev/null +++ b/math/sdpa/files/patch-Makefile @@ -0,0 +1,24 @@ +--- Makefile.orig Fri Jun 6 10:13:51 2003 ++++ Makefile Sat Oct 4 11:33:31 2003 +@@ -1,8 +1,7 @@ +-LAPACK = $(HOME)/lib/b/lapack ++LAPACK = %%LOCALBASE%% + RSDPA = . + +-LAPACK_LIB = -llapack -lcblaswr -lcblas \ +- -lf77blas -lI77 -lF77 -latlas ++LAPACK_LIB = %%LAPACK%% %%CBLAS%% + + # if you use BLAS in clapack.tgz, use next line + # and set NON_ATLAS_SDPA in rsdpa_include.h to 1. +@@ -14,8 +13,8 @@ + #RSDPA_LIB_NAME = rsdpa + RSDPA_LIB = -l$(RSDPA_LIB_NAME) + +-CC = g++ +-OPTION = -O3 # -Wall # -g ++CC = %%CXX%% ++OPTION = %%CXXFLAGS%% + + TARGET_EXE = $(RSDPA_LIB_NAME) + #TARGET_EXE = rsdpa_main.exe diff --git a/math/sdpa/files/patch-rsdpa_include.h b/math/sdpa/files/patch-rsdpa_include.h new file mode 100644 index 000000000000..fd8d39bd5a09 --- /dev/null +++ b/math/sdpa/files/patch-rsdpa_include.h @@ -0,0 +1,19 @@ +--- rsdpa_include.h.orig Sat Nov 2 11:10:59 2002 ++++ rsdpa_include.h Sun Aug 3 09:07:52 2003 +@@ -21,13 +21,13 @@ + #include <cstring> + + extern "C" { +-#include <f2c.h> ++#include <g2c.h> + #if NON_ATLAS_SDPA + #include <blaswrap.h> + #endif +-#include <fblaswr.h> + #include <cblas.h> +-#include <clapack.h> ++#include <blas.h> ++#include <lapack.h> + }; + + using namespace std; |