diff options
author | maho <maho@FreeBSD.org> | 2007-01-17 16:05:55 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-01-17 16:05:55 +0800 |
commit | 47d676d40c556ac9acd14824b178c610e95f149d (patch) | |
tree | 2e6c990baefcdc43441b733b8bb7daee0d5229c9 /cad/pdnmesh | |
parent | 542f084165015b8e0e95d7b044325f20cf1b0b18 (diff) | |
download | freebsd-ports-gnome-47d676d40c556ac9acd14824b178c610e95f149d.tar.gz freebsd-ports-gnome-47d676d40c556ac9acd14824b178c610e95f149d.tar.zst freebsd-ports-gnome-47d676d40c556ac9acd14824b178c610e95f149d.zip |
* Migrate to gfortran.
* Bump port revision.
* Use gfortran compiled atlas/blas/lapack.
Approved by: portmgr(kris)
Diffstat (limited to 'cad/pdnmesh')
-rw-r--r-- | cad/pdnmesh/Makefile | 33 | ||||
-rw-r--r-- | cad/pdnmesh/files/patch-src+Makefile.in | 11 |
2 files changed, 36 insertions, 8 deletions
diff --git a/cad/pdnmesh/Makefile b/cad/pdnmesh/Makefile index 463dfaee16c7..5cad8fee93cc 100644 --- a/cad/pdnmesh/Makefile +++ b/cad/pdnmesh/Makefile @@ -7,7 +7,7 @@ PORTNAME= pdnmesh PORTVERSION= 0.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sf/} \ ${MASTER_SITE_SUNSITE:S/$/:sun/} @@ -17,18 +17,35 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf,sun MAINTAINER= sarod@users.sf.net COMMENT= A finite element program -LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext:install\ - lapack:${PORTSDIR}/math/lapack:install\ - atlas:${PORTSDIR}/math/atlas:install +LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) +WITH_ATLAS= yes +.endif +.if defined(WITH_ATLAS) +LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas +BLAS= -lf77blas -latlas +LAPACK= -lalapack -lcblas +.else +LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas +LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack +BLAS= -lblas +LAPACK= -llapack +.endif + +WANT_FORTRAN= yes #dummy but future use +BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 +FC= gfortran42 +F77= gfortran42 +CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" BLAS_LIBS="${BLAS}" LAPACK_LIBS="${LAPACK}" USE_XLIB= yes USE_GL= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" - -USE_AUTOTOOLS= autoconf:259 +CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" MAN1= pdnmesh.1 MAN5= pdnmesh_input.5 -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/cad/pdnmesh/files/patch-src+Makefile.in b/cad/pdnmesh/files/patch-src+Makefile.in new file mode 100644 index 000000000000..3b1020c13ea8 --- /dev/null +++ b/cad/pdnmesh/files/patch-src+Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Wed Jan 17 16:58:18 2007 ++++ src/Makefile.in Wed Jan 17 16:58:16 2007 +@@ -72,7 +72,7 @@ + LEXLIB = @LEXLIB@ + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ +-LIBS = @LIBS@ ++LIBS = @LAPACK_LIBS@ @BLAS_LIBS@ @FLIBS@ + LN_S = @LN_S@ + LTLIBOBJS = @LTLIBOBJS@ + MAKEINFO = @MAKEINFO@ |