aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-13 07:39:02 +0800
committermaho <maho@FreeBSD.org>2007-01-13 07:39:02 +0800
commit000941a759c6736936e7e86a50e7de2c0eeea5aa (patch)
tree4c4fb2ea86f45a943b22040c2f15fb8e7c95666d /cad
parente529e0a372d00e818c0577643b4ab610b71be558 (diff)
downloadfreebsd-ports-gnome-000941a759c6736936e7e86a50e7de2c0eeea5aa.tar.gz
freebsd-ports-gnome-000941a759c6736936e7e86a50e7de2c0eeea5aa.tar.zst
freebsd-ports-gnome-000941a759c6736936e7e86a50e7de2c0eeea5aa.zip
* Migrate to gfortran.
* Bump port revision. * Use gfortran compiled atlas/blas/lapack.
Diffstat (limited to 'cad')
-rw-r--r--cad/tochnog/Makefile12
-rw-r--r--cad/tochnog/files/patch-makefile2
2 files changed, 12 insertions, 2 deletions
diff --git a/cad/tochnog/Makefile b/cad/tochnog/Makefile
index 61d295d06c78..3cbf7b2550b1 100644
--- a/cad/tochnog/Makefile
+++ b/cad/tochnog/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tochnog
PORTVERSION= 20010211
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tochnog
@@ -58,10 +58,20 @@ SUPERLU= superlu
ALL_TARGET= freebsd_old
.endif
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
+FORTRANLIBS= -lgfortranbegin -lgfortran
+GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
+
pre-build:
+ @${DIRNAME} `${FC} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g ; \
s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},g ; s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},g ; \
s,%%SUPERLU%%,${SUPERLU},g ; \
+ s,%%FORTRANLIBS%%,${FORTRANLIBS},g ; \
+ s,%%GCCLIBDIR%%,${GCCLIBDIR},g ; \
s,%%BLAS_LIBS%%,-L${LOCALBASE}/lib ${BLAS_LIBS},g' \
${WRKSRC}/makefile
.ifdef WITH_THREADS
diff --git a/cad/tochnog/files/patch-makefile b/cad/tochnog/files/patch-makefile
index cd7d7c122620..ae35e6b46f44 100644
--- a/cad/tochnog/files/patch-makefile
+++ b/cad/tochnog/files/patch-makefile
@@ -44,7 +44,7 @@
-# SUPERLU_LIB=$(SUPERLU)/superlu.a $(SUPERLU)/blas.a
-# SUPERLU_INCLUDE=-I$(SUPERLU)/SRC
+SUPERLU=%%LOCALBASE%%
-+SUPERLU_LIB=$(SUPERLU)/lib/lib%%SUPERLU%%.a %%BLAS_LIBS%%
++SUPERLU_LIB=$(SUPERLU)/lib/lib%%SUPERLU%%.a %%BLAS_LIBS%% %%GCCLIBDIR%% %%FORTRANLIBS%%
+SUPERLU_INCLUDE=-I$(SUPERLU)/include/%%SUPERLU%%
# 3. For SuperLU_MT be sure to compile a multi threaded version
# of Tochnog (sparc_parallel, alpha_parallel, linux, etc.)