aboutsummaryrefslogtreecommitdiff
path: root/math/newmat/files
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2014-02-14 08:56:25 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2014-02-14 08:56:25 +0000
commit777e181558bea826f60358be95912ffd03190167 (patch)
treee159d00599f79f2eaa5470d1841a89a977f03c38 /math/newmat/files
parentebcd129151594e0c4ffbbf7f766fcdf1e9f56bc3 (diff)
downloadports-777e181558bea826f60358be95912ffd03190167.tar.gz
ports-777e181558bea826f60358be95912ffd03190167.zip
- STAGE-clean
- Build a shlib version as well - Remove article from COMMENT line
Notes
Notes: svn path=/head/; revision=344168
Diffstat (limited to 'math/newmat/files')
-rw-r--r--math/newmat/files/patch-nm_gnu.mak21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/newmat/files/patch-nm_gnu.mak b/math/newmat/files/patch-nm_gnu.mak
new file mode 100644
index 000000000000..f888e00dbe73
--- /dev/null
+++ b/math/newmat/files/patch-nm_gnu.mak
@@ -0,0 +1,21 @@
+--- nm_gnu.mak.orig 2014-02-14 09:47:53.000000000 +0100
++++ nm_gnu.mak 2014-02-14 09:49:32.000000000 +0100
+@@ -9,7 +9,7 @@
+ %.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $*.cpp
+
+-everything: tmt example nm_ex1 nm_ex2 nm_ex3 test_exc nl_ex sl_ex garch
++everything: tmt example nm_ex1 nm_ex2 nm_ex3 test_exc nl_ex sl_ex garch libnewmat.so.1
+
+ newmat_lobj = newmat1.o newmat2.o newmat3.o newmat4.o newmat5.o newmat6.o newmat7.o newmat8.o newmatex.o bandmat.o submat.o myexcept.o cholesky.o evalue.o fft.o hholder.o jacobi.o newfft.o sort.o svd.o nm_misc.o newmatrm.o newmat9.o
+
+@@ -17,6 +17,9 @@
+ $(AR) -cr $@ $(newmat_lobj)
+ ranlib $@
+
++libnewmat.so.1: $(newmat_lobj)
++ $(CXX) $(CXXFLAGS) -shared -Wl,-soname=$@ -o $@ $(newmat_lobj)
++
+ tmt_obj = tmt.o tmt1.o tmt2.o tmt3.o tmt4.o tmt5.o tmt6.o tmt7.o tmt8.o tmt9.o tmta.o tmtb.o tmtc.o tmtd.o tmte.o tmtf.o tmtg.o tmth.o tmti.o tmtj.o tmtk.o tmtl.o tmtm.o
+
+ tmt: $(tmt_obj) libnewmat.a