blob: 739f3054845cd39e2c26918430d51a3506a32eab (
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
44
45
46
47
48
49
|
# New ports collection makefile for: algae
# Date created: 18 May 2003
# Whom: Michael Neumann <mneumann@ntecs.de>
#
# $FreeBSD$
#
PORTNAME= algae
PORTVERSION= 4.3.6
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= laszlof@FreeBSD.org
COMMENT= A programming language for numerical analysis
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf:261
ALGAE_VERSION= ${PORTVERSION}
PLIST_SUB= ALGAE_VERSION=${ALGAE_VERSION}
MAN1= algae.1
INFO= algae
USE_FORTRAN= yes
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS} -L`${CAT} ${WRKSRC}/LIBDIR`/../../.. -L`${CAT} ${WRKSRC}/LIBDIR` -L${LOCALBASE}/lib"
FORTRANLIBS= gfortranbegin gfortran
post-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,g' \
${WRKSRC}/src/mem.h \
${WRKSRC}/superlu/sp_coletree.c \
${WRKSRC}/superlu/util.h
@${REINPLACE_CMD} -e 's,%%FORTRANLIBS%%,${FORTRANLIBS},g' \
${WRKSRC}/configure.in
pre-configure:
@${DIRNAME} `${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
.include <bsd.port.pre.mk>
.if ( ${ARCH} == "alpha" && ${OSVERSION} > 502102 ) || ${ARCH} == "sparc64"
BROKEN= Configure fails on alpha 5.x and sparc64
.endif
.include <bsd.port.post.mk>
|