mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
also build shared object instead of only the static archive,
and bump portrevision. PR: 166010 Submitted by: Oliver Hartmann <ohartman@zedat.fu-berlin.de> Feature safe: yes
This commit is contained in:
parent
7802829370
commit
d3f2bc3f43
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293263
3 changed files with 22 additions and 11 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= superlu
|
PORTNAME= superlu
|
||||||
PORTREVISION= 3
|
PORTREVISION= 4
|
||||||
DISTVERSION= ${P_VERSION}.20060201
|
DISTVERSION= ${P_VERSION}.20060201
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
MASTER_SITES= http://crd.lbl.gov/~xiaoye/SuperLU/ \
|
MASTER_SITES= http://crd.lbl.gov/~xiaoye/SuperLU/ \
|
||||||
|
@ -43,6 +43,7 @@ BLAS= -lptf77blas
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
USE_FORTRAN= yes
|
USE_FORTRAN= yes
|
||||||
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
P_VERSION= 3.0
|
P_VERSION= 3.0
|
||||||
WRKSRC= ${WRKDIR}/SuperLU_${P_VERSION}
|
WRKSRC= ${WRKDIR}/SuperLU_${P_VERSION}
|
||||||
|
@ -65,6 +66,10 @@ pre-build:
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/libsuperlu_${P_VERSION}.a \
|
${INSTALL_DATA} ${WRKSRC}/libsuperlu_${P_VERSION}.a \
|
||||||
${PREFIX}/lib/libsuperlu.a
|
${PREFIX}/lib/libsuperlu.a
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/libsuperlu_${P_VERSION}.so \
|
||||||
|
${PREFIX}/lib/libsuperlu.so.${PORTREVISION}
|
||||||
|
${LN} -s ${PREFIX}/lib/libsuperlu.so.${PORTREVISION} \
|
||||||
|
${PREFIX}/lib/libsuperlu.so
|
||||||
@${MKDIR} ${PREFIX}/include/superlu
|
@${MKDIR} ${PREFIX}/include/superlu
|
||||||
${INSTALL_DATA} ${WRKSRC}/SRC/*.h ${PREFIX}/include/superlu
|
${INSTALL_DATA} ${WRKSRC}/SRC/*.h ${PREFIX}/include/superlu
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
--- make.inc.orig 2006-01-01 18:52:00.000000000 -0500
|
--- make.inc.orig 2006-01-02 00:52:00.000000000 +0100
|
||||||
+++ make.inc 2008-06-19 22:08:49.000000000 -0500
|
+++ make.inc 2012-03-13 14:59:15.000000000 +0100
|
||||||
@@ -19,7 +19,7 @@
|
@@ -19,22 +19,23 @@
|
||||||
#
|
#
|
||||||
TMGLIB = libtmglib.a
|
TMGLIB = libtmglib.a
|
||||||
SUPERLULIB = libsuperlu_3.0.a
|
SUPERLULIB = libsuperlu_3.0.a
|
||||||
-BLASLIB = ../libblas.a
|
-BLASLIB = ../libblas.a
|
||||||
+BLASLIB = %%BLAS%%
|
+SUPERLULIB_SHARED = libsuperlu_3.0.so
|
||||||
|
+BLASLIB = -L/usr/local/lib -lblas
|
||||||
|
|
||||||
#
|
#
|
||||||
# The archiver and the flag(s) to use when building archive (library)
|
# The archiver and the flag(s) to use when building archive (library)
|
||||||
@@ -29,12 +29,12 @@
|
# If your system has no ranlib, set RANLIB = echo.
|
||||||
|
#
|
||||||
|
-ARCH = ar
|
||||||
|
+ARCMD = ar
|
||||||
ARCHFLAGS = cr
|
ARCHFLAGS = cr
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
|
||||||
|
@ -19,11 +23,11 @@
|
||||||
-FFLAGS = -O
|
-FFLAGS = -O
|
||||||
-LOADER = cc
|
-LOADER = cc
|
||||||
-LOADOPTS = -xO3
|
-LOADOPTS = -xO3
|
||||||
+CC = %%CC%%
|
+CC ?= gcc46
|
||||||
+CFLAGS = %%CFLAGS%%
|
+CFLAGS ?= -O2 -pipe -O2 -fno-strict-aliasing -pipe -O3 -pipe -fno-strict-aliasing -march=native -Wl,-rpath=/usr/local/lib/gcc46
|
||||||
+FORTRAN = %%FC%%
|
+FORTRAN ?= gfortran46
|
||||||
+FFLAGS = %%FFLAGS%%
|
+FFLAGS ?= -O -Wl,-rpath=/usr/local/lib/gcc46
|
||||||
+LOADER = %%FC%%
|
+LOADER ?= gfortran46
|
||||||
+LOADOPTS =
|
+LOADOPTS =
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -10,6 +10,8 @@ include/superlu/slu_util.h
|
||||||
include/superlu/slu_zdefs.h
|
include/superlu/slu_zdefs.h
|
||||||
include/superlu/supermatrix.h
|
include/superlu/supermatrix.h
|
||||||
lib/libsuperlu.a
|
lib/libsuperlu.a
|
||||||
|
lib/libsuperlu.so
|
||||||
|
lib/libsuperlu.so.3
|
||||||
@dirrm include/superlu
|
@dirrm include/superlu
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/SLU_general.ps.gz
|
%%PORTDOCS%%%%DOCSDIR%%/SLU_general.ps.gz
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/simax95.ps.gz
|
%%PORTDOCS%%%%DOCSDIR%%/simax95.ps.gz
|
||||||
|
|
Loading…
Add table
Reference in a new issue