aboutsummaryrefslogtreecommitdiffstats
path: root/math/elmer-umfpack/Makefile
blob: 41f198dcb07e608ab8c952131f016a4a57670532 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    elmer-umfpack
# Date created:     5 Jan 2006
# Whom:         Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#

PORTNAME=   umfpack
PORTVERSION=    4.4
PORTREVISION=   1
PORTEPOCH=  2
CATEGORIES= math
MASTER_SITES=   ftp://ftp.funet.fi/pub/sci/physics/elmer/src/
PKGNAMEPREFIX=  elmer-

MAINTAINER= ports@FreeBSD.org
COMMENT=    UMFPACK library used by ELMER FEM package

WANT_FORTRAN=yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC= gfortran42
F77=    gfortran42
CONFIGURE_ENV+= FC=${FC} F77=${FC}
GNU_CONFIGURE=  yes
ALL_TARGET=

# This should be looked up by autoconf
CFLAGS+=    -DGETRUSAGE

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

do-install:
    ${INSTALL_DATA} ${WRKSRC}/src/amd/include/amd.h ${PREFIX}/include/amd_elmer.h
    ${INSTALL_DATA} ${WRKSRC}/src/umfpack/include/umfpack.h ${PREFIX}/include/umfpack_elmer.h
    ${INSTALL_DATA} ${WRKSRC}/src/amd/libamd.a ${PREFIX}/lib/libamd_elmer.a
    ${INSTALL_DATA} ${WRKSRC}/src/amd/libamdf77.a ${PREFIX}/lib/libamdf77_elmer.a
    ${INSTALL_DATA} ${WRKSRC}/src/umfpack/libumfpack.a ${PREFIX}/lib/libumfpack_elmer.a

.include <bsd.port.post.mk>