blob: 72763582614ca6b90ea8171a69de3f6c67bd7668 (
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
|
# Created by: Michael Neumann <mneumann@ntecs.de>
# $FreeBSD$
PORTNAME= algae
PORTVERSION= 4.3.6
PORTREVISION= 5
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Programming language for numerical analysis
LICENSE= GPLv2
USE_FORTRAN= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf
ALGAE_VERSION= ${PORTVERSION}
PLIST_SUB= ALGAE_VERSION=${ALGAE_VERSION}
LDFLAGS+= -L`${CAT} ${WRKSRC}/LIBDIR`/../../.. -L`${CAT} ${WRKSRC}/LIBDIR` -L${LOCALBASE}/lib
FORTRANLIBS= gfortranbegin gfortran
MAN1= ${PORTNAME}.1
INFO= ${PORTNAME}
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's,<malloc\.h>,<stdlib.h>,' \
${WRKSRC}/src/mem.h \
${WRKSRC}/superlu/sp_coletree.c \
${WRKSRC}/superlu/util.h
@${REINPLACE_CMD} -e 's,%%FORTRANLIBS%%,${FORTRANLIBS},' \
${WRKSRC}/configure.in
pre-configure:
@${DIRNAME} `${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= does not compile on ${ARCH}
.endif
.include <bsd.port.post.mk>
|