mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- STAGE-clean
- Build a shlib version as well - Remove article from COMMENT line
This commit is contained in:
parent
ebcd129151
commit
777e181558
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344168
@ -9,18 +9,22 @@ MASTER_SITES= http://www.robertnz.net/ftp/
|
||||
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
|
||||
|
||||
MAINTAINER= gahr@FreeBSD.org
|
||||
COMMENT= A C++ matrix library
|
||||
COMMENT= C++ matrix library
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
USE_LDCONFIG= yes
|
||||
MAKEFILE= nm_gnu.mak
|
||||
CXXFLAGS+= -fPIC
|
||||
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
||||
ALL_TARGET= everything
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/include/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${PREFIX}/lib
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME}
|
||||
${INSTALL_DATA} ${WRKSRC}/libnewmat.a ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKSRC}/libnewmat.so.1 ${STAGEDIR}${PREFIX}/lib
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewmat.so.1
|
||||
${LN} -sf libnewmath.so.1 ${STAGEDIR}${PREFIX}/lib/libnewmat.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (newmat11.tar.gz) = 723d96ecc2cf4c6987d04bb0810ce12fd22b3170ad50db2a14e7e4ef77c4ec89
|
||||
SIZE (newmat11.tar.gz) = 240888
|
||||
SHA256 (newmat11.tar.gz) = daf313a4db0db14dfcce236ad3cdc514d449e62ddd4f1b07cc31179b0787db6f
|
||||
SIZE (newmat11.tar.gz) = 247137
|
||||
|
21
math/newmat/files/patch-nm_gnu.mak
Normal file
21
math/newmat/files/patch-nm_gnu.mak
Normal file
@ -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
|
@ -12,3 +12,5 @@ include/newmat/solution.h
|
||||
include/newmat/tmt.h
|
||||
@dirrm include/newmat
|
||||
lib/libnewmat.a
|
||||
lib/libnewmat.so.1
|
||||
lib/libnewmat.so
|
||||
|
Loading…
Reference in New Issue
Block a user