allow OPTIONS to be able to influence dependencies. This is still experimental [1] * Teach bsd.gcc.mk about gfortran [2] * Remove the outdated emulators/linux_base; the new default has been linux_base-fc4. This will allow the outdated port to be removed [3] * Add USE_FIREBIRD macros to bsd.database.mk [4] PR: 93687 [1], 93690 [2], 103184 [3], 103357 [4] Submitted by: shaun [1], Pedro F. Giffuni <giffunip at asme to org> [2], gerald [2], thierry [2], vd [3], skv [4]
48 lines
1,005 B
Makefile
48 lines
1,005 B
Makefile
# New ports collection makefile for: Elmer-mathlibs
|
|
# Date created: 5 Jan 2006
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mathlibs
|
|
PORTVERSION= 1.0.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= ftp://ftp.funet.fi/pub/sci/physics/elmer/
|
|
PKGNAMEPREFIX= elmer-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Math libraries build with F90 for used in ELMER FEM
|
|
|
|
.ifdef WITH_MPI
|
|
BUILD_DEPENDS+= ${LOCALBASE}/mpich/include/mpif.h:${PORTSDIR}/net/mpich
|
|
.endif
|
|
|
|
CONFLICTS= atlas-[0-9]* blas-[0-9]* arpack-[0-9]* lapack-[0-9]*
|
|
.ifdef WITH_MPI
|
|
CONFLICTS+= scalapack-[0-9]*
|
|
.endif
|
|
|
|
USE_GCC= 4.1+
|
|
WITH_FORTRAN= yes
|
|
F77= ${FC}
|
|
|
|
.ifdef WITH_OPTIMIZED_FLAGS
|
|
FFLAGS+= -O3 -ffast-math
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= F77=${FC} FFLAGS="${FFLAGS}"
|
|
GNU_CONFIGURE= yes
|
|
.ifdef WITH_MPI
|
|
CONFIGURE_ARGS+= --with-mpi=yes --with-mpi-dir=${LOCALBASE}/mpich
|
|
.endif
|
|
|
|
ALL_TARGET=
|
|
|
|
PLIST_FILES= lib/libarpack.a lib/libblas.a lib/liblapack.a
|
|
.ifdef WITH_MPI
|
|
PLIST_FILES+= lib/libparpack.a
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|